Method | Description | |
---|---|---|
createChildControls ( ) | Creates child controls. | |
getIsSourceTemplateControl ( ) : boolean | ||
getMaster ( ) : |
||
getMasterClass ( ) : string | ||
getTemplate ( ) : Prado\Web\UI\ITemplate | null | Returns the template object associated with this control object. | |
getTemplateDirectory ( ) : string | ||
injectContent ( $id, $content ) | Injects all content controls (and their children) to the corresponding content placeholders. | |
registerContent ( $id, |
Registers a content control. | |
registerContentPlaceHolder ( $id, |
Registers a content placeholder to this template control. | |
setMasterClass ( $value ) | ||
setTemplate ( $value ) | Sets the parsed template. | |
tryToUpdateAR ( TActiveRecord $arObj, boolean $throwExceptions = false ) | Function to try to update an AR object with data in view controls. | |
tryToUpdateView ( TActiveRecord $arObj, boolean $throwExceptions = false ) | Function to update view controls with data in a given AR object. |
Method | Description | |
---|---|---|
initRecursive ( $namingContainer = null ) | Performs the OnInit step for the control and all its child controls. | |
loadTemplate ( ) : Prado\Web\UI\ITemplate | Loads the template associated with this control class. |
public createChildControls ( ) |
public getIsSourceTemplateControl ( ) : boolean | ||
return | boolean | whether this control is a source template control. A source template control loads its template from external storage, such as file, db, rather than from within another template. |
public getMasterClass ( ) : string | ||
return | string | master class name (in namespace form) |
public getTemplate ( ) : Prado\Web\UI\ITemplate | null | ||
return | Prado\Web\UI\ITemplate | null | the parsed template, null if none |
public getTemplateDirectory ( ) : string | ||
return | string | the directory containing the template. Empty if no template available. |
protected initRecursive ( $namingContainer = null ) |
public injectContent ( $id, $content ) |
protected loadTemplate ( ) : Prado\Web\UI\ITemplate | ||
return | Prado\Web\UI\ITemplate | the parsed template structure |
public registerContent ( $id, |
||
$object |
public registerContentPlaceHolder ( $id, |
||
$object |
public setTemplate ( $value ) |
public tryToUpdateAR ( TActiveRecord $arObj, boolean $throwExceptions = false ) | ||
$arObj | TActiveRecord | |
$throwExceptions | boolean | Wheter or not to throw exceptions |
public tryToUpdateView ( TActiveRecord $arObj, boolean $throwExceptions = false ) | ||
$arObj | TActiveRecord | |
$throwExceptions | boolean | Wheter or not to throw exceptions |