Class mosComponentHandler

Description

Singleton class to handle with current component

This class controls the start, end and send output buffer from current component

Located in /includes/cmtclasses.php (line 24)


	
			
Variable Summary
 string $_buffer
Method Summary
 void endBuffer ()
 object reference &getInstance ()
 void mosMainBody ()
 void startBuffer ()
Variables
string $_buffer = '' (line 31)

stores the output from current component

Methods
endBuffer (line 118)

Ends the use of buffer

This function ends the use of buffers to components output, all outputs are stored in $this->_buffer

void endBuffer ()
getInstance (line 45)

Return a reference to current handler

This function returns a reference to current component handler, if none handler exists, it creates one.

Example of use:

  1. $c_handler =mosComponentHandler::getInstance();

  • return: to current singleton Handler
object reference &getInstance ()
getParamsByName (line 60)

Returns the admin parameters from a component

This function returns a reference to specified component in $name param, if none parameters are founded it returns null.

  • return: object with parameters, null if none was founded.
object mosParameters &getParamsByName ( $name)
  • $name
mosMainBody (line 86)

Writes the output from current component

This function send to client browser the outputs from the component, it's called by mosMainBody() global function.

void mosMainBody ()
startBuffer (line 105)

Start the use of buffer

This function start the use of buffers to components output

void startBuffer ()

Documentation generated on Mon, 05 May 2008 16:17:58 +0400 by phpDocumentor 1.4.0