Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

common.php File Reference

Go to the source code of this file.

Functions

 generateModule ($type, $src=null)
 theme ($theme)
 showPage ($objs=null)
 jsBegin ()
 jsReplace ($id, $innerHTML)
 jsEnd ()
 status ($msg=null)
 deverror ($msg, $serious=false)
 noMethod ($obj, $met)
 dprint ($var)
 vdprint ($var)

Variables

 _functions_prefix = realpath(dirname(__FILE__))


Function Documentation

deverror msg,
serious = false
 

Prints informatio about developer error, i.e. notices that has happened an error.

Parameters:
string $msg Message to display to user
boolean $serious Is the error serious error, i.e. should we die after error has occured.

Definition at line 201 of file common.php.

dprint var  ) 
 

Prints debug information about wanted variable with print_r-function.

Parameters:
mixed $var Variable to print out
Returns:
string Debug output

Definition at line 235 of file common.php.

generateModule type,
src = null
 

Generates a correct module information, i.e. source, module and class.

Parameters:
string $type What type are we resolving (config/userdata etc.)

Definition at line 30 of file common.php.

References _functions_prefix, and path.

Referenced by Album::Album(), Comments::Comments(), Configuration::Configuration(), and Userdata::UserData().

jsBegin  ) 
 

Start JavaScript code block

Returns:
string script HTML code

Definition at line 144 of file common.php.

Referenced by ProgressBar::hide(), ProgressBar::Init(), SetupDocument::navigationButtons(), ProgressBar::status(), and status().

jsEnd  ) 
 

Ends JavaSCript code block

Returns:
string code block

Definition at line 172 of file common.php.

Referenced by ProgressBar::hide(), ProgressBar::Init(), SetupDocument::navigationButtons(), ProgressBar::status(), and status().

jsReplace id,
innerHTML
 

Replaces inner HTML of id $id with $innerHTML

Parameters:
string $id ID of element
string $innerHTML New content
Returns:
string JavaScript code to do the change

Definition at line 159 of file common.php.

Referenced by ProgressBar::hide(), ProgressBar::render(), ProgressBar::status(), and status().

noMethod obj,
met
 

Shows an informational message about missing method. Depricated!

Parameters:
class $obj Main class where we tried to use method
string $met Method to access

Definition at line 222 of file common.php.

References deverror().

showPage objs = null  ) 
 

Load correct page from theme stock and load it. Notice that you must have loaded active them with theme(theme name) function.

See also:
theme

Definition at line 110 of file common.php.

References _SESSION, deverror(), dirs, document, and theme().

status msg = null  ) 
 

Updates status message Needs that there exists div id="statusmessage" block in HTML

Parameters:
string $msg MEssage to display
Returns:
string HTML & JavaScript code to change status message

Definition at line 186 of file common.php.

References jsBegin(), jsEnd(), and jsReplace().

Referenced by addStatusRow(), and Check::getStatus().

theme theme  ) 
 

Select preferred theme or if it could not be founded, select first theme in themes/-folder

Parameters:
string theme
Returns:
null

Definition at line 74 of file common.php.

References _SESSION, and theme().

Referenced by ThemeEngine::loadTemplate(), ThemeEngine::loadTemplateNew(), showPage(), Document::signinout(), SetupDocument::theme(), Document::theme(), theme(), and ThemeEngine::ThemeEngine().

vdprint var  ) 
 

Definition at line 249 of file common.php.


Variable Documentation

_functions_prefix = realpath(dirname(__FILE__))
 

Definition at line 21 of file common.php.

Referenced by generateModule(), and parseValue().


Generated on Sun Oct 19 11:08:01 2003 for ImaComm by doxygen1.3