PHP Класс ZF\Apigility\Admin\Model\InputFilterModel

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$configFactory ZF\Configuration\ResourceFactory

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

Метод Описание
__construct ( ZF\Configuration\ResourceFactory $configFactory ) $validatorPlugins should typically be an instance of Zend\Validator\ValidatorPluginManager.
controllerExists ( string $module, string $controller ) : boolean Check if a module and controller exists
fetch ( string $module, string $controller, string $inputFilterName = null ) : false | array | InputFilterEntity Get the validators of a specific module and controller
moduleExists ( string $module ) : boolean Check if the module exists
remove ( string $module, string $controller, string $inputname ) : boolean Remove the named input
update ( string $module, string $controller, array $inputFilter ) : false | InputFilterEntity Update a specific controller with a new inputfilter (validator)

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

Метод Описание
addInputFilter ( string $module, string $controller, array $inputFilter, string $validatorName = null ) : array | boolean Add input filter
generateValidatorName ( string $controller ) : string Generates the validator name based on controller name
getCollectionType ( string $controller ) : string Determine the collection class to use
getEntityType ( string $controller ) : string Determine the entity class to use
getInputFilter ( string $module, string $controller, string $inputFilterName = null ) : false | InputFilterCollection | InputFilterEntity Get input filter of a module and controller
removeInputFilter ( string $module, string $controller, string $inputFilterName ) : boolean Remove input filter

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

__construct() публичный метод

$validatorPlugins should typically be an instance of Zend\Validator\ValidatorPluginManager.
public __construct ( ZF\Configuration\ResourceFactory $configFactory )
$configFactory ZF\Configuration\ResourceFactory

addInputFilter() защищенный метод

Add input filter
protected addInputFilter ( string $module, string $controller, array $inputFilter, string $validatorName = null ) : array | boolean
$module string
$controller string
$inputFilter array
$validatorName string
Результат array | boolean

controllerExists() публичный метод

Check if a module and controller exists
public controllerExists ( string $module, string $controller ) : boolean
$module string
$controller string
Результат boolean

fetch() публичный метод

Get the validators of a specific module and controller
public fetch ( string $module, string $controller, string $inputFilterName = null ) : false | array | InputFilterEntity
$module string
$controller string
$inputFilterName string
Результат false | array | InputFilterEntity

generateValidatorName() защищенный метод

Generates the validator name based on controller name
protected generateValidatorName ( string $controller ) : string
$controller string
Результат string

getCollectionType() защищенный метод

Determine the collection class to use
protected getCollectionType ( string $controller ) : string
$controller string
Результат string

getEntityType() защищенный метод

Determine the entity class to use
protected getEntityType ( string $controller ) : string
$controller string
Результат string

getInputFilter() защищенный метод

Get input filter of a module and controller
protected getInputFilter ( string $module, string $controller, string $inputFilterName = null ) : false | InputFilterCollection | InputFilterEntity
$module string
$controller string
$inputFilterName string
Результат false | InputFilterCollection | InputFilterEntity

moduleExists() публичный метод

Check if the module exists
public moduleExists ( string $module ) : boolean
$module string
Результат boolean

remove() публичный метод

Remove the named input
public remove ( string $module, string $controller, string $inputname ) : boolean
$module string
$controller string
$inputname string
Результат boolean

removeInputFilter() защищенный метод

Remove input filter
protected removeInputFilter ( string $module, string $controller, string $inputFilterName ) : boolean
$module string
$controller string
$inputFilterName string
Результат boolean

update() публичный метод

Update a specific controller with a new inputfilter (validator)
public update ( string $module, string $controller, array $inputFilter ) : false | InputFilterEntity
$module string
$controller string
$inputFilter array
Результат false | InputFilterEntity

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

$configFactory защищенное свойство

protected ResourceFactory,ZF\Configuration $configFactory
Результат ZF\Configuration\ResourceFactory