ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
arIndexTableActions Class Reference

GUI-Class arIndexTableActions. More...

+ Collaboration diagram for arIndexTableActions:

Public Member Functions

 addAction (arIndexTableAction $action)
 
 getActions ()
 
 getActionsAsKeyTextArray ()
 
 getAction ($action_id)
 
 hasActions ()
 

Protected Attributes

 $actions = array()
 

Detailed Description

Member Function Documentation

◆ addAction()

arIndexTableActions::addAction ( arIndexTableAction  $action)
Parameters
arIndexTableAction

Definition at line 22 of file class.arIndexTableActions.php.

22 {
23 $this->actions[$action->getId()] = $action;
24 }

References arIndexTableAction\getId().

+ Here is the call graph for this function:

◆ getAction()

arIndexTableActions::getAction (   $action_id)
Parameters
$action_id
Returns
arIndexTableAction

Definition at line 56 of file class.arIndexTableActions.php.

56 {
57 if (array_key_exists($action_id, $this->actions)) {
58 return $this->actions[$action_id];
59 }
60
61 return false;
62 }

◆ getActions()

arIndexTableActions::getActions ( )
Returns
arIndexTableAction[]

Definition at line 30 of file class.arIndexTableActions.php.

References $actions.

Referenced by getActionsAsKeyTextArray().

+ Here is the caller graph for this function:

◆ getActionsAsKeyTextArray()

arIndexTableActions::getActionsAsKeyTextArray ( )
Returns
array

arIndexTableAction $action

Definition at line 38 of file class.arIndexTableActions.php.

38 {
39 $actions = array();
40 foreach ($this->getActions() as $action) {
44 $actions[$action->getId()] = $action->getTitle();
45 }
46
47 return $actions;
48 }

References $actions, and getActions().

+ Here is the call graph for this function:

◆ hasActions()

arIndexTableActions::hasActions ( )
Returns
bool

Definition at line 68 of file class.arIndexTableActions.php.

68 {
69 return !empty($this->actions);
70 }

Field Documentation

◆ $actions

arIndexTableActions::$actions = array()
protected

Definition at line 16 of file class.arIndexTableActions.php.

Referenced by getActions(), and getActionsAsKeyTextArray().


The documentation for this class was generated from the following file: