◆ __construct()
| ilEmployeeTalkMyStaffBaseGUI::__construct |
( |
| ) |
|
◆ applyFilter()
| ilEmployeeTalkMyStaffBaseGUI::applyFilter |
( |
| ) |
|
|
private |
◆ checkAccessOrFail()
| ilEmployeeTalkMyStaffBaseGUI::checkAccessOrFail |
( |
| ) |
|
|
private |
◆ executeCommand()
| ilEmployeeTalkMyStaffBaseGUI::executeCommand |
( |
| ) |
|
|
final |
Implements ILIAS\EmployeeTalk\UI\ControlFlowCommandHandler.
Definition at line 57 of file class.ilEmployeeTalkMyStaffBaseGUI.php.
References ILIAS\Repository\access(), applyFilter(), ILIAS\Repository\ctrl(), ILIAS\Forum\Notification\DEFAULT, getClassPath(), hasCurrentUserAccess(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), resetFilter(), ILIAS\Repository\tabs(), and view().
59 $next_class = $this->
ctrl->getNextClass();
63 switch ($next_class) {
64 case strtolower(ilObjEmployeeTalkSeriesGUI::class):
67 $this->
ctrl->forwardCommand($gui);
69 case strtolower(ilObjEmployeeTalkGUI::class):
71 if ($this->
access->hasCurrentUserAccessToTalks()) {
72 $this->
tabs->setBackTarget(
74 $this->
ctrl->getLinkTarget($this, ControlFlowCommand::INDEX)
77 $gui->setLinkToParentGUI($link_to_this);
78 $this->
ctrl->forwardCommand($gui);
80 case strtolower(ilFormPropertyDispatchGUI::class):
83 $table->executeCommand();
87 case ControlFlowCommand::APPLY_FILTER:
90 case ControlFlowCommand::RESET_FILTER:
93 case ControlFlowCommand::INDEX:
Class ilObjEmployeeTalkGUI.
setLinkToParentGUI(string $link)
Class ilObjEmployeeTalkGUI.
◆ getClassPath()
| ilEmployeeTalkMyStaffBaseGUI::getClassPath |
( |
| ) |
|
|
abstract |
◆ hasCurrentUserAccess()
| ilEmployeeTalkMyStaffBaseGUI::hasCurrentUserAccess |
( |
| ) |
|
|
abstractprotected |
◆ loadActionBar()
| ilEmployeeTalkMyStaffBaseGUI::loadActionBar |
( |
| ) |
|
|
private |
Definition at line 147 of file class.ilEmployeeTalkMyStaffBaseGUI.php.
References $objId, $refId, $url, ilObject\_getAllReferences(), ilObject\_getObjectsByType(), ilObject\_hasUntrashedReference(), ILIAS\Repository\ctrl(), ilObjTalkTemplateAdministration\getRootRefId(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), loadTalkData(), ilObjEmployeeTalkSeries\TYPE, and ILIAS\Repository\ui().
Referenced by view().
149 if (!$this->talk_access->canCreate()) {
153 $templates =
new CallbackFilterIterator(
155 function (array $item) {
158 $item[
'offline'] ===
"0" ||
159 $item[
'offline'] === 0 ||
160 $item[
'offline'] === null
166 $talk_class = strtolower(ilObjEmployeeTalkSeriesGUI::class);
167 foreach ($templates as $item) {
168 $objId = intval($item[
'obj_id']);
173 $this->
ctrl->setParameterByClass($talk_class,
'template', array_pop(
$refId));
175 $url = $this->
ctrl->getLinkTargetByClass($talk_class, ControlFlowCommand::CREATE);
176 $this->
ctrl->clearParametersByClass($talk_class);
178 $buttons[] = $this->
ui->factory()->link()->standard(
179 (
string) $item[
"title"],
184 $dropdown = $this->
ui->factory()->dropdown()->standard($buttons)->withLabel(
185 $this->
language->txt(
'etal_add_new_item')
187 $this->
ui->mainTemplate()->setVariable(
188 'SELECT_OBJTYPE_REPOS',
189 $this->
ui->renderer()->render($dropdown)
static _getAllReferences(int $id)
get all reference ids for object ID
static _hasUntrashedReference(int $obj_id)
checks whether an object has at least one reference that is not in trash
static _getObjectsByType(string $obj_type="", int $owner=null)
◆ loadHeader()
| ilEmployeeTalkMyStaffBaseGUI::loadHeader |
( |
| ) |
|
|
abstractprotected |
◆ loadTable()
| ilEmployeeTalkMyStaffBaseGUI::loadTable |
( |
| ) |
|
|
private |
◆ loadTabs()
| ilEmployeeTalkMyStaffBaseGUI::loadTabs |
( |
| ) |
|
|
abstractprotected |
◆ loadTalkData()
| ilEmployeeTalkMyStaffBaseGUI::loadTalkData |
( |
| ) |
|
|
abstractprotected |
◆ resetFilter()
| ilEmployeeTalkMyStaffBaseGUI::resetFilter |
( |
| ) |
|
|
private |
◆ view()
| ilEmployeeTalkMyStaffBaseGUI::view |
( |
| ) |
|
|
private |
◆ $access
◆ $ctrl
| ilCtrl ilEmployeeTalkMyStaffBaseGUI::$ctrl |
|
protected |
◆ $current_user
| ilObjUser ilEmployeeTalkMyStaffBaseGUI::$current_user |
|
protected |
◆ $language
| ilLanguage ilEmployeeTalkMyStaffBaseGUI::$language |
|
protected |
◆ $repository
◆ $tabs
| ilTabsGUI ilEmployeeTalkMyStaffBaseGUI::$tabs |
|
protected |
◆ $talk_access
◆ $ui
The documentation for this class was generated from the following file: