1 | <?php |
||
7 | class Actions extends AbstractDisplayer |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $appends = []; |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $prepends = []; |
||
18 | |||
19 | /** |
||
20 | * Default actions. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $actions = ['view', 'edit', 'delete']; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $resource; |
||
30 | |||
31 | /** |
||
32 | * Append a action. |
||
33 | * |
||
34 | * @param $action |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function append($action) |
||
44 | |||
45 | /** |
||
46 | * Prepend a action. |
||
47 | * |
||
48 | * @param $action |
||
49 | * |
||
50 | * @return $this |
||
51 | */ |
||
52 | public function prepend($action) |
||
58 | |||
59 | /** |
||
60 | * Disable view action. |
||
61 | * |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function disableView() |
||
70 | |||
71 | /** |
||
72 | * Disable delete. |
||
73 | * |
||
74 | * @return $this. |
||
|
|||
75 | */ |
||
76 | public function disableDelete() |
||
82 | |||
83 | /** |
||
84 | * Disable edit. |
||
85 | * |
||
86 | * @return $this. |
||
87 | */ |
||
88 | public function disableEdit() |
||
94 | |||
95 | /** |
||
96 | * Set resource of current resource. |
||
97 | * |
||
98 | * @param $resource |
||
99 | * |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function setResource($resource) |
||
108 | |||
109 | /** |
||
110 | * Get resource of current resource. |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getResource() |
||
118 | |||
119 | /** |
||
120 | * Get url of current resource. |
||
121 | * @return string |
||
122 | */ |
||
123 | public function getResourceURL(){ |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | */ |
||
130 | public function display($callback = null) |
||
147 | |||
148 | /** |
||
149 | * Render view action. |
||
150 | * |
||
151 | * @return string |
||
152 | */ |
||
153 | protected function renderView() |
||
161 | |||
162 | /** |
||
163 | * Render edit action. |
||
164 | * |
||
165 | * @return string |
||
166 | */ |
||
167 | protected function renderEdit() |
||
177 | |||
178 | /** |
||
179 | * Render delete action. |
||
180 | * |
||
181 | * @return string |
||
182 | */ |
||
183 | protected function renderDelete() |
||
238 | } |
||
239 |
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.