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.
115 {
116 if(null !== self::$state_option_array[$with_initial_state])
117 {
118 return self::$state_option_array[$with_initial_state];
119 }
120
122
123 foreach($this->getValidStates() as $state)
124 {
125 if($with_initial_state || !$state->isInitial())
126 {
127 $options[get_class($state)] = $this->lng->txt(
'buddy_bs_state_' . strtolower($state->getName()));
128 }
129 }
130
131 return (self::$state_option_array[$with_initial_state] =
$options);
132 }
if(!is_array($argv)) $options
References $options.
◆ $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: