1 | <?php |
||
12 | class ListActions implements Action { |
||
13 | |||
14 | /** @var ActionRegistry */ |
||
15 | private $actions; |
||
16 | |||
17 | /** @var ActionGroups */ |
||
18 | private $groups; |
||
19 | |||
20 | /** @var AccessControl */ |
||
21 | private $access; |
||
22 | |||
23 | /** @var CommentParser */ |
||
24 | private $parser; |
||
25 | |||
26 | /** |
||
27 | * @param ActionRegistry $actions |
||
28 | * @param ActionGroups $groups |
||
29 | * @param AccessControl $access |
||
30 | * @param CommentParser $parser |
||
31 | */ |
||
32 | public function __construct(ActionRegistry $actions, ActionGroups $groups, AccessControl $access, CommentParser $parser) { |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function caption() { |
||
45 | |||
46 | /** |
||
47 | * @return string|null |
||
48 | */ |
||
49 | public function description() { |
||
52 | |||
53 | /** |
||
54 | * @return boolean True if the action modifies the state of the application |
||
55 | */ |
||
56 | public function isModifying() { |
||
59 | |||
60 | /** |
||
61 | * @return Parameter[] |
||
62 | */ |
||
63 | public function parameters() { |
||
66 | |||
67 | /** |
||
68 | * Fills out partially available parameters |
||
69 | * |
||
70 | * @param array $parameters Available values indexed by name |
||
71 | * @return array Filled values indexed by name |
||
72 | */ |
||
73 | public function fill(array $parameters) { |
||
76 | |||
77 | /** |
||
78 | * @param mixed[] $parameters Values indexed by name |
||
79 | * @return mixed the result of the execution |
||
80 | * @throws \Exception if Action cannot be executed |
||
81 | */ |
||
82 | public function execute(array $parameters) { |
||
85 | |||
86 | private function assembleActions() { |
||
99 | } |