Class ilBuddySystemRelationStateFactory.
More...
◆ __construct()
ilBuddySystemRelationStateFactory::__construct |
( |
| ) |
|
|
protected |
◆ getInitialState()
ilBuddySystemRelationStateFactory::getInitialState |
( |
| ) |
|
◆ getInstance()
static ilBuddySystemRelationStateFactory::getInstance |
( |
| ) |
|
|
static |
◆ getRendererByOwnerAndRelation()
ilBuddySystemRelationStateFactory::getRendererByOwnerAndRelation |
( |
|
$owner_id, |
|
|
ilBuddySystemRelation |
$relation |
|
) |
| |
◆ getStatesAsOptionArray()
ilBuddySystemRelationStateFactory::getStatesAsOptionArray |
( |
|
$with_initial_state = false | ) |
|
- Parameters
-
- Returns
- array
Definition at line 114 of file class.ilBuddySystemRelationStateFactory.php.
References $options, and array.
116 if(null !== self::$state_option_array[$with_initial_state])
118 return self::$state_option_array[$with_initial_state];
123 foreach($this->getValidStates() as $state)
125 if($with_initial_state || !$state->isInitial())
127 $options[get_class($state)] = $this->lng->txt(
'buddy_bs_state_' . strtolower($state->getName()));
131 return (self::$state_option_array[$with_initial_state] =
$options);
if(!is_array($argv)) $options
Create styles array
The data for the language used.
◆ $instance
ilBuddySystemRelationStateFactory::$instance |
|
staticprotected |
◆ $lng
ilBuddySystemRelationStateFactory::$lng |
|
protected |
◆ $state_option_array
ilBuddySystemRelationStateFactory::$state_option_array |
|
staticprotected |
◆ $valid_states
ilBuddySystemRelationStateFactory::$valid_states |
|
staticprotected |
The documentation for this class was generated from the following file: