[ PHPXref.com ] [ Generated: Sun Jul 20 17:01:00 2008 ] [ CMS Made Simple 0.12.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/lib/ -> misc.functions.php (summary)

Misc functions

File Size: 707 lines (18 kb)
Included or required: 2 times
Referenced: 1 time
Includes or requires: 0 files

Defines 24 functions

  redirect()
  microtime_diff()
  ErrorHandler404()
  parse_template()
  cms_htmlentities()
  my_htmlentities()
  nl2pnbr()
  debug_bt()
  debug_display()
  debug_output()
  debug_buffer()
  get_request_value()
  get_value_with_default()
  get_parameter_value()
  create_encoding_dropdown()
  cms_mapi_create_permission()
  filespec_is_excluded()
  get_recursive_file_list()
  SerializeObject()
  UnserializeObject()
  startswith()
  endswith()
  showmem()
  file_get_contents()

Functions
Functions that are not part of a class:

redirect($to, $noappend=false)   X-Ref
Redirects to relative URL on the current site

author: http://www.edoceo.com/

microtime_diff($a, $b)   X-Ref
Shows the difference in seconds between two microtime() values


ErrorHandler404()   X-Ref
Shows a very close approximation of an Apache generated 404 error.

Shows a very close approximation of an Apache generated 404 error.
It also sends the actual header along as well, so that generic
browser error pages (like what IE does) will be displayed.


parse_template($template, $tpl_array, $warn=0)   X-Ref
Simple template parser


cms_htmlentities($string, $param=ENT_QUOTES, $charset="UTF-8")   X-Ref
No description

my_htmlentities($val)   X-Ref
Enter description here...

param: unknown $val
param: integer $quote_style
return: unknown

nl2pnbr( $text )   X-Ref
No description

debug_bt()   X-Ref
No description

debug_display($var, $title="", $echo_to_screen = true, $use_html = true)   X-Ref
Debug function to display $var nicely in html.

param: mixed $var
param: string $title (optional)
param: boolean $echo_to_screen (optional)
return: string

debug_output($var, $title="")   X-Ref
Display $var nicely only if $config["debug"] is set

param: mixed $var
param: string $title

debug_buffer($var, $title="")   X-Ref
Display $var nicely to the $gCms->errors array if $config['debug'] is set

param: mixed $var
param: string $title

get_request_value($value, $default_value = '', $session_key = '')   X-Ref
Retrieve value from $_REQUEST. Returns $default_value if
value is not in $_REQUEST or is not the same basic type as
$default_value.
If $session_key is set, then will return session value in preference
to $default_value if $_REQUEST[$value] is not set.

param: string $value
param: mixed $default_value (optional)
param: string $session_key (optional)
return: mixed

get_value_with_default($value, $default_value = '', $session_key = '')   X-Ref
Return $value if it's set and same basic type as $default_value,
otherwise return $default_value. Note. Also will trim($value)
if $value is not numeric.

param: string $value
param: mixed $default_value
return: mixed

get_parameter_value($parameters, $value, $default_value = '', $session_key = '')   X-Ref
Retrieve the $value from the $parameters array checking for
$parameters[$value] and $params[$id.$value]. Returns $default
if $value is not in $params array.
Note: This function will also trim() string values.

param: array $parameters
param: string $value
param: mixed $default_value
param: string $session_key
return: mixed

create_encoding_dropdown($name = 'encoding', $selected = '')   X-Ref
No description

cms_mapi_create_permission($cms, $permission_name, $permission_text)   X-Ref
No description

filespec_is_excluded( $file, $excludes )   X-Ref
No description

get_recursive_file_list( $path , $excludes, $maxdepth = -1 , $mode = "FULL" , $d = 0 )   X-Ref
Return an array containing a list of files in a directory
performs a recursive serach

param: path      start path
param: maxdepth  how deep to browse (-1=unlimited)
param: mode      "FULL"|"DIRS"|"FILES"
param: d         for internal use only

SerializeObject(&$object)   X-Ref
No description

UnserializeObject(&$serialized)   X-Ref
No description

startswith( $str, $sub )   X-Ref
No description

endswith( $str, $sub )   X-Ref
No description

showmem($string = '')   X-Ref
No description

file_get_contents($filename)   X-Ref
No description



[ Powered by PHPXref - Served by Debian GNU/Linux ]