CoreAPI
[ class tree: CoreAPI ] [ index: CoreAPI ] [ all elements ]

Procedural File: utility_api.php

Source Location: /core/utility_api.php



Page Details:

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

Utility functions have *no* dependencies on any other APIs, since they are included first in order to make them available to all the APIs. Miscellaneous functions that provide functionality on top of other APIS are found in the helper_api.




Tags:

copyright:  Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
copyright:  Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
link:  http://www.mantisbt.org
usedby:  bug_check_workflow()
usedby:  collapse_api.php








getClassProperties [line 194]

void getClassProperties( $className, [ $types = 'public'], [ $return_object = false], [ $include_parent = false])



Parameters

   $className  
   $types  
   $return_object  
   $include_parent  
[ Top ]



get_font_path [line 219]

void get_font_path( )



[ Top ]



get_gd_version [line 164]

int get_gd_version( )

Return GD version

It doesn't use gd_info() so it works with PHP < 4.3.0 as well




Tags:

return:  represents gd version
access:  public


[ Top ]



ini_get_bool [line 80]

bool ini_get_bool( string $p_name)

Get the named php ini variable but return it as a bool



Tags:

access:  public


Parameters

string   $p_name  
[ Top ]



ini_get_number [line 111]

int ini_get_number( string $p_name)

Get the named php ini variable but return it as a number after converting "K" and "M"



Tags:

access:  public


Parameters

string   $p_name  
[ Top ]



is_blank [line 65]

bool is_blank( string $p_var)

Return true if the parameter is an empty string or a string

containing only whitespace, false otherwise




Tags:

access:  public


Parameters

string   $p_var   string to test
[ Top ]



is_page_name [line 183]

bool is_page_name( string $p_string)

return true or false if string matches current page name



Tags:

access:  public


Parameters

string   $p_string   page name
[ Top ]



is_windows_server [line 187]

void is_windows_server( )



[ Top ]



multi_sort [line 132]

array multi_sort( array $p_array, string $p_key, [int $p_direction = ASCENDING])

Sort a multi-dimensional array by one of its keys



Tags:

return:  sorted array
access:  public


Parameters

array   $p_array   Array to sort
string   $p_key   key to sort array on
int   $p_direction   sort direction
[ Top ]



terminate_directory_path [line 54]

string terminate_directory_path( string $p_path)

Add a trailing DIRECTORY_SEPARATOR to a string if it isn't present



Tags:

access:  public


Parameters

string   $p_path  
[ Top ]



trans_bool [line 40]

string trans_bool( int $p_num)

converts a 1 value to X

converts a 0 value to a space




Tags:

return:  X or space
access:  public


Parameters

int   $p_num   boolean numeric
[ Top ]



Documentation generated on Sun, 12 Dec 2010 23:50:55 +0900 by phpDocumentor 1.4.3
inserted by FC2 system