ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 23 of file class.arIndexTableActions.php.

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

References $action.

◆ getAction()

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

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

61 {
62 if (array_key_exists($action_id, $this->actions)) {
63 return $this->actions[$action_id];
64 }
65
66 return false;
67 }

◆ getActions()

arIndexTableActions::getActions ( )
Returns
arIndexTableAction[]

Definition at line 32 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 41 of file class.arIndexTableActions.php.

42 {
43 $actions = array();
44 foreach ($this->getActions() as $action) {
48 $actions[$action->getId()] = $action->getTitle();
49 }
50
51 return $actions;
52 }

References $action, $actions, and getActions().

+ Here is the call graph for this function:

◆ hasActions()

arIndexTableActions::hasActions ( )
Returns
bool

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

74 {
75 return !empty($this->actions);
76 }

Field Documentation

◆ $actions

arIndexTableActions::$actions = array()
protected

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

Referenced by getActions(), and getActionsAsKeyTextArray().


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