ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilPCMediaObjectGUI. More...
Public Member Functions | |
__construct ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="") | |
setHeader ($a_title="") | |
getHeader () | |
setEnabledMapAreas ($a_enabledmapareas) | |
Set Enable map areas. More... | |
getEnabledMapAreas () | |
Get Enable map areas. More... | |
executeCommand () | |
execute command More... | |
insert ($a_post_cmd="edpost", $a_submit_cmd="create_mob", $a_input_error=false) | |
Insert new media object form. More... | |
changeObjectReference () | |
Change object reference. More... | |
insertFromPool ($a_change_obj_ref=false) | |
Insert media object from pool. More... | |
selectPool ($a_change_obj_ref=false) | |
Select concrete pool. More... | |
poolSelection ($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 ($a_create_alias=true, $a_change_obj_ref=false) |
create new media object in dom and update page in db More... | |
editAlias () | |
edit properties form More... | |
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... | |
saveStyle () | |
Save Style. More... | |
getTabs (&$tab_gui, $a_create=false, $a_change_obj_ref=false) | |
add tabs to ilTabsGUI object More... | |
Public Member Functions inherited from ilPageContentGUI | |
__construct ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="") | |
Constructor public. More... | |
setContentObject ($a_val) | |
Set content object. More... | |
getContentObject () | |
Get content object. More... | |
setPage ($a_val) | |
Set page. More... | |
getPage () | |
Get page. More... | |
setPageConfig ($a_val) | |
Set Page Config. More... | |
getPageConfig () | |
Get Page Config. More... | |
setStyleId ($a_styleid) | |
Set Style Id. More... | |
getStyleId () | |
Get Style Id. More... | |
getStyle () | |
Get style object. More... | |
setCharacteristics ($a_chars) | |
Set Characteristics. More... | |
getCharacteristics () | |
Get characteristics. More... | |
getHierId () | |
get hierarchical id in dom object More... | |
setHierId ($a_hier_id) | |
get hierarchical id in dom object More... | |
getBBMenu ($a_ta_name="par_content") | |
Get the bb menu incl. More... | |
delete () | |
delete content element More... | |
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 () | |
display validation errors More... | |
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 ($a_type) | |
Get table templates. More... | |
Data Fields | |
$header | |
$ctrl | |
Data Fields inherited from ilPageContentGUI | |
$content_obj | |
$ilias | |
$tpl | |
$lng | |
$ctrl | |
$pg_obj | |
$hier_id | |
$dom | |
$updated | |
$target_script | |
$return_location | |
$page_config = null | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilPageContentGUI | |
static | _getCommonBBButtons () |
Get common bb buttons. More... | |
Static Public Attributes inherited from ilPageContentGUI | |
static | $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;" |
Protected Member Functions inherited from ilPageContentGUI | |
getCharacteristicsOfCurrentStyle ($a_type) | |
Get characteristics of current style. More... | |
Protected Attributes inherited from ilPageContentGUI | |
$log | |
Static Protected Attributes inherited from ilPageContentGUI | |
static | $common_bb_buttons |
Class ilPCMediaObjectGUI.
Editing User Interface for MediaObjects within LMs (see ILIAS DTD)
ilPCMediaObjectGUI: ilObjMediaObjectGUI, ilPCImageMapEditorGUI
Definition at line 21 of file class.ilPCMediaObjectGUI.php.
ilPCMediaObjectGUI::__construct | ( | $a_pg_obj, | |
$a_content_obj, | |||
$a_hier_id = 0 , |
|||
$a_pc_id = "" |
|||
) |
Definition at line 26 of file class.ilPCMediaObjectGUI.php.
References $ilCtrl, array, and ilPageContentGUI\setCharacteristics().
ilPCMediaObjectGUI::centerAlign | ( | ) |
align media object to center
Definition at line 1087 of file class.ilPCMediaObjectGUI.php.
References $_SESSION, ilPageContentGUI\getHierId(), and ilMediaAliasItem\setHorizontalAlign().
ilPCMediaObjectGUI::changeObjectReference | ( | ) |
Change object reference.
Definition at line 208 of file class.ilPCMediaObjectGUI.php.
References $_GET, $_SESSION, $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\displayValidationError(), getTabs(), insertFromPool(), poolSelection(), and selectPool().
ilPCMediaObjectGUI::checkStyleSelection | ( | ) |
Checks whether style selection shoudl be available or not.
Definition at line 1147 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\getCharacteristics().
Referenced by getTabs().
ilPCMediaObjectGUI::copyToClipboard | ( | ) |
copy media object to clipboard
Definition at line 1076 of file class.ilPCMediaObjectGUI.php.
References ilUtil\sendSuccess().
& ilPCMediaObjectGUI::create | ( | $a_create_alias = true , |
|
$a_change_obj_ref = false |
|||
) |
create new media object in dom and update page in db
Definition at line 405 of file class.ilPCMediaObjectGUI.php.
References $_GET, $_POST, ilPageContentGUI\$content_obj, $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\getPage(), insert(), ilMediaPoolItem\lookupForeignId(), ilUtil\sendSuccess(), ilPageContentGUI\setHierId(), and ilObjMediaObjectGUI\setObjectPerCreationForm().
Referenced by createNewObjectReference().
ilPCMediaObjectGUI::createNewObjectReference | ( | ) |
Create new media object and replace currrent media item with it.
(keep all instance parameters)
Definition at line 372 of file class.ilPCMediaObjectGUI.php.
References create().
ilPCMediaObjectGUI::editAlias | ( | ) |
edit properties form
Definition at line 492 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$tpl, getAliasValues(), and initAliasForm().
Referenced by saveAliasProperties().
ilPCMediaObjectGUI::editStyle | ( | ) |
Edit Style.
Definition at line 1163 of file class.ilPCMediaObjectGUI.php.
References $html, $ilCtrl, ilPageContentGUI\$lng, $ret, ilPageContentGUI\$tpl, array, ilPageContentGUI\displayValidationError(), and ilPageContentGUI\getCharacteristics().
Referenced by saveStyle().
ilPCMediaObjectGUI::executeCommand | ( | ) |
execute command
Definition at line 76 of file class.ilPCMediaObjectGUI.php.
References $cmd, ilPageContentGUI\$lng, $ret, ilPageContentGUI\$tpl, ilPageContentGUI\getCharacteristicsOfCurrentStyle(), getEnabledMapAreas(), ilUtil\getImagePath(), getTabs(), and ilObjMediaObjectGUI\setBackTitle().
ilPCMediaObjectGUI::getAliasValues | ( | ) |
Put alias values into form.
Definition at line 753 of file class.ilPCMediaObjectGUI.php.
References ilPageContentGUI\$lng, ilObjMediaObject\_useAutoStartParameterOnly(), ilMediaAliasItem\getCaption(), ilMediaAliasItem\getHeight(), ilPageContentGUI\getHierId(), ilMediaAliasItem\getParameterString(), ilMediaAliasItem\getTextRepresentation(), and ilMediaAliasItem\getWidth().
Referenced by editAlias().
ilPCMediaObjectGUI::getEnabledMapAreas | ( | ) |
Get Enable map areas.
Definition at line 68 of file class.ilPCMediaObjectGUI.php.
Referenced by executeCommand(), and getTabs().
ilPCMediaObjectGUI::getHeader | ( | ) |
ilPCMediaObjectGUI::getTabs | ( | & | $tab_gui, |
$a_create = false , |
|||
$a_change_obj_ref = false |
|||
) |
add tabs to ilTabsGUI object
object | $tab_gui | ilTabsGUI object |
boolean | $a_create | new creation true/false |
Definition at line 1239 of file class.ilPCMediaObjectGUI.php.
References $cmd, $ilCtrl, array, checkStyleSelection(), and getEnabledMapAreas().
Referenced by changeObjectReference(), executeCommand(), insert(), insertFromPool(), and poolSelection().
ilPCMediaObjectGUI::initAliasForm | ( | ) |
Init alias form.
Definition at line 504 of file class.ilPCMediaObjectGUI.php.
References $ilCtrl, $lm_set, ilPageContentGUI\$lng, $title, ilObjMediaObject\_getSimpleMimeTypes(), ilObjMediaObject\_useAutoStartParameterOnly(), ilSubEnabledFormPropertyGUI\addSubItem(), ilRadioOption\addSubItem(), ilPageContentGUI\getHierId(), ilMediaAliasItem\getParameters(), and ilWidthHeightInputGUI\setConstrainProportions().
Referenced by editAlias().
ilPCMediaObjectGUI::insert | ( | $a_post_cmd = "edpost" , |
|
$a_submit_cmd = "create_mob" , |
|||
$a_input_error = false |
|||
) |
Insert new media object form.
Definition at line 144 of file class.ilPCMediaObjectGUI.php.
References $_GET, $_SESSION, $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilPageContentGUI\displayValidationError(), getTabs(), insertFromPool(), poolSelection(), and selectPool().
Referenced by create().
ilPCMediaObjectGUI::insertFromPool | ( | $a_change_obj_ref = false | ) |
Insert media object from pool.
Definition at line 262 of file class.ilPCMediaObjectGUI.php.
References $_SESSION, $html, $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilObject\_lookupObjId(), ilObject\_lookupType(), getTabs(), ilMediaPoolTableGUI\IL_MEP_SELECT, ilMediaPoolTableGUI\IL_MEP_SELECT_SINGLE, and poolSelection().
Referenced by changeObjectReference(), and insert().
ilPCMediaObjectGUI::leftAlign | ( | ) |
align media object to left
Definition at line 1099 of file class.ilPCMediaObjectGUI.php.
References $_SESSION, ilPageContentGUI\getHierId(), and ilMediaAliasItem\setHorizontalAlign().
ilPCMediaObjectGUI::leftFloatAlign | ( | ) |
align media object to left, floating text
Definition at line 1123 of file class.ilPCMediaObjectGUI.php.
References $_SESSION, ilPageContentGUI\getHierId(), and ilMediaAliasItem\setHorizontalAlign().
ilPCMediaObjectGUI::poolSelection | ( | $a_change_obj_ref = false | ) |
Pool Selection.
Definition at line 337 of file class.ilPCMediaObjectGUI.php.
References $ilCtrl, ilPageContentGUI\$tpl, array, and getTabs().
Referenced by changeObjectReference(), insert(), and insertFromPool().
ilPCMediaObjectGUI::rightAlign | ( | ) |
align media object to right
Definition at line 1111 of file class.ilPCMediaObjectGUI.php.
References $_SESSION, ilPageContentGUI\getHierId(), and ilMediaAliasItem\setHorizontalAlign().
ilPCMediaObjectGUI::rightFloatAlign | ( | ) |
align media object to right, floating text
Definition at line 1135 of file class.ilPCMediaObjectGUI.php.
References $_SESSION, ilPageContentGUI\getHierId(), and ilMediaAliasItem\setHorizontalAlign().
ilPCMediaObjectGUI::saveAliasProperties | ( | ) |
save table properties in db and return to page edit screen
Definition at line 922 of file class.ilPCMediaObjectGUI.php.
References $_POST, ilObjMediaObject\_useAutoStartParameterOnly(), ilMediaAliasItem\delete(), ilMediaAliasItem\deriveCaption(), ilMediaAliasItem\deriveParameters(), ilMediaAliasItem\deriveSize(), ilMediaAliasItem\deriveTextRepresentation(), editAlias(), ilMediaAliasItem\exists(), ilUtil\extractParameterString(), ilPageContentGUI\getHierId(), ilMediaAliasItem\insert(), ilMediaAliasItem\setCaption(), ilMediaAliasItem\setHeight(), ilMediaAliasItem\setParameters(), ilMediaAliasItem\setTextRepresentation(), ilMediaAliasItem\setWidth(), and ilUtil\stripSlashes().
ilPCMediaObjectGUI::saveStyle | ( | ) |
Save Style.
Definition at line 1218 of file class.ilPCMediaObjectGUI.php.
References $_POST, and editStyle().
ilPCMediaObjectGUI::selectObjectReference | ( | ) |
Create new media object and replace currrent media item with it.
(keep all instance parameters)
Definition at line 381 of file class.ilPCMediaObjectGUI.php.
References $_POST, $ilCtrl, ilPageContentGUI\$lng, ilMediaPoolItem\lookupForeignId(), and ilUtil\sendInfo().
ilPCMediaObjectGUI::selectPool | ( | $a_change_obj_ref = false | ) |
Select concrete pool.
Definition at line 318 of file class.ilPCMediaObjectGUI.php.
References $_GET, $_SESSION, and $ilCtrl.
Referenced by changeObjectReference(), and insert().
ilPCMediaObjectGUI::setEnabledMapAreas | ( | $a_enabledmapareas | ) |
Set Enable map areas.
boolean | $a_enabledmapareas | Enable map areas |
Definition at line 58 of file class.ilPCMediaObjectGUI.php.
ilPCMediaObjectGUI::setHeader | ( | $a_title = "" | ) |
ilPCMediaObjectGUI::$ctrl |
Definition at line 24 of file class.ilPCMediaObjectGUI.php.
ilPCMediaObjectGUI::$header |
Definition at line 23 of file class.ilPCMediaObjectGUI.php.
Referenced by getHeader().