Property | Type | Description | |
---|---|---|---|
$data | array[] | ||
$schema | array[] | ||
$summaryColumns | string |
Method | Description | |
---|---|---|
__construct ( array $schema, array $summaryCols, array $data = [] ) | ||
createItem ( array $values ) : integer | ||
deleteItem ( mixed $rowId ) : boolean | ||
deleteMultipleItems ( array $ids ) : boolean | ||
getData ( array $params = [] ) | ||
getEditForm ( ) | ||
getEditFormOrder ( ) | ||
getRelationshipValues ( $id, $foreign_key ) : array | ||
getRow ( $id = null ) | ||
getRowCount ( array $params = [] ) | ||
getSchema ( ) | ||
getSummaryColumns ( ) | ||
setRow ( $id = null, array $values = [] ) |
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 | Description | |
---|---|---|
addFormItemFromSchema ( CrudKit\Util\FormHelper $form, $columnId, array $columnOptions ) |
public createItem ( array $values ) : integer | ||
$values | array | |
return | integer |
public deleteMultipleItems ( array $ids ) : boolean | ||
$ids | array | |
return | boolean |
public getRelationshipValues ( $id, $foreign_key ) : array | ||
$id | ||
$foreign_key | ||
return | array |
protected getRequiredFields ( ) : string[] | ||
return | string[] |
protected isFieldInSchema ( string $formKey ) : boolean | ||
$formKey | string | |
return | boolean |