Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes

EasyView Class Reference

Inheritance diagram for EasyView:
Inheritance graph
[legend]
Collaboration diagram for EasyView:
Collaboration graph
[legend]

Public Member Functions

 __construct (&$xmlArr)
 isInFormRefLibs ($formName)
 getSessionVars ($sessionContext)
 setSessionVars ($sessionContext)
 getViewSet ()
 setConsoleOutput ($consoleOutput)
 processRule ()
 setParameters ()
 render ()
 curPageURL ()
 getCurrentPageUrl ()
 outputAttrs ()

Data Fields

 $m_Title
 $m_Keywords
 $m_TemplateEngine
 $m_TemplateFile
 $m_ViewSet
 $m_Tab
 $m_FormRefs
 $m_IsPopup = false
 $m_Height
 $m_Width
 $m_ConsoleOutput = true
 $m_MessageFile = null
 $m_CacheLifeTime = 0
 $m_LastRenderedForm

Protected Member Functions

 readMetadata (&$xmlArr)
 readTile (&$xmlArr)
 getMessage ($msgId, $params=array())
 _render ()
 setClientScripts ()
 initAllForms ()
 processRequest ()
 translate ()
 getTransKey ($name)

Protected Attributes

 $m_Messages

Detailed Description

Definition at line 26 of file EasyView.php.


Constructor & Destructor Documentation

__construct ( &$  xmlArr )

Initialize EasyView with xml array

Parameters:
array$xmlArr
Returns:
void

Reimplemented from MetaObject.

Reimplemented in DynaView.

Definition at line 53 of file EasyView.php.

Here is the call graph for this function:


Member Function Documentation

_render (  ) [protected]

Render this view. This function is called by Render() or ReRender()

Returns:
mixed either print html content or return html content if called by Render(), or void if called by ReRender()

Definition at line 248 of file EasyView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

curPageURL (  )

Get current page URL NOTE: This method on next version maybe removed. New method is getCurrentPageUrl

Returns:
string page URL

Definition at line 294 of file EasyView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getCurrentPageUrl (  )

Get current page URL

Returns:
string page URL

Definition at line 305 of file EasyView.php.

Here is the caller graph for this function:

getMessage ( msgId,
params = array() 
) [protected]

Get message, and translate it

Parameters:
<type>$msgId message Id
array$params
Returns:
string message string

Definition at line 155 of file EasyView.php.

getSessionVars ( sessionContext )

Get/Retrieve Session data of this object

Parameters:
SessionContext$sessionContext
Returns:
void

Implements iSessionObject.

Reimplemented in EasyViewWizard.

Definition at line 170 of file EasyView.php.

getViewSet (  )

Get view set name

Returns:
mixed viewset name or null

Definition at line 191 of file EasyView.php.

initAllForms (  ) [protected]

Initialize all form objects.

Returns:
void

Reimplemented in EasyViewWizard.

Definition at line 346 of file EasyView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

isInFormRefLibs ( formName )

Check the Form is in the lib

Parameters:
string$formNameform name
Returns:
bool inside or not

Definition at line 126 of file EasyView.php.

Here is the caller graph for this function:

outputAttrs (  )

Get output attributs

Returns:
array
Todo:
need to raname to getOutputAttributs() or getAttributes

Reimplemented in EasyViewWizard.

Definition at line 410 of file EasyView.php.

Here is the call graph for this function:

processRequest (  ) [protected]

Process request

Returns:
void

Reimplemented in EasyViewWizard.

Definition at line 363 of file EasyView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

processRule (  )

Proses rule

Returns:
void

Definition at line 212 of file EasyView.php.

readMetadata ( &$  xmlArr ) [protected]

Read Metadata from xml array

Parameters:
array$xmlArr
Returns:
void

Reimplemented from MetaObject.

Reimplemented in EasyViewWizard.

Definition at line 64 of file EasyView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

render (  )

Render this view.

Returns:
mixed either print html content, or return html content

Definition at line 228 of file EasyView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setClientScripts (  ) [protected]

Set default client javascript and css that included in the html content

Returns:
void

Definition at line 329 of file EasyView.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setConsoleOutput ( consoleOutput )

Set the Render output to console (as calling print ...) or to a string buffer

Parameters:
boolean$consoleOutput
Returns:
void

Definition at line 202 of file EasyView.php.

setParameters (  )

Set parameters

Returns:
void

Definition at line 220 of file EasyView.php.

setSessionVars ( sessionContext )

Save Session data of this object

Parameters:
SessionContext$sessionContext
Returns:
void

Implements iSessionObject.

Reimplemented in EasyViewWizard.

Definition at line 181 of file EasyView.php.


The documentation for this class was generated from the following file: