Property | Type | Description | |
---|---|---|---|
$colDefs | array | Column definitions which are raw arrays and haven't been cast into the appropriate SQLColumn | |
$columns | An array of SQL Columns | ||
$conn | Doctrine\DBAL\Connection | ||
$primary_col | string | ||
$summary_cols | string[] | A list of summary columns | |
$tableName | string | Name of the table |
Method | Description | |
---|---|---|
__construct ( Doctrine\DBAL\Connection $connection, $table = null, $primaryColumn = null, array $summaryCols = [] ) | ||
addColumn ( $id, $expr, $label, $options = [] ) | ||
createItem ( array $values ) | ||
deleteItem ( $rowId ) | ||
deleteMultipleItems ( array $ids ) | ||
getData ( array $params = [] ) | ||
getEditForm ( $id = null ) | ||
getEditFormOrder ( ) | ||
getForeignValues ( $localKey, $value ) | ||
getRelationshipValues ( $id, $foreign ) | ||
getRow ( $id = null ) | ||
getRowCount ( array $params = [] ) | ||
getSchema ( ) | ||
getSummaryColumns ( ) | ||
hasMany ( $id, $label, $page, $options ) | ||
init ( ) | ||
manyToOne ( $id, $foreignKey, $extTable, $primary, $nameColumn, $label ) | ||
oneToMany ( $id, $dataProvider, $externalKey, $localKey, $name ) | ||
setConn ( Doctrine\DBAL\Connection $connection ) | ||
setPrimaryColumn ( $id, $expr ) | ||
setRow ( $id = null, array $values = [] ) | ||
setSummaryColumns ( array $summary_cols ) | ||
setTable ( $table ) |
Method | Description | |
---|---|---|
addConditionsToBuilder ( $builder, $filters ) | ||
getPrimaryColumn ( ) : |
||
getRequiredFields ( ) | ||
getValidatorForField ( $formKey ) | ||
internalAddColumn ( $category, $id, $options = [] ) | ||
isFieldInSchema ( $formKey ) | ||
postProcessColumns ( ) | ||
prepareObjectForClient ( $object ) | ||
processColumns ( ) | Converts columns from raw objects to more powerful cool objects | |
queryColumns ( $queryType, $queryValues, $valueType, boolean $keyValue = false, $ignoreNull = false ) : array | Super cool and useful function to query columns and get a reduced subset |
public __construct ( Doctrine\DBAL\Connection $connection, $table = null, $primaryColumn = null, array $summaryCols = [] ) | ||
$connection | Doctrine\DBAL\Connection | |
$summaryCols | array |
protected addConditionsToBuilder ( $builder, $filters ) | ||
$builder | QueryBuilder | |
$filters |
protected getPrimaryColumn ( ) : |
||
return |
public manyToOne ( $id, $foreignKey, $extTable, $primary, $nameColumn, $label ) |
protected processColumns ( ) |
protected queryColumns ( $queryType, $queryValues, $valueType, boolean $keyValue = false, $ignoreNull = false ) : array | ||
$queryType | ||
$queryValues | ||
$valueType | ||
$keyValue | boolean | |
return | array |
public setConn ( Doctrine\DBAL\Connection $connection ) | ||
$connection | Doctrine\DBAL\Connection |
public setSummaryColumns ( array $summary_cols ) | ||
$summary_cols | array |
protected array $colDefs | ||
return | array |
protected SQLColumn[],CrudKit\Data\SQL $columns | ||
return |
protected Connection,Doctrine\DBAL $conn | ||
return | Doctrine\DBAL\Connection |
protected string[] $summary_cols | ||
return | string[] |