|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilPCMediaObject. More...
Inheritance diagram for ilPCMediaObject:
Collaboration diagram for ilPCMediaObject:Public Member Functions | |
| init () | |
| Init page content component. More... | |
| readMediaObject ($a_mob_id=0) | |
| Read/get Media Object. More... | |
| setNode ($a_node) | |
| Set xml node of page content. More... | |
| setDom (&$a_dom) | |
| set dom object More... | |
| setHierId ($a_hier_id) | |
| set hierarchical edit id More... | |
| setMediaObject ($a_mediaobject) | |
| Set Media Object. More... | |
| getMediaObject () | |
| Get Media Object. More... | |
| createMediaObject () | |
| create (&$a_pg_obj, $a_hier_id) | |
| Create pc media object. More... | |
| createAlias (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
| Create an media alias in page. More... | |
| updateObjectReference () | |
| Updates the media object referenced by the media alias. More... | |
| dumpXML () | |
| Dump node xml. More... | |
| setClass ($a_class) | |
| Set Style Class of table. More... | |
| getClass () | |
| Get characteristic of section. More... | |
| modifyPageContentPostXsl ($a_html, $a_mode) | |
| Modify page content after xsl. More... | |
Public Member Functions inherited from ilPageContent | |
| __construct ($a_pg_obj) | |
| Constructor. More... | |
| setPage ($a_val) | |
| Set page. More... | |
| getPage () | |
| Get page. More... | |
| init () | |
| Init object. More... | |
| getType () | |
| Get type of page content. More... | |
| setNode ($a_node) | |
| Set xml node of page content. More... | |
| & | getNode () |
| Get xml node of page content. More... | |
| getJavascriptFiles ($a_mode) | |
| Get Javascript files. More... | |
| getCssFiles ($a_mode) | |
| Get css files. More... | |
| getOnloadCode ($a_mode) | |
| Get on load code. More... | |
| setHierId ($a_hier_id) | |
| Set hierarchical ID in xml structure. More... | |
| getHierId () | |
| Get hierarchical id. More... | |
| lookupHierId () | |
| Get hierarchical id from dom. More... | |
| readHierId () | |
| Read PC Id. More... | |
| setPcId ($a_pcid) | |
| Set PC Id. More... | |
| getPCId () | |
| Get PC Id. More... | |
| setFileDownloadLink ($a_download_link) | |
| Set file download link. More... | |
| getFileDownloadLink () | |
| Get file download link. More... | |
| setFullscreenLink ($a_fullscreen_link) | |
| Set fullscreen link. More... | |
| getFullscreenLink () | |
| Get fullscreen link. More... | |
| setSourcecodeDownloadScript ($script_name) | |
| Set sourcecode download script. More... | |
| getSourcecodeDownloadScript () | |
| Get sourcecode download script. More... | |
| readPCId () | |
| Read PC Id. More... | |
| writePCId ($a_pc_id) | |
| Write pc id. More... | |
| setEnabled ($value) | |
| Set Enabled value for page content component. More... | |
| enable () | |
| Enable page content. More... | |
| disable () | |
| Disable page content. More... | |
| isEnabled () | |
| Check whether page content is enabled. More... | |
| createPageContentNode ($a_set_this_node=true) | |
| Create page content node (always use this method first when adding a new element) More... | |
| modifyPageContentPostXsl ($a_output, $a_mode) | |
| Modify page content after xsl. More... | |
Static Public Member Functions | |
| static | getLangVars () |
| Get lang vars needed for editing. More... | |
| static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
| After page has been updated (or created) More... | |
| static | beforePageDelete ($a_page) |
| Before page is being deleted. More... | |
| static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
| After page history entry has been created. More... | |
| static | saveMobUsage ($a_page, $a_domdoc, $a_old_nr=0) |
| Save all usages of media objects (media aliases, media objects, internal links) More... | |
Static Public Member Functions inherited from ilPageContent | |
| static | incEdId ($ed_id) |
| Increases an hierarchical editing id at lowest level (last number) More... | |
| static | decEdId ($ed_id) |
| Decreases an hierarchical editing id at lowest level (last number) More... | |
| static | haveSameContainer ($ed_id1, $ed_id2) |
| Check, if two ids are in same container. More... | |
| static | sortHierIds ($a_array) |
| Sort an array of Hier IDS in ascending order. More... | |
| static | isGreaterHierId ($a, $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, $a_self_ass=true, $a_clone_mobs=false) |
| Handle copied content. More... | |
| static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
| After page has been updated (or created) More... | |
| static | beforePageDelete ($a_page) |
| Before page is being deleted. More... | |
| static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
| After page history entry has been created. More... | |
Protected Attributes | |
| $user | |
| $mob_node | |
Protected Attributes inherited from ilPageContent | |
| $file_download_link | |
| $fullscreen_link | |
| $sourcecode_download_script | |
| $log | |
Additional Inherited Members | |
Data Fields inherited from ilPageContent | |
| $hier_id | |
| $node | |
| $dom | |
| $page_lang | |
Protected Member Functions inherited from ilPageContent | |
| setType ($a_type) | |
| Set Type. More... | |
Class ilPCMediaObject.
Media content object (see ILIAS DTD)
Definition at line 16 of file class.ilPCMediaObject.php.
|
static |
After page history entry has been created.
| object | $a_page | page object |
| DOMDocument | $a_old_domdoc | old dom document |
| string | $a_old_xml | old xml |
| integer | $a_old_nr | history number |
Reimplemented from ilPageContent.
Definition at line 343 of file class.ilPCMediaObject.php.
References saveMobUsage().
Here is the call graph for this function:
|
static |
After page has been updated (or created)
| object | $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 279 of file class.ilPCMediaObject.php.
References ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), and saveMobUsage().
Here is the call graph for this function:
|
static |
Before page is being deleted.
| object | $a_page | page object |
Reimplemented from ilPageContent.
Definition at line 307 of file class.ilPCMediaObject.php.
References ilObjMediaObject\_deleteAllUsages(), ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and ilObject\_lookupType().
Here is the call graph for this function:| ilPCMediaObject::create | ( | & | $a_pg_obj, |
| $a_hier_id | |||
| ) |
Create pc media object.
Definition at line 99 of file class.ilPCMediaObject.php.
References ilPageContent\createPageContentNode().
Here is the call graph for this function:| ilPCMediaObject::createAlias | ( | & | $a_pg_obj, |
| $a_hier_id, | |||
$a_pc_id = "" |
|||
| ) |
Create an media alias in page.
| object | $a_pg_obj | page object |
| string | $a_hier_id | hierarchical ID w |
Definition at line 110 of file class.ilPCMediaObject.php.
References getMediaObject(), and IL_INSERT_AFTER.
Here is the call graph for this function:| ilPCMediaObject::createMediaObject | ( | ) |
Definition at line 91 of file class.ilPCMediaObject.php.
References setMediaObject().
Here is the call graph for this function:| ilPCMediaObject::dumpXML | ( | ) |
Dump node xml.
Definition at line 219 of file class.ilPCMediaObject.php.
References $xml.
| ilPCMediaObject::getClass | ( | ) |
Get characteristic of section.
Definition at line 251 of file class.ilPCMediaObject.php.
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 266 of file class.ilPCMediaObject.php.
| ilPCMediaObject::getMediaObject | ( | ) |
Get Media Object.
Definition at line 86 of file class.ilPCMediaObject.php.
Referenced by createAlias(), and updateObjectReference().
Here is the caller graph for this function:| ilPCMediaObject::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Definition at line 28 of file class.ilPCMediaObject.php.
References $DIC, ilPageContent\setType(), and user().
Here is the call graph for this function:| ilPCMediaObject::modifyPageContentPostXsl | ( | $a_html, | |
| $a_mode | |||
| ) |
Modify page content after xsl.
| string | $a_output |
Reimplemented from ilPageContent.
Definition at line 424 of file class.ilPCMediaObject.php.
References $ilUser, $user, ilObjMediaObject\_getDirectory(), ilObjMediaObject\_getMobsOfObject(), and ilPageContent\getPage().
Here is the call graph for this function:| ilPCMediaObject::readMediaObject | ( | $a_mob_id = 0 | ) |
Read/get Media Object.
| int | media object ID |
Definition at line 41 of file class.ilPCMediaObject.php.
References setMediaObject().
Here is the call graph for this function:
|
static |
Save all usages of media objects (media aliases, media objects, internal links)
| string | $a_xml | xml data of page |
Definition at line 353 of file class.ilPCMediaObject.php.
References ilPageContent\$node, $nodes, ilObjMediaObject\_deleteAllUsages(), ilObject\_lookupType(), and ilObjMediaObject\_saveUsage().
Referenced by afterPageHistoryEntry(), and afterPageUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCMediaObject::setClass | ( | $a_class | ) |
Set Style Class of table.
| string | $a_class | class |
Definition at line 230 of file class.ilPCMediaObject.php.
| ilPCMediaObject::setDom | ( | & | $a_dom | ) |
set dom object
Definition at line 58 of file class.ilPCMediaObject.php.
| ilPCMediaObject::setHierId | ( | $a_hier_id | ) |
set hierarchical edit id
Reimplemented from ilPageContent.
Definition at line 66 of file class.ilPCMediaObject.php.
| ilPCMediaObject::setMediaObject | ( | $a_mediaobject | ) |
Set Media Object.
| object | $a_mediaobject | Media Object |
Definition at line 76 of file class.ilPCMediaObject.php.
Referenced by createMediaObject(), and readMediaObject().
Here is the caller graph for this function:| ilPCMediaObject::setNode | ( | $a_node | ) |
Set xml node of page content.
| object | $a_node | node object |
Reimplemented from ilPageContent.
Definition at line 49 of file class.ilPCMediaObject.php.
| 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 206 of file class.ilPCMediaObject.php.
References getMediaObject().
Here is the call graph for this function:
|
protected |
Definition at line 23 of file class.ilPCMediaObject.php.
|
protected |
Definition at line 21 of file class.ilPCMediaObject.php.
Referenced by modifyPageContentPostXsl().