PHP Класс AuthModule

Автор: Fred ([email protected])
Наследование: extends CWebModule
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$appLayout the application layout. Change this if you wish to use a different layout with the module.
$defaultController string the id of the default controller for this module.
$flashKeys map of flash message keys to use for the module.
$forceCopyAssets whether to force copying of assets. Useful during development and when upgrading the module.
$strictMode whether to enable the RBAC strict mode. When enabled items cannot be assigned children of the same type.
$userClass name of the user model class. Change this if your user model name is different than the default value.
$userIdColumn name of the user id column. Change this if the id column in your user table is different than the default value.
$userNameColumn name of the user name column. Change this if the name column in your user table is different than the default value.
$viewDir path to view files for this module. Specify this to use your own views instead of those shipped with the module.

Открытые методы

Метод Описание
beforeControllerAction ( CController $controller, CAction $action ) : boolean The pre-filter for controller actions.
getVersion ( ) : string Returns the module version number.
init ( ) Initializes the module.
registerCss ( ) Registers the module CSS.

Защищенные методы

Метод Описание
getAssetsUrl ( ) : string Returns the URL to the published assets folder.

Описание методов

beforeControllerAction() публичный Метод

The pre-filter for controller actions.
public beforeControllerAction ( CController $controller, CAction $action ) : boolean
$controller CController the controller.
$action CAction the action.
Результат boolean whether the action should be executed.

getAssetsUrl() защищенный Метод

Returns the URL to the published assets folder.
protected getAssetsUrl ( ) : string
Результат string the URL.

getVersion() публичный Метод

Returns the module version number.
public getVersion ( ) : string
Результат string the version.

init() публичный Метод

Initializes the module.
public init ( )

registerCss() публичный Метод

Registers the module CSS.
public registerCss ( )

Описание свойств

$appLayout публичное свойство

the application layout. Change this if you wish to use a different layout with the module.
public $appLayout

$defaultController публичное свойство

string the id of the default controller for this module.
public $defaultController

$flashKeys публичное свойство

map of flash message keys to use for the module.
public $flashKeys

$forceCopyAssets публичное свойство

whether to force copying of assets. Useful during development and when upgrading the module.
public $forceCopyAssets

$strictMode публичное свойство

whether to enable the RBAC strict mode. When enabled items cannot be assigned children of the same type.
public $strictMode

$userClass публичное свойство

name of the user model class. Change this if your user model name is different than the default value.
public $userClass

$userIdColumn публичное свойство

name of the user id column. Change this if the id column in your user table is different than the default value.
public $userIdColumn

$userNameColumn публичное свойство

name of the user name column. Change this if the name column in your user table is different than the default value.
public $userNameColumn

$viewDir публичное свойство

path to view files for this module. Specify this to use your own views instead of those shipped with the module.
public $viewDir