PHP Class CrudKit\Data\BaseDataProvider

Datei anzeigen Open project: skyronic/crudkit Class Usage Examples

Protected Properties

Property Type Description
$initQueue
$page CrudKit\Pages\Page

Public Methods

Method Description
getEditForm ( )
getEditFormConfig ( )
init ( )
setPage ( CrudKit\Pages\Page $page )
validateRequiredRow ( array $values = [] )
validateRow ( array $values = [] )

Protected Methods

Method Description
getRequiredFields ( ) : string[] Returns an array of require field names
getValidatorForField ( string $formKey ) : callable | null Returns a callable validator for this field if it exists, and null otherwise
isFieldInSchema ( string $formKey ) : boolean Returns true if a field exists as part of this source's schema

Method Details

getEditForm() public method

public getEditForm ( )

getEditFormConfig() public method

public getEditFormConfig ( )

getRequiredFields() abstract protected method

Returns an array of require field names
abstract protected getRequiredFields ( ) : string[]
return string[]

getValidatorForField() abstract protected method

Returns a callable validator for this field if it exists, and null otherwise
abstract protected getValidatorForField ( string $formKey ) : callable | null
$formKey string
return callable | null

init() public method

public init ( )

isFieldInSchema() abstract protected method

Returns true if a field exists as part of this source's schema
abstract protected isFieldInSchema ( string $formKey ) : boolean
$formKey string
return boolean

setPage() public method

public setPage ( CrudKit\Pages\Page $page )
$page CrudKit\Pages\Page

validateRequiredRow() public method

public validateRequiredRow ( array $values = [] )
$values array

validateRow() public method

public validateRow ( array $values = [] )
$values array

Property Details

$initQueue protected_oe property

protected $initQueue

$page protected_oe property

protected Page,CrudKit\Pages $page
return CrudKit\Pages\Page