1 | <?php |
||
8 | class Actions extends AbstractDisplayer |
||
9 | { |
||
10 | use TCustomActions; |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $appends = []; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $prepends = []; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $allowEdit = true; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $allowDelete = true; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $resource; |
||
35 | |||
36 | /** |
||
37 | * @var |
||
38 | */ |
||
39 | protected $key; |
||
40 | |||
41 | /** |
||
42 | * Append a action. |
||
43 | * |
||
44 | * @param $action |
||
45 | * |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function append($action) |
||
54 | |||
55 | /** |
||
56 | * Prepend a action. |
||
57 | * |
||
58 | * @param $action |
||
59 | * |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function prepend($action) |
||
68 | |||
69 | /** |
||
70 | * Disable delete. |
||
71 | * |
||
72 | * @return void. |
||
|
|||
73 | */ |
||
74 | public function disableDelete() |
||
78 | |||
79 | /** |
||
80 | * Disable edit. |
||
81 | * |
||
82 | * @return void. |
||
83 | */ |
||
84 | public function disableEdit() |
||
88 | |||
89 | /** |
||
90 | * Set resource of current resource. |
||
91 | * |
||
92 | * @param $resource |
||
93 | * |
||
94 | * @return void |
||
95 | */ |
||
96 | public function setResource($resource) |
||
100 | |||
101 | /** |
||
102 | * Get resource of current resource. |
||
103 | * |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getResource() |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function display($callback = null) |
||
133 | |||
134 | public function setKey($key) |
||
140 | |||
141 | public function getKey() |
||
149 | |||
150 | /** |
||
151 | * Built edit action. |
||
152 | * |
||
153 | * @return string |
||
154 | */ |
||
155 | protected function ___editAction() |
||
163 | |||
164 | /** |
||
165 | * Built delete action. |
||
166 | * |
||
167 | * @return string |
||
168 | */ |
||
169 | protected function ___deleteAction() |
||
223 | |||
224 | protected function editAction() |
||
234 | |||
235 | protected function deleteAction() |
||
245 | |||
246 | } |
||
247 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.