| 1 | <?php |
||
| 11 | class CRUDDatas { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Returns the table names to display in the left admin menu |
||
| 15 | */ |
||
| 16 | public function getTableNames(){ |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Returns the fields to display in the showModel action for $model (DataTable) |
||
| 22 | * @param string $model |
||
| 23 | */ |
||
| 24 | public function getFieldNames($model){ |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns the fields to update in the edit an new action for $model |
||
| 30 | * @param string $model |
||
| 31 | */ |
||
| 32 | public function getFormFieldNames($model){ |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the fields to use in search queries |
||
| 38 | * @param string $model |
||
| 39 | */ |
||
| 40 | public function getSearchFieldNames($model){ |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns the fields for displaying an instance of $model (DataElement) |
||
| 46 | * @param string $model |
||
| 47 | */ |
||
| 48 | public function getElementFieldNames($model){ |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Returns a list of $fkClass objects to select a value for $member |
||
| 54 | * @param string $fkClass |
||
| 55 | * @param object $instance |
||
| 56 | * @param string $member |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | public function getManyToManyDatas($fkClass,$instance,$member){ |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return boolean |
||
| 65 | */ |
||
| 66 | public function getUpdateOneToManyInForm() { |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return boolean |
||
| 72 | */ |
||
| 73 | public function getUpdateManyToManyInForm() { |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return boolean |
||
| 79 | */ |
||
| 80 | public function getUpdateManyToOneInForm() { |
||
| 83 | } |
||
| 84 |