TComponent
|
--TControl
TControl class
Class Details
|
|
constructor __construct [line 133]
method addBody [line 167]
void addBody(
mixed
$object)
|
|
Appends an object into the body collection of this control.
This method is equivalent to $control->Bodies->add($object).
Parameters:
method addParsedObject [line 156]
method allowBody [line 212]
method clearViewState [line 658]
void clearViewState(
[boolean
$recursive = true])
|
|
Clears viewstate
Parameters:
method findBodyControl [line 220]
TControl|null findBodyControl(
mixed
$id)
|
|
method getAttribute [line 278]
string|null getAttribute(
string
$name)
|
|
Parameters:
method getAttributes [line 287]
Returns the attribute list object.
method getAttributesToRender [line 583]
method getBodies [line 251]
method getClientID [line 145]
Returns the client ID of the component.
The client ID is similar to the unique ID except underscores are used as connectors instead of colons.
method getContainer [line 234]
Returns the container of this component.
method getSkinName [line 312]
method getTagName [line 295]
method getViewState [line 646]
mixed getViewState(
string
$key, [mixed
$defaultValue = null])
|
|
Returns a viewstate value.
This function is very useful in defining getter functions for component properties that must be kept in viewstate.
Parameters:
method initSkin [line 332]
void initSkin(
[mixed
$skinName = null])
|
|
Initializes a skin for the control. If a skin name is provided then that skin will be loaded.
If not then the skin as defined by the SkinName property of the control will be loaded. If this property has no value then the default skin for the control will be loaded. If no default skin exists for this control then no skin will be loaded at all.
method isViewStateEnabled [line 386]
boolean isViewStateEnabled(
)
|
|
method isVisible [line 357]
boolean isVisible(
[boolean
$checkContainers = false])
|
|
This method checks whether a control is visible.
If $checkContainers is true, it will also check the visibility of the containers of the control. It returns false if any container is invisible.
Parameters:
method loadViewState [line 682]
void loadViewState(
array
$viewState)
|
|
Loads viewstate into this component and its children.
Current implementation is that the viewstate for a component is stored as an array. The first array element stores the viewstate of this component. The rest elements store the viewstates of the child components, indexed by their IDs.
This method should only be used by framework and component developers.
Overridden in child classes as:
- TPage::loadViewState()
- TRepeater::loadViewState()
- Loads viewstate into this control and its children.
- TDataGrid::loadViewState()
- Loads viewstate into this control and its children.
- TDataList::loadViewState()
- Loads viewstate into this control and its children.
- TListControl::loadViewState()
- Loads viewstate into this control and its children.
Parameters:
method onBubbleEvent [line 615]
method onInit [line 458]
This method is invoked when the control enters 'Init' stage.
The method raises 'OnInit' event to fire up the event delegates. If you override this method, be sure to call the parent implementation so that the event delegates can be invoked.
Parameters:
method onInitRecursive [line 404]
Calls onInit of this control and its children recursively.
This method should only be used by framework developers.
Overridden in child classes as:
- TPage::onInitRecursive()
Parameters:
method onLoad [line 470]
This method is invoked when the control enters 'Load' stage.
The method raises 'OnLoad' event to fire up the event delegates. If you override this method, be sure to call the parent implementation so that the event delegates can be invoked.
Overridden in child classes as:
- TWizard::onLoad()
- Initalize and add the default navigation templates. Add the side bar if required.
- TValidatorGroup::onLoad()
- This overrides the parent implementation by doing the group validation.
Parameters:
method onLoadRecursive [line 417]
Calls onLoad of this control and its children recursively.
This method should only be used by framework developers.
Overridden in child classes as:
- TPage::onLoadRecursive()
Parameters:
method onPreRender [line 494]
method onPreRenderRecursive [line 430]
Calls onPreRender of this control and its children recursively.
This method should only be used by framework developers.
Overridden in child classes as:
- TPage::onPreRenderRecursive()
Parameters:
method onUnload [line 482]
This method is invoked when the control enters 'Unload' stage.
The method raises 'OnUnload' event to fire up the event delegates. If you override this method, be sure to call the parent implementation so that the event delegates can be invoked.
Parameters:
method onUnloadRecursive [line 443]
Calls onUnload of this control and its children recursively.
This method should only be used by framework developers.
Overridden in child classes as:
- TPage::onUnloadRecursive()
Parameters:
method raiseBubbleEvent [line 597]
void raiseBubbleEvent(
TComponent
$sender, TEventParameter
$param)
|
|
Invokes the parent's onBubbleEvent method.
A control who wants to bubble an event must call this method in its onEvent method.
Parameters:
method removeBodies [line 259]
Removes all body content.
method render [line 508]
method renderAttributes [line 562]
string renderAttributes(
[array|null
$attributes = null])
|
|
Renders the attributes.
It returns a string consisting of key-value pairs based on the input array. getAttributesToRender.
Overridden in child classes as:
- TDataListItem::renderAttributes()
- Renders the attributes.
Parameters:
method renderBody [line 537]
method saveViewState [line 719]
method setAttribute [line 269]
void setAttribute(
string
$name, string
$value)
|
|
Sets an attribute.
Overrides
TComponent::setAttribute() (Sets an attribute.)
Parameters:
method setContainer [line 243]
void setContainer(
mixed
$container)
|
|
Sets the container of this component
method setEnableViewState [line 394]
void setEnableViewState(
boolean
$value)
|
|
Parameters:
method setSkinName [line 320]
void setSkinName(
mixed
$skin)
|
|
Sets the skin to use for this control
method setTagName [line 304]
void setTagName(
string
$tagName)
|
|
Sets the tag name.
Parameters:
method setViewState [line 629]
void setViewState(
string
$key, mixed
$value, [mixed
$defaultValue = null])
|
|
Sets a viewstate value.
This function is very useful in defining setter functions for control properties that must be kept in viewstate.
Parameters:
method setVisible [line 378]
void setVisible(
boolean
$value)
|
|
Parameters:
method synchronizeControl [line 179]
void synchronizeControl(
TControl
$control)
|
|
This method should only be used by framework developer.
It is invoked when a body control is being added. The control will be made synchronized to the current life cycle of the page hierarchy.
Parameters: