[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/core/ -> utility_api.php (summary)

Utility API Utility functions are *small* functions that are used often and therefore have *no* prefix, to keep their names short.

Copyright: Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
Copyright: Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net
File Size: 266 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  trans_bool()
  terminate_directory_path()
  is_blank()
  ini_get_bool()
  ini_get_number()
  multi_sort()
  get_gd_version()
  is_page_name()
  is_windows_server()
  getClassProperties()
  get_font_path()

Functions
Functions that are not part of a class:

trans_bool( $p_num )   X-Ref
converts a 1 value to X
converts a 0 value to a space

param: int $p_num boolean numeric
return: string X or space

terminate_directory_path( $p_path )   X-Ref
Add a trailing DIRECTORY_SEPARATOR to a string if it isn't present

param: string $p_path
return: string

is_blank( $p_var )   X-Ref
Return true if the parameter is an empty string or a string
containing only whitespace, false otherwise

param: string $p_var string to test
return: bool

ini_get_bool( $p_name )   X-Ref
Get the named php ini variable but return it as a bool

param: string $p_name
return: bool

ini_get_number( $p_name )   X-Ref
Get the named php.ini variable but return it as a number after converting
the giga (g/G), mega (m/M) and kilo (k/K) postfixes. These postfixes do not
adhere to IEEE 1541 in that k=1024, not k=1000. For more information see
http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes

param: string $p_name Name of the configuration option to read.
return: int Integer value of the configuration option.

multi_sort( $p_array, $p_key, $p_direction = ASCENDING )   X-Ref
Sort a multi-dimensional array by one of its keys

param: array $p_array Array to sort
param: string $p_key key to sort array on
param: int $p_direction sort direction
return: array sorted array

get_gd_version()   X-Ref
Return GD version
It doesn't use gd_info() so it works with PHP < 4.3.0 as well

return: int represents gd version

is_page_name( $p_string )   X-Ref
return true or false if string matches current page name

param: string $p_string page name
return: bool

is_windows_server()   X-Ref
No description

getClassProperties($className, $types='public', $return_object = false, $include_parent = false )   X-Ref
No description

get_font_path()   X-Ref
No description



Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7