Class ilBuddySystemRelationStateFactory.
More...
◆ __construct()
ilBuddySystemRelationStateFactory::__construct |
( |
| ) |
|
|
protected |
◆ getInitialState()
ilBuddySystemRelationStateFactory::getInitialState |
( |
| ) |
|
◆ getInstance()
static ilBuddySystemRelationStateFactory::getInstance |
( |
| ) |
|
|
static |
◆ getRendererByOwnerAndRelation()
ilBuddySystemRelationStateFactory::getRendererByOwnerAndRelation |
( |
|
$owner_id, |
|
|
ilBuddySystemRelation |
$relation |
|
) |
| |
- Parameters
-
- Returns
- ilBuddySystemRelationStateButtonRenderer
- Exceptions
-
Definition at line 130 of file class.ilBuddySystemRelationStateFactory.php.
131 {
132 $state_class = get_class($relation->
getState());
133 $renderer_class = $state_class . 'ButtonRenderer';
134 $renderer_path = "Services/Contact/BuddySystem/classes/states/renderer/class.{$renderer_class}.php";
135
136 if (!file_exists($renderer_path)) {
138 }
139
140 require_once $renderer_path;
141 if (!class_exists($renderer_class)) {
142 throw new ilBuddySystemException(sprintf(
"Could not find a renderer class for state: %s in file: %s", $state_class, $renderer_path));
143 }
144
145 return new $renderer_class($owner_id, $relation);
146 }
References ilBuddySystemRelation\getState().
◆ getStatesAsOptionArray()
ilBuddySystemRelationStateFactory::getStatesAsOptionArray |
( |
|
$with_initial_state = false | ) |
|
◆ $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: