PHP Class RainLab\Builder\Classes\ControllerModel

Author: Alexey Bobkov, Samuel Georges
Inheritance: extends RainLab\Builder\Classes\BaseModel
Mostra file Open project: rainlab/builder-plugin Class Usage Examples

Public Properties

Property Type Description
$baseModelClassName
$behaviors
$controller
$menuItem
$permissions

Protected Properties

Property Type Description
$fillable
$validationRules

Public Methods

Method Description
fill ( array $attributes )
getBaseModelClassNameOptions ( )
getBehaviorsOptions ( )
getControllerFilePath ( $controllerFilesDirectory = false )
getMenuItemOptions ( )
getPermissionsOptions ( )
getPluginRegistryData ( $pluginCode, $subtype )
listPluginControllers ( $pluginCodeObj )
load ( $controller )
save ( )

Protected Methods

Method Description
generateController ( )
loadBehaviorConfiguration ( $fileName, $behaviorClass )
loadControllerBehaviors ( )
saveBehaviorConfiguration ( $fileName, $configuration, $behaviorClass )
saveController ( )
trimExtension ( $fileName )
validateFileName ( $fileName )

Method Details

fill() public method

public fill ( array $attributes )
$attributes array

generateController() protected method

protected generateController ( )

getBaseModelClassNameOptions() public method

getBehaviorsOptions() public method

public getBehaviorsOptions ( )

getControllerFilePath() public method

public getControllerFilePath ( $controllerFilesDirectory = false )

getMenuItemOptions() public method

public getMenuItemOptions ( )

getPermissionsOptions() public method

getPluginRegistryData() public static method

public static getPluginRegistryData ( $pluginCode, $subtype )

listPluginControllers() public static method

public static listPluginControllers ( $pluginCodeObj )

load() public method

public load ( $controller )

loadBehaviorConfiguration() protected method

protected loadBehaviorConfiguration ( $fileName, $behaviorClass )

loadControllerBehaviors() protected method

protected loadControllerBehaviors ( )

save() public method

public save ( )

saveBehaviorConfiguration() protected method

protected saveBehaviorConfiguration ( $fileName, $configuration, $behaviorClass )

saveController() protected method

protected saveController ( )

trimExtension() protected method

protected trimExtension ( $fileName )

validateFileName() protected method

protected validateFileName ( $fileName )

Property Details

$baseModelClassName public_oe property

public $baseModelClassName

$behaviors public_oe property

public $behaviors

$controller public_oe property

public $controller

$fillable protected_oe static_oe property

protected static $fillable

$menuItem public_oe property

public $menuItem

$permissions public_oe property

public $permissions

$validationRules protected_oe property

protected $validationRules