|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class ilPCMediaObject Media content object (see ILIAS DTD) More...
Inheritance diagram for ilPCMediaObject:
Collaboration diagram for ilPCMediaObject:Public Member Functions | |
| init () | |
| Init object. More... | |
| readMediaObject (int $a_mob_id=0) | |
| 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) | |
| Modify page content after xsl. More... | |
| getOnloadCode (string $a_mode) | |
| getJavascriptFiles (string $a_mode) | |
| getCssFiles (string $a_mode) | |
| getStandardMediaAliasItem () | |
| getFullscreenMediaAliasItem () | |
Public Member Functions inherited from ilPageContent | |
| __construct (ilPageObject $a_pg_obj, ?PageManagerInterface $page_manager=null, ?ObjectAdapterInterface $object_adapter=null) | |
| setPage (ilPageObject $a_val) | |
| getPage () | |
| init () | |
| Init object. More... | |
| getType () | |
| getDomNode () | |
| getDomDoc () | |
| setDomNode (DOMNode $node) | |
| getChildNode () | |
| 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... | |
| getNewPageContentNode () | |
| 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 () |
| Get lang vars needed for editing. 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 | 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) |
| Overwrite in derived classes, if old history entries are being deleted. 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 Public Member Functions inherited from ilPageContent | |
| 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 Member Functions | |
| getMediaAliasNode () | |
Protected Member Functions inherited from ilPageContent | |
| getPageManager () | |
| setType (string $a_type) | |
| Set Type. More... | |
| hasNode () | |
| createInitialChildNode (string $hier_id, string $pc_id, string $child, array $child_attributes=[]) | |
Protected Attributes | |
| ilCtrlInterface | $ctrl |
| UsageDBRepository | $mob_usage_repo |
| DOMNode | $mal_node |
| ilObjUser | $user |
| DOMNode | $mob_node |
| ILIAS DI UIServices | $ui |
| ilObjMediaObject | $mediaobject = null |
| ilLanguage | $lng |
| ilGlobalPageTemplate | $global_tpl |
Protected Attributes inherited from ilPageContent | |
| DOMDocument | $dom_doc |
| ILIAS COPage InternalDomainService | $domain |
| string | $pcid |
| string | $type = "" |
| ilPageObject | $pg_obj |
| string | $file_download_link = '' |
| string | $fullscreen_link = '' |
| string | $sourcecode_download_script = '' |
| ilLogger | $log |
| string | $profile_back_url = "" |
| ILIAS COPage Dom DomUtil | $dom_util |
| PageManagerInterface | $page_manager = null |
| ObjectAdapterInterface | $object = null |
Static Protected Attributes | |
| static string | $modal_show_signal = "" |
| static string | $modal_suffix = "" |
Additional Inherited Members | |
Data Fields inherited from ilPageContent | |
| string | $hier_id = "" |
| DOMNode | $dom_node = null |
| string | $page_lang = "" |
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 |
Reimplemented from ilPageContent.
Definition at line 310 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 |
Reimplemented from ilPageContent.
Definition at line 249 of file class.ilPCMediaObject.php.
References ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), ilPageObject\getId(), ilPageObject\getLanguage(), and ilPageObject\getParentType().
Here is the call graph for this function:
|
static |
Before page is being deleted.
| ilPageObject | $a_page | page object |
Reimplemented from ilPageContent.
Definition at line 275 of file class.ilPCMediaObject.php.
| ilPCMediaObject::create | ( | ) |
Definition at line 83 of file class.ilPCMediaObject.php.
References ilPageContent\createPageContentNode().
Here is the call graph for this function:| ilPCMediaObject::createAlias | ( | ilPageObject | $a_pg_obj, |
| string | $a_hier_id, | ||
| string | $a_pc_id = "" |
||
| ) |
Definition at line 88 of file class.ilPCMediaObject.php.
| ilPCMediaObject::createMediaObject | ( | ) |
Definition at line 78 of file class.ilPCMediaObject.php.
References setMediaObject().
Here is the call graph for this function:
|
static |
Overwrite in derived classes, if old history entries are being deleted.
Reimplemented from ilPageContent.
Definition at line 562 of file class.ilPCMediaObject.php.
| ilPCMediaObject::dumpXML | ( | ) |
Definition at line 206 of file class.ilPCMediaObject.php.
| ilPCMediaObject::getCaptionClass | ( | ) |
Definition at line 232 of file class.ilPCMediaObject.php.
| ilPCMediaObject::getClass | ( | ) |
Get characteristic of section.
Definition at line 219 of file class.ilPCMediaObject.php.
| ilPCMediaObject::getCssFiles | ( | string | $a_mode | ) |
Reimplemented from ilPageContent.
Definition at line 499 of file class.ilPCMediaObject.php.
| ilPCMediaObject::getFullscreenMediaAliasItem | ( | ) |
Definition at line 516 of file class.ilPCMediaObject.php.
| ilPCMediaObject::getJavascriptFiles | ( | string | $a_mode | ) |
Reimplemented from ilPageContent.
Definition at line 493 of file class.ilPCMediaObject.php.
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 237 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 185 of file class.ilPCMediaObject.php.
| ilPCMediaObject::getMediaObject | ( | ) |
Definition at line 73 of file class.ilPCMediaObject.php.
References $mediaobject.
Referenced by ilPCMediaObjectQuickEdit\__construct(), and ilPCImageMapTableGUI\__construct().
Here is the caller graph for this function:| ilPCMediaObject::getOnloadCode | ( | string | $a_mode | ) |
Reimplemented from ilPageContent.
Definition at line 482 of file class.ilPCMediaObject.php.
| ilPCMediaObject::getStandardMediaAliasItem | ( | ) |
Definition at line 505 of file class.ilPCMediaObject.php.
|
static |
Handle copied content.
This function must, e.g. create copies of objects referenced within the content (e.g. question objects)
| DOMDocument | $a_domdoc | |
| bool | $a_self_ass | |
| bool | $a_clone_mobs | |
| int | $new_parent_id | |
| int | $obj_copy_id |
Reimplemented from ilPageContent.
Definition at line 604 of file class.ilPCMediaObject.php.
| ilPCMediaObject::init | ( | ) |
Init object.
This function must be overwritten and at least set the content type.
Reimplemented from ilPageContent.
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().
Here is the call graph for this function:| ilPCMediaObject::modifyPageContentPostXsl | ( | string | $a_output, |
| string | $a_mode, | ||
| bool | $a_abstract_only = false |
||
| ) |
Modify page content after xsl.
Reimplemented from ilPageContent.
Definition at line 386 of file class.ilPCMediaObject.php.
References ilObjMediaObject\_getDirectory(), and ilObjMediaObject\_getMobsOfObject().
Here is the call graph for this function:| ilPCMediaObject::readMediaObject | ( | int | $a_mob_id = 0 | ) |
Definition at line 55 of file class.ilPCMediaObject.php.
References setMediaObject().
Here is the call graph for this function:
|
static |
Definition at line 319 of file class.ilPCMediaObject.php.
| ilPCMediaObject::setCaptionClass | ( | string | $a_class | ) |
Set caption style class of media object.
Definition at line 227 of file class.ilPCMediaObject.php.
| ilPCMediaObject::setClass | ( | string | $a_class | ) |
Definition at line 211 of file class.ilPCMediaObject.php.
| ilPCMediaObject::setHierId | ( | string | $a_hier_id | ) |
Reimplemented from ilPageContent.
Definition at line 63 of file class.ilPCMediaObject.php.
| ilPCMediaObject::setMediaObject | ( | ilObjMediaObject | $a_mediaobject | ) |
Definition at line 68 of file class.ilPCMediaObject.php.
Referenced by createMediaObject(), and readMediaObject().
Here is the caller graph for this function:| 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 201 of file class.ilPCMediaObject.php.
References ILIAS\Survey\Mode\getId().
Here is the call graph for this function:
|
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.