ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Class ilCommonActionDispatcherGUI. More...
Public Member Functions | |
__construct (int $node_type, $access_handler, string $obj_type, int $node_id, int $obj_id, int $news_id=0) | |
getAjaxHash () | |
Build ajax hash for current (object/node) properties. More... | |
executeCommand () | |
setSubObject (?string $sub_obj_type, ?int $sub_obj_id) | |
Set sub object attributes. More... | |
enableCommentsSettings (bool $value) | |
Toggle comments settings. More... | |
setRatingCallback (object $gui, string $cmd) | |
Add callback for rating gui. More... | |
initHeaderAction () | |
Set header action menu. More... | |
Static Public Member Functions | |
static | buildAjaxHash (int $node_type, ?int $node_id, string $obj_type, int $obj_id, ?string $sub_type=null, ?int $sub_id=null, int $news_id=0) |
Build ajax hash. More... | |
static | removeSubObjFromAjaxHash (string $hash) |
static | getInstanceFromAjaxCall () |
(Re-)Build instance from ajax call More... | |
Data Fields | |
const | TYPE_REPOSITORY = 1 |
const | TYPE_WORKSPACE = 2 |
Protected Attributes | |
ilCtrl | $ctrl |
ilSetting | $settings |
ILIAS HTTP Wrapper RequestWrapper | $request_wrapper |
ILIAS Refinery Factory | $refinery |
int | $node_type = 0 |
$access_handler | |
string | $obj_type = "" |
int | $node_id = 0 |
int | $obj_id = 0 |
int | $news_id = 0 |
string | $sub_type = null |
int | $sub_id = null |
bool | $enable_comments_settings = false |
array | $rating_callback = [] |
Private Attributes | |
ilObjectRequestRetriever | $retriever |
Class ilCommonActionDispatcherGUI.
Definition at line 28 of file class.ilCommonActionDispatcherGUI.php.
ilCommonActionDispatcherGUI::__construct | ( | int | $node_type, |
$access_handler, | |||
string | $obj_type, | ||
int | $node_id, | ||
int | $obj_id, | ||
int | $news_id = 0 |
||
) |
Definition at line 54 of file class.ilCommonActionDispatcherGUI.php.
References $access_handler, $DIC, $news_id, $node_id, $node_type, $obj_id, $obj_type, $refinery, ILIAS\Repository\ctrl(), ILIAS\Repository\refinery(), and ILIAS\Repository\settings().
|
static |
Build ajax hash.
Definition at line 97 of file class.ilCommonActionDispatcherGUI.php.
References $news_id.
Referenced by ilPollCommentsHandler\buildAjaxHashForPoll(), ilDclRecordListTableGUI\getCommentJsLinkCode(), ilQuestionBrowserTableGUI\getCommentsAjaxLink(), ilNoteGUI\getGlyph(), ilNoteGUI\getNumber(), ilDclBaseRecordModel\getStandardFieldHTML(), ilNoteGUI\getTriggerShyButton(), ilNoteGUI\getWidget(), ilObjectListGUI\initItem(), ILIAS\Containter\Content\ItemRenderer\renderCard(), and ilContainerContentGUI\renderCard().
ilCommonActionDispatcherGUI::enableCommentsSettings | ( | bool | $value | ) |
Toggle comments settings.
Definition at line 276 of file class.ilCommonActionDispatcherGUI.php.
ilCommonActionDispatcherGUI::executeCommand | ( | ) |
Definition at line 176 of file class.ilCommonActionDispatcherGUI.php.
References $obj_type, $sub_type, ILIAS\Repository\ctrl(), exit, and ILIAS\Repository\settings().
ilCommonActionDispatcherGUI::getAjaxHash | ( | ) |
Build ajax hash for current (object/node) properties.
Definition at line 81 of file class.ilCommonActionDispatcherGUI.php.
Referenced by initHeaderAction().
|
static |
(Re-)Build instance from ajax call
Definition at line 125 of file class.ilCommonActionDispatcherGUI.php.
References $access_handler, $DIC, $news_id, $node_id, $node_type, $obj_id, $obj_type, $parts, ILIAS\Repository\int(), and null.
Referenced by ilObjExerciseGUI\__construct(), ilObjCmiXapiGUI\_goto(), ilObjLTIConsumerGUI\_goto(), ilObjContentObjectGUI\checkCtrlPath(), ilRemoteObjectBaseGUI\executeCommand(), ilObjSAHSLearningModuleGUI\executeCommand(), ilObjPortfolioTemplateGUI\executeCommand(), ilObjectPluginGUI\executeCommand(), ilObjItemGroupGUI\executeCommand(), ilObjPortfolioGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilPDNewsGUI\executeCommand(), ilObjLinkResourceGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilObjIndividualAssessmentGUI\executeCommand(), ilObjOrgUnitGUI\executeCommand(), ilObjRootFolderGUI\executeCommand(), ilObjMediaCastGUI\executeCommand(), ilObjFolderGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilInfoScreenGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjStudyProgrammeGUI\executeCommand(), ilObjChatroomGUI\executeCommand(), ilObjDataCollectionGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjBibliographicGUI\executeCommand(), ilObjMediaPoolGUI\executeCommand(), ilObjGlossaryGUI\executeCommand(), ilObjSessionGUI\executeCommand(), ilObjWorkspaceFolderGUI\executeCommand(), ilObjLearningSequenceGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjPollGUI\executeCommand(), ilLMPresentationGUI\executeCommand(), ilObjBlogGUI\executeCommand(), ilDashboardBlockGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjFileGUI\getParentId(), ilObjForumGUI\getSafePostCommands(), and ilObjContentPageGUI\setTabs().
ilCommonActionDispatcherGUI::initHeaderAction | ( | ) |
Set header action menu.
Definition at line 292 of file class.ilCommonActionDispatcherGUI.php.
References ilObjectListGUIFactory\_getListGUIByType(), ilObjectListGUI\CONTEXT_REPOSITORY, ilObjectListGUI\CONTEXT_WORKSPACE, getAjaxHash(), and null.
|
static |
Definition at line 112 of file class.ilCommonActionDispatcherGUI.php.
Referenced by ilObjectListGUI\getHeaderAction().
ilCommonActionDispatcherGUI::setRatingCallback | ( | object | $gui, |
string | $cmd | ||
) |
Add callback for rating gui.
Definition at line 284 of file class.ilCommonActionDispatcherGUI.php.
ilCommonActionDispatcherGUI::setSubObject | ( | ?string | $sub_obj_type, |
?int | $sub_obj_id | ||
) |
Set sub object attributes.
Definition at line 267 of file class.ilCommonActionDispatcherGUI.php.
Referenced by assQuestionGUI\getHeaderAction(), and ilLMPresentationGUI\getHeaderAction().
|
protected |
Definition at line 42 of file class.ilCommonActionDispatcherGUI.php.
Referenced by __construct(), and getInstanceFromAjaxCall().
|
protected |
Definition at line 33 of file class.ilCommonActionDispatcherGUI.php.
|
protected |
Definition at line 50 of file class.ilCommonActionDispatcherGUI.php.
|
protected |
Definition at line 46 of file class.ilCommonActionDispatcherGUI.php.
Referenced by __construct(), buildAjaxHash(), and getInstanceFromAjaxCall().
|
protected |
Definition at line 44 of file class.ilCommonActionDispatcherGUI.php.
Referenced by __construct(), and getInstanceFromAjaxCall().
|
protected |
Definition at line 38 of file class.ilCommonActionDispatcherGUI.php.
Referenced by __construct(), and getInstanceFromAjaxCall().
|
protected |
Definition at line 45 of file class.ilCommonActionDispatcherGUI.php.
Referenced by __construct(), and getInstanceFromAjaxCall().
|
protected |
Definition at line 43 of file class.ilCommonActionDispatcherGUI.php.
Referenced by __construct(), executeCommand(), and getInstanceFromAjaxCall().
|
protected |
Definition at line 51 of file class.ilCommonActionDispatcherGUI.php.
|
protected |
Definition at line 36 of file class.ilCommonActionDispatcherGUI.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file class.ilCommonActionDispatcherGUI.php.
|
private |
Definition at line 52 of file class.ilCommonActionDispatcherGUI.php.
|
protected |
Definition at line 34 of file class.ilCommonActionDispatcherGUI.php.
|
protected |
Definition at line 49 of file class.ilCommonActionDispatcherGUI.php.
|
protected |
Definition at line 48 of file class.ilCommonActionDispatcherGUI.php.
Referenced by executeCommand().
const ilCommonActionDispatcherGUI::TYPE_REPOSITORY = 1 |
Definition at line 30 of file class.ilCommonActionDispatcherGUI.php.
Referenced by ilWikiPageGUI\addHeaderAction(), ilObjDataCollectionGUI\addHeaderAction(), ilPollCommentsHandler\buildAjaxHashForPoll(), ilObjChatroomGUI\createActionDispatcherGUI(), ilObjectGUI\createActionDispatcherGUI(), ilNoteGUI\getGlyph(), assQuestionGUI\getHeaderAction(), ilLMPresentationGUI\getHeaderAction(), ilNoteGUI\getNumber(), ilNoteGUI\getTriggerShyButton(), ilNoteGUI\getWidget(), ilObjectListGUI\initItem(), ILIAS\Containter\Content\ItemRenderer\renderCard(), and ilContainerContentGUI\renderCard().
const ilCommonActionDispatcherGUI::TYPE_WORKSPACE = 2 |
Definition at line 31 of file class.ilCommonActionDispatcherGUI.php.
Referenced by ilObject2GUI\initHeaderAction(), and ilObjectListGUI\initItem().