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;

Methods

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


Last updated : September 15, 2018 b92362d