ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.arIndexTableActions.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/ActiveRecord/Views/Index/class.arIndexTableAction.php');
3 
12 {
13 
17  protected $actions = array();
18 
19 
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 }
GUI-Class arIndexTableActions.
$action
addAction(arIndexTableAction $action)
GUI-Class arIndexTableAction.