ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.arIndexTableActions.php
Go to the documentation of this file.
1<?php
2require_once('./Services/ActiveRecord/Views/Index/class.arIndexTableAction.php');
3
12{
13
17 protected $actions = array();
18
19
23 public function addAction(arIndexTableAction $action)
24 {
25 $this->actions[$action->getId()] = $action;
26 }
27
28
32 public function getActions()
33 {
34 return $this->actions;
35 }
36
37
41 public function getActionsAsKeyTextArray()
42 {
43 $actions = array();
44 foreach ($this->getActions() as $action) {
48 $actions[$action->getId()] = $action->getTitle();
49 }
50
51 return $actions;
52 }
53
54
60 public function getAction($action_id)
61 {
62 if (array_key_exists($action_id, $this->actions)) {
63 return $this->actions[$action_id];
64 }
65
66 return false;
67 }
68
69
73 public function hasActions()
74 {
75 return !empty($this->actions);
76 }
77}
An exception for terminatinating execution or to throw for unit testing.
GUI-Class arIndexTableAction.
GUI-Class arIndexTableActions.
addAction(arIndexTableAction $action)