Xajax_core xajaxControl. inc.php |
xajaxControl. inc.phpContains the base class for all controls. Summary
xajaxControl classPlease see copyright.inc.php for a detailed description, copyright and license information. Summary
XAJAX_HTML_CONTROL_DOCTYPE_FORMATDefines the doctype of the current document; this will effect how the HTML is formatted when the html control library is used to construct html documents and fragments. This can be one of the following values:
xajaxControlThe base class for all xajax enabled controls. Derived classes will generate the HTML and javascript code that will be sent to the browser via xajaxControl->printHTML or sent to the browser in a xajaxResponse via xajaxControl->getHTML. Summary
aEvents
An associative array of events that will be assigned to this control. Each event declaration will include a reference to a xajaxRequest object; it’s script will be extracted using xajaxRequest->printScript or xajaxRequest->getScript. xajaxControl
This array may contain the following entries
setAttribute
Call to set various control specific attributes to be included in the HTML script that is returned when xajaxControl->printHTML or xajaxControl->getHTML is called. setEvent
Call this function to assign a xajaxRequest object as the handler for the specific DOM event. The xajaxRequest->printScript function will be called to generate the javascript for this request.
xajaxControlContainerThis class is used as the base class for controls that will contain other child controls. Summary
xajaxControlContainer
Called to construct and configure this control.
addChild
Adds a control to the array of child controls. Child controls must be derived from xajaxControl. |
var $sTag
var $sEndTag
An associative array of attributes that will be used in the generation of the HMTL code for this control.
var $aAttributes
An associative array of events that will be assigned to this control.
var $aEvents
Contains a declaration of the class of this control.
var $sClass
function xajaxControl( $sTag, $aConfiguration = array() )
Returns the adjusted class of the element
function getClass()
Removes all attributes assigned to this control.
function clearAttributes()
Call to set various control specific attributes to be included in the HTML script that is returned when xajaxControl->printHTML or xajaxControl->getHTML is called.
function setAttribute( $sName, $sValue )
Generates and prints the HTML representation of this control and it’s children.
function printHTML( $sIndent = '' )
Generates and returns the HTML representation of this control and it’s children.
function getHTML( $bFormat = false )
Call to obtain the value currently associated with the specified attribute if set.
function getAttribute( $sName )
Clear the events that have been associated with this object.
function clearEvents()
Call this function to assign a xajaxRequest object as the handler for the specific DOM event.
function setEvent( $sEvent, & $objRequest, $aParameters = array(), $sBeforeRequest = '', $sAfterRequest = '; return false;' )
An array of child controls.
var $aChildren
Will contain ‘%inline’ if all children are class = ‘%inline’, ‘%block’ if all children are ‘%block’ or ‘%flow’ if both ‘%inline’ and ‘%block’ elements are detected.
var $sChildClass
Called to construct and configure this control.
function xajaxControlContainer( $sTag, $aConfiguration = array() )
Returns the adjusted class of the element
function getClass()
Returns the adjusted class of the content (children) of this element
function getContentClass()
Clears the list of child controls associated with this control.
function clearChildren()
Adds a control to the array of child controls.
function addChild( & $objControl )
Generates a block of javascript code that can be used to invoke the specified xajax request.
function printScript()
Returns a string representation of the script output (javascript) from this request object.
function getScript()