API DOCS

DOCS & TUTORIALS » API DOCS » xajax_core » xajaxControl.inc.php » xajaxControl

Class: xajaxControl



The 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>.

variables

functions

xajaxControl

function xajaxControl($sTag, $aConfiguration=array()

getClass

function getClass()

Returns the *adjusted* class of the element

clearAttributes

function clearAttributes()

Removes all attributes assigned to this control.

setAttribute

function setAttribute($sName, $sValue)

Call to set various control specific attributes to be included in the HTML
script that is returned when printHTML> or getHTML>
is called.


getAttribute

function getAttribute($sName)

Call to obtain the value currently associated with the specified attribute
if set.


clearEvents

function clearEvents()

Clear the events that have been associated with this object.

setEvent

function setEvent($sEvent, &$objRequest, $aParameters=array()

Call this function to assign a object as the handler for
the specific DOM event. The printScript> function will
be called to generate the javascript for this request.


getHTML

function getHTML($bFormat=false)

Generates and returns the HTML representation of this control and
it's children.


printHTML

function printHTML($sIndent='')

Generates and prints the HTML representation of this control and
it's children.


 



XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional