VihvLCC  3.0.0
Container Class Reference
Inheritance diagram for Container:
Collaboration diagram for Container:

Public Member Functions

 __construct ()
 
 addChild (Control $child)
 
 insertChildAfter ($previousClassName, Control $child)
 
 insertChildAfterIndex ($index, Control $child)
 
 getChildIndex ($className)
 
 addChildren ($children)
 
 getChildren ()
 
 childrenCount ()
 
 enableChildren ()
 
 onRootTemplateLoadEvent ($Sender, $DOM)
 
 getData ()
 
 appendChildTemplate (Control $Child,\DOMDocument $DOM)
 
 onChildTemplatesLoadEvent (Control $Sender)
 
- Public Member Functions inherited from Control
 __construct ()
 
 setEventManager (EventManager $eventManager)
 
 getEventManager ()
 
 enable ()
 
 disable ()
 
 isEnabled ()
 
 getRootTag ()
 
 getResourceId ()
 
 getAttributes ()
 
 getXmlAttributes ()
 
 getTemplate ()
 
 warningHandler ($code, $message)
 
 setTheme (ITheme $theme)
 
 getTheme ()
 
 getXSLT ()
 
 getHtml ($format= 'html')
 
 getXml ()
 
 setData (Array $data)
 
 pushData ($key, $value)
 
 pushBoolData ($key, $value)
 
 getData ()
 
 setParent (Container $Container)
 
 getParent ()
 
 __call ($EventName, $Args)
 
 setEvent ($Name, $Handler)
 
 provide ($EventName)
 
 goBack ()
 
 onGetEvent ($Sender, $Input)
 
 onPostEvent ($Sender, $Input)
 
 onCreateEvent ($sender)
 
 onParkedEvent ($sender)
 
 onRootTemplateLoadEvent ($Sender, $DOM)
 
 onDisplayEvent ($Sender)
 
 onEnableEvent ($sender)
 
 onDisableEvent ($Sender)
 
 onDefaultPageEvent ($Sender)
 
 onBeforeDisplayEvent ($Sender)
 
 onParented ()
 
 onParentedEvent ()
 
- Public Member Functions inherited from IControl
 GetHtml ()
 
 GetXml ()
 
 Provide ($Name)
 
 SetParent ($Container)
 
 OnGetEvent ($Input, $Sender)
 
 OnPostEvent ($Input, $Sender)
 
 SetEvent ($Name, $Handler)
 

Additional Inherited Members

- Data Fields inherited from Control
 $Data
 

Detailed Description

this control can contain another controls

Events: OnChildTemplatesLoad

Constructor & Destructor Documentation

__construct ( )

initialize object, add new event - onChildTemplatesLoad, then call parent constructor

Member Function Documentation

addChild ( Control  $child)

add child control to container and park if possible

Parameters
\vihv\Control$child

Here is the call graph for this function:

addChildren (   $children)

add multiple child controls

Parameters
$childrenarray of Control
appendChildTemplate ( Control  $Child,
\DOMDocument  $DOM 
)

as for XSLT template are independent, we should include child templates into template of container

Parameters
\vihv\Control$Child
\DOMDocument$DOM

this function add <xsl:include href="child template filename"/>

childrenCount ( )
Returns
number count of child controls
enableChildren ( )

enable child controls for this container (not recursive)

getChildIndex (   $className)

detect index of child control

Parameters
string$className
Returns
number
Exceptions
EContainerChildNotFound
getChildren ( )

get all child controls for this container

Returns
Array of
getData ( )

used by getXml later

Returns
Array associative array with data of this control and all child controls in it
insertChildAfter (   $previousClassName,
Control  $child 
)

insert child control after previously added control, specified by class name

Parameters
string$previousClassName
\vihv\Control$child
insertChildAfterIndex (   $index,
Control  $child 
)

inser child control after specified position

Parameters
number$index
\vihv\Control$child

Here is the call graph for this function:

onChildTemplatesLoadEvent ( Control  $Sender)

to be overriden by child class default handler for onChildTemplatesLoad event

Parameters
\vihv\Control$Senderobject which provide this event handler, in most cases $sender is equal to $this, unless several different controls use the same event handler
onRootTemplateLoadEvent (   $Sender,
  $DOM 
)

root template is loaded, so we add child templates


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