Property | Type | Description | |
---|---|---|---|
$AssetName | The name of the current asset that is being rendered. | ||
$Data | Data that is passed into the view. | ||
$Visible | boolean |
Property | Type | Description | |
---|---|---|---|
$_ApplicationFolder | The name of the application folder that this module resides within. | ||
$_Sender | The object that constructed this object. Typically this should be a Controller object. | ||
$_ThemeFolder | The name of the theme folder that the application is currently using. | ||
$view | The filename of view to render, excluding the extension. |
Method | Description | |
---|---|---|
__construct ( object $Sender = '', $ApplicationFolder = false ) | Class constructor | |
__toString ( ) : string | Magic method for type casting to string. | |
allowed ( boolean | string | array $isAllowed ) : boolean | Checks whether an item is allowed by returning it if it is already a boolean, or checking the permission if it is a string or array. | |
assetTarget ( ) | Returns the name of the asset where this component should be rendered. | |
data ( null $Name = null, string $Default = '' ) : array | mixed | ||
fetchView ( $view = '' ) : string | Returns the xhtml for this module as a fully parsed and rendered string. | |
fetchViewLocation ( string $View = '', string $ApplicationFolder = '' ) : array | Returns the location of the view for this module in the filesystem. | |
getView ( ) : string | ||
name ( ) : string | Returns the name of this module. Unless it is overridden, it will simply return the class name. | |
path ( boolean $NewValue = false ) : boolean | string | ||
render ( ) | Output HTML. | |
setData ( $Name, $Value ) | ||
setView ( string $view ) | ||
toString ( ) : string | Returns the component as a string to be rendered to the screen. |
public __construct ( object $Sender = '', $ApplicationFolder = false ) | ||
$Sender | object |
public __toString ( ) : string | ||
return | string |
public allowed ( boolean | string | array $isAllowed ) : boolean | ||
$isAllowed | boolean | string | array | Either a boolean to indicate whether to actually add the item or a permission string or array of permission strings (full match) to check. |
return | boolean | Whether the item has permission to be added to the items list. |
public assetTarget ( ) |
public $AssetName |
protected $_ApplicationFolder |
protected $_Sender |
protected $_ThemeFolder |