1 | <?php |
||
12 | class ActionClassNameGenerator extends AbstractModelNameGenerator { |
||
13 | |||
14 | /** |
||
15 | * Returns the namespace for the model actions |
||
16 | * |
||
17 | * @return string |
||
18 | */ |
||
19 | private function getModelActionNamespace() { |
||
22 | |||
23 | /** |
||
24 | * Returns the namespace for relationship actions |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | private function getRelationshipActionNamespace() { |
||
31 | |||
32 | // |
||
33 | // Model generators |
||
34 | // |
||
35 | |||
36 | /** |
||
37 | * Generates the class name for a list action |
||
38 | * |
||
39 | * @param Table $model |
||
40 | * @return string |
||
41 | */ |
||
42 | public function generateModelPaginate(Table $model) { |
||
45 | |||
46 | /** |
||
47 | * Generates the class name for a create action |
||
48 | * |
||
49 | * @param Table $model |
||
50 | * @return string |
||
51 | */ |
||
52 | public function generateModelCreate(Table $model) { |
||
55 | |||
56 | /** |
||
57 | * Generates the class name for a read action |
||
58 | * |
||
59 | * @param Table $model |
||
60 | * @return string |
||
61 | */ |
||
62 | public function generateModelRead(Table $model) { |
||
65 | |||
66 | /** |
||
67 | * Generates the class name for an update action |
||
68 | * |
||
69 | * @param Table $model |
||
70 | * @return string |
||
71 | */ |
||
72 | public function generateModelUpdate(Table $model) { |
||
75 | |||
76 | /** |
||
77 | * Generates the class name for a delete action |
||
78 | * |
||
79 | * @param Table $model |
||
80 | * @return string |
||
81 | */ |
||
82 | public function generateModelDelete(Table $model) { |
||
85 | |||
86 | // |
||
87 | // Relationship generators |
||
88 | // |
||
89 | |||
90 | /** |
||
91 | * Generates the class name for a relationship read action |
||
92 | * |
||
93 | * @param Relationship $relationship |
||
94 | * @return string |
||
95 | */ |
||
96 | public function generateRelationshipRead(Relationship $relationship) { |
||
101 | |||
102 | /** |
||
103 | * Generates the class name for a relationship update action |
||
104 | * |
||
105 | * @param Relationship $relationship |
||
106 | * @return string |
||
107 | */ |
||
108 | public function generateRelationshipUpdate(Relationship $relationship) { |
||
113 | |||
114 | /** |
||
115 | * Generates the class name for a relationship add action |
||
116 | * |
||
117 | * @param Relationship $relationship |
||
118 | * @return string |
||
119 | */ |
||
120 | public function generateRelationshipAdd(Relationship $relationship) { |
||
125 | |||
126 | /** |
||
127 | * Generates the class name for a relationship remove action |
||
128 | * |
||
129 | * @param Relationship $relationship |
||
130 | * @return string |
||
131 | */ |
||
132 | public function generateRelationshipRemove(Relationship $relationship) { |
||
137 | } |