ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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.

References arIndexTableAction\getId().

22  {
23  $this->actions[$action->getId()] = $action;
24  }
+ 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.

References $actions, array, and getActions().

38  {
39  $actions = array();
40  foreach ($this->getActions() as $action) {
44  $actions[$action->getId()] = $action->getTitle();
45  }
46 
47  return $actions;
48  }
Create styles array
The data for the language used.
+ 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: