VihvLCC  3.0.0
IControl Interface Reference
Inheritance diagram for IControl:

Public Member Functions

 GetHtml ()
 
 GetXml ()
 
 Provide ($Name)
 
 SetParent ($Container)
 
 onCreateEvent ($sender)
 
 OnGetEvent ($Input, $Sender)
 
 OnPostEvent ($Input, $Sender)
 
 SetEvent ($Name, $Handler)
 

Detailed Description

interface for all vihv controls

Member Function Documentation

GetHtml ( )
Returns
part of html suitable to be embeded into ANY application
GetXml ( )
Returns
data for displaying serialized as Xml, mostly for future use in xslt template
onCreateEvent (   $sender)

event handler invoked after constructor

Implemented in Control.

OnGetEvent (   $Input,
  $Sender 
)

this event raised if you pass any data by http get method, this should be access for reading data and displaying in on web page vihv.org?a=b&v=i <– this is get request $Input parameter in this case becomes array('a'=>'b', 'v'=>'i');

OnPostEvent (   $Input,
  $Sender 
)

this is handler for http POST method, should be used for data modification

Provide (   $Name)

check if a control has event handler for specified event

Returns
true if provide
SetEvent (   $Name,
  $Handler 
)

Example $Sender->SetEvent('OnEnable', array($this, 'OnEnableEvent'));

Parameters
$Namename of event, event will be called like $Sender->OnEnable()
$Handlerarray(object what contains method, method name) where "method" is a fuction what does all real work
SetParent (   $Container)

Sets Container what own this control


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