| 1 | <?php |
||
| 8 | abstract class AbstractDataSource implements DataSourceInterface |
||
| 9 | {
|
||
| 10 | use EventManagerAwareTrait; |
||
| 11 | |||
| 12 | const EVENT_DATASOURCE_PREPARE_POST = 'at-datagrid.datasource.prepare.post'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $identifierFieldName = 'id'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var AdapterInterface |
||
| 21 | */ |
||
| 22 | protected $paginatorAdapter; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param $name |
||
| 26 | */ |
||
| 27 | public function setIdentifierFieldName($name) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getIdentifierFieldName() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param AdapterInterface $adapter |
||
| 42 | */ |
||
| 43 | public function setPaginatorAdapter(AdapterInterface $adapter) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return AdapterInterface |
||
| 50 | */ |
||
| 51 | public function getPaginatorAdapter() |
||
| 55 | } |