ILIAS
release_8 Revision v8.19
|
Class ilPCMediaObject Media content object (see ILIAS DTD) More...
Public Member Functions | |
init () | |
readMediaObject (int $a_mob_id=0) | |
setNode (php4DOMElement $a_node) | |
setDom (php4DOMDocument $a_dom) | |
setHierId (string $a_hier_id) | |
setMediaObject (ilObjMediaObject $a_mediaobject) | |
getMediaObject () | |
createMediaObject () | |
create () | |
createAlias (ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id="") | |
updateObjectReference () | |
Updates the media object referenced by the media alias. More... | |
dumpXML () | |
setClass (string $a_class) | |
getClass () | |
Get characteristic of section. More... | |
setCaptionClass (string $a_class) | |
Set caption style class of media object. More... | |
getCaptionClass () | |
modifyPageContentPostXsl (string $a_output, string $a_mode, bool $a_abstract_only=false) | |
getOnloadCode (string $a_mode) | |
getJavascriptFiles (string $a_mode) | |
getCssFiles (string $a_mode) | |
getStandardMediaAliasItem () | |
getFullscreenMediaAliasItem () | |
![]() | |
__construct (ilPageObject $a_pg_obj) | |
setPage (ilPageObject $a_val) | |
getPage () | |
init () | |
Init object. More... | |
getType () | |
setNode (php4DOMElement $a_node) | |
Set xml node of page content. More... | |
getNode () | |
getJavascriptFiles (string $a_mode) | |
getCssFiles (string $a_mode) | |
getOnloadCode (string $a_mode) | |
setHierId (string $a_hier_id) | |
getHierId () | |
lookupHierId () | |
readHierId () | |
setPcId (string $a_pcid) | |
getPCId () | |
setFileDownloadLink (string $a_download_link) | |
getFileDownloadLink () | |
setProfileBackUrl (string $url) | |
getProfileBackUrl () | |
setFullscreenLink (string $a_fullscreen_link) | |
getFullscreenLink () | |
setSourcecodeDownloadScript (string $script_name) | |
getSourcecodeDownloadScript () | |
readPCId () | |
writePCId (string $a_pc_id) | |
setEnabled (string $value) | |
Set Enabled value for page content component. More... | |
enable () | |
disable () | |
isEnabled () | |
createPageContentNode (bool $a_set_this_node=true) | |
Create page content node (always use this method first when adding a new element) More... | |
modifyPageContentPostXsl (string $a_output, string $a_mode, bool $a_abstract_only=false) | |
Modify page content after xsl. More... | |
getModel () | |
Get model as needed for the front-end editor. More... | |
Static Public Member Functions | |
static | getLangVars () |
static | afterPageUpdate (ilPageObject $a_page, DOMDocument $a_domdoc, string $a_xml, bool $a_creation) |
After page has been updated (or created) More... | |
static | beforePageDelete (ilPageObject $a_page) |
static | afterPageHistoryEntry (ilPageObject $a_page, DOMDocument $a_old_domdoc, string $a_old_xml, int $a_old_nr) |
After page history entry has been created. More... | |
static | saveMobUsage (ilPageObject $a_page, DOMDocument $a_domdoc, int $a_old_nr=0) |
static | deleteHistoryLowerEqualThan (string $parent_type, int $page_id, string $lang, int $delete_lower_than_nr) |
![]() | |
static | incEdId (string $ed_id) |
Increases an hierarchical editing id at lowest level (last number) More... | |
static | decEdId (string $ed_id) |
Decreases an hierarchical editing id at lowest level (last number) More... | |
static | sortHierIds (array $a_array) |
Sort an array of Hier IDS in ascending order. More... | |
static | isGreaterHierId (string $a, string $b) |
Check whether Hier ID $a is greater than Hier ID $b. More... | |
static | getLangVars () |
Get lang vars needed for editing. More... | |
static | handleCopiedContent (DOMDocument $a_domdoc, bool $a_self_ass=true, bool $a_clone_mobs=false, int $new_parent_id=0, int $obj_copy_id=0) |
Handle copied content. More... | |
static | afterPageUpdate (ilPageObject $a_page, DOMDocument $a_domdoc, string $a_xml, bool $a_creation) |
After page has been updated (or created) More... | |
static | beforePageDelete (ilPageObject $a_page) |
Before page is being deleted. More... | |
static | afterRepositoryCopy (ilPageObject $page, array $mapping, int $source_ref_id) |
After repository (container) copy action. More... | |
static | afterPageHistoryEntry (ilPageObject $a_page, DOMDocument $a_old_domdoc, string $a_old_xml, int $a_old_nr) |
After page history entry has been created. More... | |
static | deleteHistoryLowerEqualThan (string $parent_type, int $page_id, string $lang, int $delete_lower_than_nr) |
Overwrite in derived classes, if old history entries are being deleted. More... | |
Protected Attributes | |
ilCtrlInterface | $ctrl |
UsageDBRepository | $mob_usage_repo |
php4DOMElement | $mal_node |
ilObjUser | $user |
php4DOMElement | $mob_node |
ILIAS DI UIServices | $ui |
ilObjMediaObject | $mediaobject = null |
ilLanguage | $lng |
ilGlobalPageTemplate | $global_tpl |
![]() | |
string | $pcid |
string | $type = "" |
ilPageObject | $pg_obj |
string | $file_download_link |
string | $fullscreen_link |
string | $sourcecode_download_script |
ilLogger | $log |
string | $profile_back_url = "" |
Static Protected Attributes | |
static string | $modal_show_signal = "" |
static string | $modal_suffix = "" |
Additional Inherited Members | |
![]() | |
string | $hier_id = "" |
php4DOMElement | $node = null |
php4DOMDocument | $dom = null |
string | $page_lang = "" |
![]() | |
setType (string $a_type) | |
Set Type. More... | |
Class ilPCMediaObject Media content object (see ILIAS DTD)
Definition at line 26 of file class.ilPCMediaObject.php.
|
static |
After page history entry has been created.
ilPageObject | $a_page | page object |
DOMDocument | $a_old_domdoc | old dom document |
string | $a_old_xml | old xml |
int | $a_old_nr | history number |
Definition at line 353 of file class.ilPCMediaObject.php.
|
static |
After page has been updated (or created)
ilPageObject | $a_page | page object |
DOMDocument | $a_domdoc | dom document |
string | $a_xml | xml |
bool | $a_creation | true on creation, otherwise false |
Definition at line 292 of file class.ilPCMediaObject.php.
References ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), ilPageObject\getId(), ilPageObject\getImportMode(), ilPageObject\getLanguage(), and ilPageObject\getParentType().
|
static |
Definition at line 318 of file class.ilPCMediaObject.php.
References ilObjMediaObject\_deleteAllUsages(), ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), ilPageObject\getId(), ilPageObject\getLanguage(), and ilPageObject\getParentType().
ilPCMediaObject::create | ( | ) |
Definition at line 95 of file class.ilPCMediaObject.php.
References ilPageContent\createPageContentNode().
ilPCMediaObject::createAlias | ( | ilPageObject | $a_pg_obj, |
string | $a_hier_id, | ||
string | $a_pc_id = "" |
||
) |
Definition at line 100 of file class.ilPCMediaObject.php.
References ILIAS\Survey\Mode\getId(), getMediaObject(), IL_INSERT_AFTER, and ilPageObject\insertContent().
ilPCMediaObject::createMediaObject | ( | ) |
Definition at line 90 of file class.ilPCMediaObject.php.
References setMediaObject().
|
static |
Definition at line 595 of file class.ilPCMediaObject.php.
References $DIC, ilPageContent\$log, ilObject\_lookupType(), ilLogger\debug(), ILIAS\MediaObjects\Usage\UsageDBRepository\deleteHistoryUsagesLowerEqualThan(), ILIAS\MediaObjects\Usage\UsageDBRepository\getHistoryUsagesLowerEqualThan(), ilLoggerFactory\getLogger(), and ilObjMediaObject\lookupUsages().
ilPCMediaObject::dumpXML | ( | ) |
ilPCMediaObject::getCaptionClass | ( | ) |
Definition at line 268 of file class.ilPCMediaObject.php.
References php4DOMNode\first_child(), and php4DOMElement\get_attribute().
ilPCMediaObject::getClass | ( | ) |
Get characteristic of section.
Definition at line 237 of file class.ilPCMediaObject.php.
References php4DOMNode\first_child(), and php4DOMElement\get_attribute().
ilPCMediaObject::getCssFiles | ( | string | $a_mode | ) |
Definition at line 530 of file class.ilPCMediaObject.php.
References ilPlayerUtil\getCssFilePaths().
ilPCMediaObject::getFullscreenMediaAliasItem | ( | ) |
Definition at line 549 of file class.ilPCMediaObject.php.
References ilPageContent\getHierId(), getMediaObject(), ilPageContent\getPage(), ilPageContent\getPCId(), and getStandardMediaAliasItem().
ilPCMediaObject::getJavascriptFiles | ( | string | $a_mode | ) |
Definition at line 522 of file class.ilPCMediaObject.php.
References ilPlayerUtil\getJsFilePaths(), and iljQueryUtil\getLocalMaphilightPath().
|
static |
Definition at line 280 of file class.ilPCMediaObject.php.
ilPCMediaObject::getMediaObject | ( | ) |
Definition at line 85 of file class.ilPCMediaObject.php.
References $mediaobject.
Referenced by ilPCImageMapTableGUI\__construct(), ilPCMediaObjectQuickEdit\__construct(), createAlias(), getFullscreenMediaAliasItem(), and updateObjectReference().
ilPCMediaObject::getOnloadCode | ( | string | $a_mode | ) |
Definition at line 511 of file class.ilPCMediaObject.php.
ilPCMediaObject::getStandardMediaAliasItem | ( | ) |
Definition at line 538 of file class.ilPCMediaObject.php.
References ilPageContent\getHierId(), and ilPageContent\getPCId().
Referenced by getFullscreenMediaAliasItem().
ilPCMediaObject::init | ( | ) |
Definition at line 40 of file class.ilPCMediaObject.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilPageContent\setType(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
ilPCMediaObject::modifyPageContentPostXsl | ( | string | $a_output, |
string | $a_mode, | ||
bool | $a_abstract_only = false |
||
) |
Definition at line 432 of file class.ilPCMediaObject.php.
References $ilUser, $user, ilObjMediaObject\_getDirectory(), ilObjMediaObject\_getMobsOfObject(), ILIAS\Repository\ctrl(), ilPageContent\getPage(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().
ilPCMediaObject::readMediaObject | ( | int | $a_mob_id = 0 | ) |
Definition at line 56 of file class.ilPCMediaObject.php.
References setMediaObject().
|
static |
Definition at line 362 of file class.ilPCMediaObject.php.
References ilPageContent\$log, ilPageContent\$node, ilObjMediaObject\_deleteAllUsages(), ilObject\_lookupType(), ilObjMediaObject\_saveUsage(), ilLogger\debug(), ilPageObject\getId(), ilPageObject\getLanguage(), ilLoggerFactory\getLogger(), and ilPageObject\getParentType().
ilPCMediaObject::setCaptionClass | ( | string | $a_class | ) |
Set caption style class of media object.
Definition at line 252 of file class.ilPCMediaObject.php.
References php4DOMNode\first_child(), php4DOMElement\has_attribute(), php4DOMElement\remove_attribute(), and php4DOMElement\set_attribute().
ilPCMediaObject::setClass | ( | string | $a_class | ) |
Definition at line 218 of file class.ilPCMediaObject.php.
References php4DOMNode\first_child(), php4DOMElement\has_attribute(), php4DOMElement\remove_attribute(), and php4DOMElement\set_attribute().
ilPCMediaObject::setDom | ( | php4DOMDocument | $a_dom | ) |
Definition at line 70 of file class.ilPCMediaObject.php.
ilPCMediaObject::setHierId | ( | string | $a_hier_id | ) |
Definition at line 75 of file class.ilPCMediaObject.php.
ilPCMediaObject::setMediaObject | ( | ilObjMediaObject | $a_mediaobject | ) |
Definition at line 80 of file class.ilPCMediaObject.php.
Referenced by createMediaObject(), and readMediaObject().
ilPCMediaObject::setNode | ( | php4DOMElement | $a_node | ) |
Definition at line 64 of file class.ilPCMediaObject.php.
References php4DOMNode\first_child().
ilPCMediaObject::updateObjectReference | ( | ) |
Updates the media object referenced by the media alias.
This makes only sense, after the media object has changed. (-> change object reference function)
Definition at line 202 of file class.ilPCMediaObject.php.
References ILIAS\Survey\Mode\getId(), and getMediaObject().
|
protected |
Definition at line 28 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 36 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 35 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 30 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 34 of file class.ilPCMediaObject.php.
Referenced by getMediaObject().
|
protected |
Definition at line 32 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 29 of file class.ilPCMediaObject.php.
|
staticprotected |
Definition at line 37 of file class.ilPCMediaObject.php.
|
staticprotected |
Definition at line 38 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 33 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 31 of file class.ilPCMediaObject.php.
Referenced by modifyPageContentPostXsl().