PHP 클래스 ZF\Apigility\Admin\Model\InputFilterModel

파일 보기 프로젝트 열기: zfcampus/zf-apigility-admin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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