Property | Type | Description | |
---|---|---|---|
$blocksData | array | Blocks data: contains parsed value of bb-code like strings | |
$components | array | Other components used by this component |
Property | Type | Description | |
---|---|---|---|
$_controller | Controller | controller | |
$_defaultRoleId | integer | Default is 3 (public) |
Method | Description | |
---|---|---|
__get ( $name ) : Object | Method to lazy load classes | |
addAco ( string $action, array $allowRoles = [] ) : void | ACL: add ACO | |
addPluginBootstrap ( string $plugin ) : void | Loads plugin's bootstrap.php file | |
checkPluginDependency ( string $plugin = null ) : boolean | Check if plugin is dependent on any other plugin. | |
extractFilter ( ) : array | Extracts parameters from 'filter' named parameter. | |
fieldToggle ( Model $model, $id, $status, $field = 'status' ) | Toggle field status | |
getPluginData ( string $alias = null ) : array | Get the content of plugin.json file of a plugin | |
getPlugins ( ) : array | Get plugin alises (folder names) | |
getRelativePath ( array $url = '/' ) : array | Get URL relative to the app | |
getThemeData ( string $alias = null ) : array | Get the content of theme.json file from a theme | |
getThemes ( ) : array | Get theme aliases (folder names) | |
pluginIsActive ( string $plugin ) : boolean | Check if plugin is active | |
redirect ( string $url, integer $status = null, boolean $exit = true, array $indexUrl = [] ) : void | Croogo flavored redirect | |
removeAco ( string $action ) : void | ACL: remove ACO | |
removePluginBootstrap ( string $plugin ) : void | Plugin name will be removed from Hook.bootstraps | |
roleId ( ) : integer | Gets the Role Id of the current user | |
setReferer ( ) : void | Sets the referer page | |
startup ( Controller $controller ) : void | Startup | |
viewFallback ( string | array $views ) : void | View Fallback |
Method | Description | |
---|---|---|
_adminData ( ) : void | Set variables for admin layout | |
_adminMenus ( ) | Setup admin menu | |
_setupViewPaths ( Controller $controller ) : array | Get a list of possible view paths for current request |
protected _adminData ( ) : void | ||
return | void |
protected _setupViewPaths ( Controller $controller ) : array | ||
$controller | Controller | |
return | array | A list of view paths |
public addPluginBootstrap ( string $plugin ) : void | ||
$plugin | string | Plugin name (underscored) |
return | void |
public checkPluginDependency ( string $plugin = null ) : boolean | ||
$plugin | string | plugin alias (underscrored) |
return | boolean |
public extractFilter ( ) : array | ||
return | array |
public fieldToggle ( Model $model, $id, $status, $field = 'status' ) | ||
$model | Model | Model instance |
$id | integer Model id | |
$status | integer current status | |
$field | string field name to toggle |
public getPluginData ( string $alias = null ) : array | ||
$alias | string | plugin folder name |
return | array |
public getPlugins ( ) : array | ||
return | array |
public getRelativePath ( array $url = '/' ) : array | ||
$url | array | |
return | array |
public getThemeData ( string $alias = null ) : array | ||
$alias | string | theme folder name |
return | array |
public pluginIsActive ( string $plugin ) : boolean | ||
$plugin | string | Plugin name (underscored) |
return | boolean |
public removePluginBootstrap ( string $plugin ) : void | ||
$plugin | string | Plugin name (underscored) |
return | void |
public setReferer ( ) : void | ||
return | void |
protected int $_defaultRoleId | ||
return | integer |
public array $blocksData | ||
return | array |
public array $components | ||
return | array |