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 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function display($callback = null) |
||
139 | |||
140 | /** |
||
141 | * Render view action. |
||
142 | * |
||
143 | * @return string |
||
144 | */ |
||
145 | protected function renderView() |
||
153 | |||
154 | /** |
||
155 | * Render edit action. |
||
156 | * |
||
157 | * @return string |
||
158 | */ |
||
159 | protected function renderEdit() |
||
167 | |||
168 | /** |
||
169 | * Render delete action. |
||
170 | * |
||
171 | * @return string |
||
172 | */ |
||
173 | protected function renderDelete() |
||
232 | } |
||
233 |
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.