TableAware
TableAware
Provides methods for Gateway classes that are tied to a specific database table.
For QueryableGateways, this trait implements the required countAll() method.
The classes using this trait must implement a static $tableName;
- Full name: \Gibbon\Domain\Traits\TableAware
Methods
- getTableName — Gets the database table name.
- getTableSchema — Gets the schema information for the columns in this database table.
- getSearchableColumns — Get an internal pre-defined array of column names that are searchable.
- countAll — Gets the total number of rows in this database table.
getTableName
Gets the database table name.
TableAware::getTableName( ): string
Return Value:
string
getTableSchema
Gets the schema information for the columns in this database table.
TableAware::getTableSchema( ): array
Return Value:
array
getSearchableColumns
Get an internal pre-defined array of column names that are searchable.
TableAware::getSearchableColumns( ): array
Return Value:
array
countAll
Gets the total number of rows in this database table.
TableAware::countAll( ): integer
Return Value:
integer