ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="") | |
setSubCmd (string $a_val) | |
Set table sub command. More... | |
getSubCmd () | |
setHeader (string $a_title="") | |
getHeader () | |
setEnabledMapAreas (bool $a_enabledmapareas) | |
Set Enable map areas. More... | |
getEnabledMapAreas () | |
insert ( $a_post_cmd="edpost", $a_submit_cmd="create_mob", $a_input_error=false) | |
changeObjectReference () | |
Change object reference. More... | |
insertFromPool (bool $a_change_obj_ref=false) | |
Insert media object from pool. More... | |
selectPool (bool $a_change_obj_ref=false) | |
Select concrete pool. More... | |
poolSelection (bool $a_change_obj_ref=false) | |
Pool Selection. More... | |
createNewObjectReference () | |
Create new media object and replace currrent media item with it. More... | |
selectObjectReference () | |
Create new media object and replace currrent media item with it. More... | |
create (bool $a_create_alias=true, bool $a_change_obj_ref=false) | |
create new media object in dom and update page in db More... | |
edit () | |
edit properties form More... | |
editAlias () | |
initAliasForm () | |
Init alias form. More... | |
getAliasValues () | |
Put alias values into form. More... | |
saveAliasProperties () | |
save table properties in db and return to page edit screen More... | |
copyToClipboard () | |
copy media object to clipboard More... | |
centerAlign () | |
align media object to center More... | |
leftAlign () | |
align media object to left More... | |
rightAlign () | |
align media object to right More... | |
leftFloatAlign () | |
align media object to left, floating text More... | |
rightFloatAlign () | |
align media object to right, floating text More... | |
checkStyleSelection () | |
Checks whether style selection shoudl be available or not. More... | |
editStyle () | |
Edit Style. More... | |
getStyleInput () | |
saveStyle () | |
Save Style. More... | |
getTabs (bool $a_create=false, bool $a_change_obj_ref=false) | |
![]() | |
__construct (ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id="", string $a_pc_id="0") | |
setContentObject (ilPageContent $a_val) | |
getContentObject () | |
setPage (ilPageObject $a_val) | |
getPage () | |
setPageConfig (ilPageConfig $a_val) | |
getPageConfig () | |
setStyleId (int $a_styleid) | |
getStyleId () | |
getStyle () | |
getCharacteristicsOfCurrentStyle (array $a_type) | |
Get characteristics of current style and call setCharacteristics, if style is given. More... | |
setCharacteristics (array $a_chars) | |
getCharacteristics () | |
getHierId () | |
setHierId (string $a_hier_id) | |
set hierarchical id in dom object More... | |
delete () | |
moveAfter () | |
move content element after another element More... | |
moveBefore () | |
move content element before another element More... | |
splitPage () | |
split page to new page at specified position More... | |
splitPageNext () | |
split page to next page at specified position More... | |
displayValidationError () | |
cancelCreate () | |
cancel creating page content More... | |
cancelUpdate () | |
cancel update More... | |
cancel () | |
Cancel. More... | |
deactivate () | |
gui function set enabled if is not enabled and vice versa More... | |
cut () | |
Cut single element. More... | |
copy () | |
Copy single element. More... | |
getTemplateOptions (string $a_type="") | |
Get table templates. More... | |
Static Public Member Functions | |
static | _getCharacteristics (int $a_style_id) |
Get characteristics. More... | |
![]() | |
static | _getCommonBBButtons () |
Data Fields | |
string | $header = "" |
![]() | |
ilPageContent | $content_obj |
ilGlobalTemplateInterface | $tpl |
ilLanguage | $lng |
ilCtrl | $ctrl |
ilPageObject | $pg_obj |
string | $hier_id = "" |
php4DOMDocument | $dom |
$updated | |
string | $target_script = "" |
string | $return_location = "" |
ilPageConfig | $page_config = null |
Protected Member Functions | |
checkFixSize () | |
![]() | |
redirectToParent (string $hier_id="") | |
getParentReturn (string $hier_id="") | |
updateAndReturn () | |
setCurrentTextLang (string $lang_key) | |
getCurrentTextLang () | |
Protected Attributes | |
ilPropertyFormGUI | $form |
ilPropertyFormGUI | $form_gui |
string | $page_back_title = "" |
bool | $enabledmapareas = false |
ilTabsGUI | $tabs |
ilAccessHandler | $access |
ilToolbarGUI | $toolbar |
ilObjUser | $user |
ILIAS DI UIServices | $ui |
string | $pool_view = "" |
string | $sub_cmd = "" |
ILIAS MediaObjects MediaType MediaTypeManager | $media_type |
![]() | |
EditSessionRepository | $edit_repo |
string | $pc_id = "" |
array | $chars |
ilObjStyleSheet | $style = null |
ilLogger | $log |
int | $styleid = 0 |
EditGUIRequest | $request |
string | $sub_command = "" |
int | $requested_ref_id = 0 |
Style Content CharacteristicManager | $char_manager |
Additional Inherited Members | |
![]() | |
static string | $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;" |
![]() | |
static array | $common_bb_buttons |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Editing User Interface for MediaObjects within LMs (see ILIAS DTD)
Definition at line 24 of file class.ilPCMediaObjectGUI.php.
ilPCMediaObjectGUI::__construct | ( | ilPageObject | $a_pg_obj, |
?ilPageContent | $a_content_obj, | ||
string | $a_hier_id, | ||
string | $a_pc_id = "" |
||
) |
Definition at line 40 of file class.ilPCMediaObjectGUI.php.
References $DIC, ilPageContentGUI\$pc_id, ilPageContentGUI\$request, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilPageObject\getHierIdsForPCIds(), ILIAS\Repository\lng(), ilPageContentGUI\setCharacteristics(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
|
static |
Get characteristics.
Definition at line 1449 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$chars, ilPageContentGUI\$style, ilObject\_lookupType(), and ilObjStyleSheet\getCharacteristics().
Referenced by ILIAS\COPage\Editor\Components\MediaObject\MediaObjectStyleSelector\getStyleSelector().
ilPCMediaObjectGUI::centerAlign | ( | ) |
align media object to center
Definition at line 1163 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCMediaObjectGUI::changeObjectReference | ( | ) |
Change object reference.
Definition at line 258 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, ilPageContentGUI\$sub_command, $tabs, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\clearCommandButtons(), ilPageContentGUI\displayValidationError(), ilPropertyFormGUI\getHTML(), getTabs(), insertFromPool(), poolSelection(), selectPool(), ilFormGUI\setFormAction(), and ilLanguage\txt().
|
protected |
Definition at line 306 of file class.ilPCMediaObjectGUI.php.
References ILIAS\Repository\lng().
Referenced by getEnabledMapAreas().
ilPCMediaObjectGUI::checkStyleSelection | ( | ) |
Checks whether style selection shoudl be available or not.
Definition at line 1213 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$chars, and ilPageContentGUI\getCharacteristics().
Referenced by getTabs().
ilPCMediaObjectGUI::copyToClipboard | ( | ) |
copy media object to clipboard
Definition at line 1151 of file class.ilPCMediaObjectGUI.php.
References $ilUser, $user, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
ilPCMediaObjectGUI::create | ( | bool | $a_create_alias = true , |
bool | $a_change_obj_ref = false |
||
) |
create new media object in dom and update page in db
Definition at line 511 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$content_obj, ilPageContentGUI\$ctrl, $i, ilPageContentGUI\$lng, ilPageContentGUI\$pc_id, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilPageContentGUI\getPage(), insert(), ilMediaPoolItem\lookupForeignId(), ilPageContentGUI\redirectToParent(), ilPageContentGUI\setHierId(), and ilLanguage\txt().
Referenced by createNewObjectReference().
ilPCMediaObjectGUI::createNewObjectReference | ( | ) |
Create new media object and replace currrent media item with it.
(keep all instance parameters)
Definition at line 482 of file class.ilPCMediaObjectGUI.php.
References create().
ilPCMediaObjectGUI::edit | ( | ) |
edit properties form
Definition at line 589 of file class.ilPCMediaObjectGUI.php.
References ILIAS\Repository\ctrl().
ilPCMediaObjectGUI::editAlias | ( | ) |
Definition at line 597 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$tpl, getAliasValues(), initAliasForm(), and ilGlobalTemplateInterface\setContent().
Referenced by saveAliasProperties().
ilPCMediaObjectGUI::editStyle | ( | ) |
Edit Style.
Definition at line 1228 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$chars, ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilPageContentGUI\displayValidationError(), ilPageContentGUI\getCharacteristics(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), ilPropertyFormGUI\getHTML(), ILIAS\Repository\lng(), ilPageContentGUI\setCharacteristics(), ilGlobalTemplateInterface\setContent(), ilFormGUI\setFormAction(), ilPropertyFormGUI\setTitle(), and ilLanguage\txt().
Referenced by saveStyle().
ilPCMediaObjectGUI::getAliasValues | ( | ) |
Put alias values into form.
Definition at line 868 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$lng, and ilLanguage\txt().
Referenced by editAlias().
ilPCMediaObjectGUI::getEnabledMapAreas | ( | ) |
Definition at line 124 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$content_obj, $enabledmapareas, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, checkFixSize(), ILIAS\Repository\ctrl(), ilPageContentGUI\getCharacteristicsOfCurrentStyle(), ilUtil\getImagePath(), getTabs(), ILIAS\Repository\lng(), ilObjMediaObjectGUI\setBackTitle(), ilGlobalTemplateInterface\setContent(), ilGlobalTemplateInterface\setTitle(), ilGlobalTemplateInterface\setTitleIcon(), and ilLanguage\txt().
Referenced by getTabs().
ilPCMediaObjectGUI::getHeader | ( | ) |
ilPCMediaObjectGUI::getStyleInput | ( | ) |
Definition at line 1306 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$chars, ilPageContentGUI\getCharacteristics(), and ILIAS\Repository\lng().
ilPCMediaObjectGUI::getSubCmd | ( | ) |
Definition at line 100 of file class.ilPCMediaObjectGUI.php.
References $sub_cmd.
Referenced by insertFromPool().
ilPCMediaObjectGUI::getTabs | ( | bool | $a_create = false , |
bool | $a_change_obj_ref = false |
||
) |
Definition at line 1361 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$ctrl, $DIC, $format, ilPageContentGUI\$lng, $tabs, ilTabsGUI\addTarget(), checkStyleSelection(), getEnabledMapAreas(), and ilLanguage\txt().
Referenced by changeObjectReference(), getEnabledMapAreas(), insert(), insertFromPool(), and poolSelection().
ilPCMediaObjectGUI::initAliasForm | ( | ) |
Init alias form.
Definition at line 609 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$ctrl, $format, $lm_set, ilPageContentGUI\$lng, ilSubEnabledFormPropertyGUI\addSubItem(), ilRadioOption\addSubItem(), ILIAS\Repository\lng(), ilWidthHeightInputGUI\setSupportConstraintsProps(), and ilLanguage\txt().
Referenced by editAlias(), and saveAliasProperties().
ilPCMediaObjectGUI::insert | ( | $a_post_cmd = "edpost" , |
|
$a_submit_cmd = "create_mob" , |
|||
$a_input_error = false |
|||
) |
Definition at line 197 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$ctrl, $form, ilPageContentGUI\$lng, ilPageContentGUI\$sub_command, $tabs, ilPageContentGUI\$tpl, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\clearCommandButtons(), ilPageContentGUI\displayValidationError(), ilPropertyFormGUI\getHTML(), getTabs(), insertFromPool(), poolSelection(), selectPool(), ilGlobalTemplateInterface\setContent(), ilFormGUI\setFormAction(), and ilLanguage\txt().
Referenced by create().
ilPCMediaObjectGUI::insertFromPool | ( | bool | $a_change_obj_ref = false | ) |
Insert media object from pool.
Definition at line 328 of file class.ilPCMediaObjectGUI.php.
References $access, ilPageContentGUI\$ctrl, Vendor\Package\$f, ilPageContentGUI\$lng, $tabs, ilPageContentGUI\$tpl, $ui, ilObject\_lookupObjId(), ilObject\_lookupType(), getSubCmd(), getTabs(), ilMediaPoolTableGUI\IL_MEP_SELECT, ilMediaPoolTableGUI\IL_MEP_SELECT_SINGLE, ilLanguage\loadLanguageModule(), poolSelection(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
Referenced by changeObjectReference(), and insert().
ilPCMediaObjectGUI::leftAlign | ( | ) |
align media object to left
Definition at line 1173 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCMediaObjectGUI::leftFloatAlign | ( | ) |
align media object to left, floating text
Definition at line 1193 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCMediaObjectGUI::poolSelection | ( | bool | $a_change_obj_ref = false | ) |
Pool Selection.
Definition at line 451 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$ctrl, $tabs, ilPageContentGUI\$tpl, getTabs(), and ilGlobalTemplateInterface\setContent().
Referenced by changeObjectReference(), insert(), and insertFromPool().
ilPCMediaObjectGUI::rightAlign | ( | ) |
align media object to right
Definition at line 1183 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCMediaObjectGUI::rightFloatAlign | ( | ) |
align media object to right, floating text
Definition at line 1203 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\updateAndReturn().
ilPCMediaObjectGUI::saveAliasProperties | ( | ) |
save table properties in db and return to page edit screen
Definition at line 1032 of file class.ilPCMediaObjectGUI.php.
References $form_gui, ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), editAlias(), ilUtil\extractParameterString(), ilPropertyFormGUI\getInput(), initAliasForm(), and ILIAS\Repository\lng().
ilPCMediaObjectGUI::saveStyle | ( | ) |
Save Style.
Definition at line 1343 of file class.ilPCMediaObjectGUI.php.
References ILIAS\Repository\ctrl(), and editStyle().
ilPCMediaObjectGUI::selectObjectReference | ( | ) |
Create new media object and replace currrent media item with it.
(keep all instance parameters)
Definition at line 491 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$ctrl, ilPageContentGUI\$lng, ilMediaPoolItem\lookupForeignId(), and ilLanguage\txt().
ilPCMediaObjectGUI::selectPool | ( | bool | $a_change_obj_ref = false | ) |
Select concrete pool.
Definition at line 434 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$ctrl, and ilCtrl\setParameter().
Referenced by changeObjectReference(), and insert().
ilPCMediaObjectGUI::setEnabledMapAreas | ( | bool | $a_enabledmapareas | ) |
Set Enable map areas.
Definition at line 119 of file class.ilPCMediaObjectGUI.php.
ilPCMediaObjectGUI::setHeader | ( | string | $a_title = "" | ) |
Definition at line 106 of file class.ilPCMediaObjectGUI.php.
ilPCMediaObjectGUI::setSubCmd | ( | string | $a_val | ) |
Set table sub command.
Definition at line 95 of file class.ilPCMediaObjectGUI.php.
|
protected |
Definition at line 31 of file class.ilPCMediaObjectGUI.php.
Referenced by insertFromPool().
|
protected |
Definition at line 29 of file class.ilPCMediaObjectGUI.php.
Referenced by getEnabledMapAreas().
|
protected |
Definition at line 26 of file class.ilPCMediaObjectGUI.php.
Referenced by insert().
|
protected |
Definition at line 27 of file class.ilPCMediaObjectGUI.php.
Referenced by saveAliasProperties().
string ilPCMediaObjectGUI::$header = "" |
Definition at line 36 of file class.ilPCMediaObjectGUI.php.
Referenced by getHeader().
|
protected |
Definition at line 38 of file class.ilPCMediaObjectGUI.php.
|
protected |
Definition at line 28 of file class.ilPCMediaObjectGUI.php.
|
protected |
Definition at line 35 of file class.ilPCMediaObjectGUI.php.
|
protected |
Definition at line 37 of file class.ilPCMediaObjectGUI.php.
Referenced by getSubCmd().
|
protected |
Definition at line 30 of file class.ilPCMediaObjectGUI.php.
Referenced by changeObjectReference(), getEnabledMapAreas(), getTabs(), insert(), insertFromPool(), and poolSelection().
|
protected |
Definition at line 32 of file class.ilPCMediaObjectGUI.php.
|
protected |
Definition at line 34 of file class.ilPCMediaObjectGUI.php.
Referenced by insertFromPool().
|
protected |
Definition at line 33 of file class.ilPCMediaObjectGUI.php.
Referenced by copyToClipboard().