1 | <?php |
||
14 | class ActionTitleGenerator extends AbstractModelNameGenerator { |
||
15 | |||
16 | // |
||
17 | // Model generators |
||
18 | // |
||
19 | |||
20 | /** |
||
21 | * Generates the title for a list action |
||
22 | * |
||
23 | * @param Table $model |
||
24 | * @return string |
||
25 | */ |
||
26 | public function generateModelPaginate(Table $model) { |
||
29 | |||
30 | /** |
||
31 | * Generates the title for a create action |
||
32 | * |
||
33 | * @param Table $model |
||
34 | * @return string |
||
35 | */ |
||
36 | public function generateModelCreate(Table $model) { |
||
40 | |||
41 | /** |
||
42 | * Generates the title for a read action |
||
43 | * |
||
44 | * @param Table $model |
||
45 | * @return string |
||
46 | */ |
||
47 | public function generateModelRead(Table $model) { |
||
51 | |||
52 | /** |
||
53 | * Generates the title for an update action |
||
54 | * |
||
55 | * @param Table $model |
||
56 | * @return string |
||
57 | */ |
||
58 | public function generateModelUpdate(Table $model) { |
||
62 | |||
63 | /** |
||
64 | * Generates the title for a delete action |
||
65 | * |
||
66 | * @param Table $model |
||
67 | * @return string |
||
68 | */ |
||
69 | public function generateModelDelete(Table $model) { |
||
73 | |||
74 | // |
||
75 | // Relationship generators |
||
76 | // |
||
77 | |||
78 | /** |
||
79 | * Generates a relationship read action title |
||
80 | * |
||
81 | * @param Relationship $relationship |
||
82 | * @return string |
||
83 | */ |
||
84 | public function generateRelationshipRead(Relationship $relationship) { |
||
90 | |||
91 | /** |
||
92 | * Generates a relationship update action title |
||
93 | * |
||
94 | * @param Relationship $relationship |
||
95 | * @return string |
||
96 | */ |
||
97 | public function generateRelationshipUpdate(Relationship $relationship) { |
||
103 | |||
104 | /** |
||
105 | * Generates a relationship add action title |
||
106 | * |
||
107 | * @param Relationship $relationship |
||
108 | * @return string |
||
109 | */ |
||
110 | public function generateRelationshipAdd(Relationship $relationship) { |
||
116 | |||
117 | /** |
||
118 | * Generates a relationship remove action title |
||
119 | * |
||
120 | * @param Relationship $relationship |
||
121 | * @return string |
||
122 | */ |
||
123 | public function generateRelationshipRemove(Relationship $relationship) { |
||
129 | |||
130 | } |