ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilPCMediaObject. More...
Public Member Functions | |
init () | |
Init page content component. | |
readMediaObject ($a_mob_id=0) | |
Read/get Media Object. | |
setNode (&$a_node) | |
Set xml node of page content. | |
setDom (&$a_dom) | |
set dom object | |
setHierId ($a_hier_id) | |
set hierarchical edit id | |
setMediaObject ($a_mediaobject) | |
Set Media Object. | |
getMediaObject () | |
Get Media Object. | |
createMediaObject () | |
create (&$a_pg_obj, $a_hier_id) | |
Create pc media object. | |
createAlias (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
Create an media alias in page. | |
updateObjectReference () | |
Updates the media object referenced by the media alias. | |
dumpXML () | |
Dump node xml. | |
setClass ($a_class) | |
Set Style Class of table. | |
getClass () | |
Get characteristic of section. | |
Public Member Functions inherited from ilPageContent | |
__construct ($a_pg_obj) | |
Constructor. | |
setPage ($a_val) | |
Set page. | |
getPage () | |
Get page. | |
getType () | |
Get type of page content. | |
& | getNode () |
Get xml node of page content. | |
getJavascriptFiles () | |
Get Javascript files. | |
getCssFiles () | |
Get css files. | |
getHierId () | |
Get hierarchical id. | |
lookupHierId () | |
Get hierarchical id from dom. | |
readHierId () | |
Read PC Id. | |
setPcId ($a_pcid) | |
Set PC Id. | |
getPCId () | |
Get PC Id. | |
readPCId () | |
Read PC Id. | |
writePCId ($a_pc_id) | |
Write pc id. | |
isGreaterHierId ($a, $b) | |
Check whether Hier ID $a is greater than Hier ID $b. | |
setEnabled ($value) | |
Set Enabled value for page content component. | |
enable () | |
Enable page content. | |
disable () | |
Disable page content. | |
isEnabled () | |
Check whether page content is enabled. | |
createPageContentNode ($a_set_this_node=true) | |
Create page content node (always use this method first when adding a new element) | |
modifyPageContentPostXsl ($a_output, $a_mode) | |
Modify page content after xsl. |
Static Public Member Functions | |
static | getLangVars () |
Get lang vars needed for editing. | |
static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
After page has been updated (or created) | |
static | beforePageDelete ($a_page) |
Before page is being deleted. | |
static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
After page history entry has been created. | |
static | saveMobUsage ($a_page, $a_domdoc, $a_old_nr=0) |
Save all usages of media objects (media aliases, media objects, internal links) | |
Static Public Member Functions inherited from ilPageContent | |
static | incEdId ($ed_id) |
Increases an hierarchical editing id at lowest level (last number) | |
static | decEdId ($ed_id) |
Decreases an hierarchical editing id at lowest level (last number) | |
static | haveSameContainer ($ed_id1, $ed_id2) |
Check, if two ids are in same container. | |
static | sortHierIds ($a_array) |
Sort an array of Hier IDS in ascending order. | |
static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
Handle copied content. |
Data Fields | |
$mob_node | |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom |
Additional Inherited Members | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. |
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 349 of file class.ilPCMediaObject.php.
References saveMobUsage().
|
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 293 of file class.ilPCMediaObject.php.
References ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), and saveMobUsage().
|
static |
Before page is being deleted.
object | $a_page | page object |
Reimplemented from ilPageContent.
Definition at line 318 of file class.ilPCMediaObject.php.
References ilObjMediaObject\_deleteAllUsages(), ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), and ilObject\_lookupType().
ilPCMediaObject::create | ( | & | $a_pg_obj, |
$a_hier_id | |||
) |
Create pc media object.
Definition at line 92 of file class.ilPCMediaObject.php.
References ilPageContent\createPageContentNode().
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 103 of file class.ilPCMediaObject.php.
References getMediaObject(), and IL_INSERT_AFTER.
ilPCMediaObject::createMediaObject | ( | ) |
Definition at line 84 of file class.ilPCMediaObject.php.
References setMediaObject().
ilPCMediaObject::dumpXML | ( | ) |
Dump node xml.
Definition at line 225 of file class.ilPCMediaObject.php.
ilPCMediaObject::getClass | ( | ) |
Get characteristic of section.
Definition at line 263 of file class.ilPCMediaObject.php.
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 280 of file class.ilPCMediaObject.php.
ilPCMediaObject::getMediaObject | ( | ) |
Get Media Object.
Definition at line 79 of file class.ilPCMediaObject.php.
Referenced by createAlias(), and updateObjectReference().
ilPCMediaObject::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Definition at line 23 of file class.ilPCMediaObject.php.
References ilPageContent\setType().
ilPCMediaObject::readMediaObject | ( | $a_mob_id = 0 | ) |
Read/get Media Object.
int | media object ID |
Definition at line 33 of file class.ilPCMediaObject.php.
References setMediaObject().
|
static |
Save all usages of media objects (media aliases, media objects, internal links)
string | $a_xml | xml data of page |
Definition at line 359 of file class.ilPCMediaObject.php.
References ilPageContent\$node, ilObjMediaObject\_deleteAllUsages(), and ilObjMediaObject\_saveUsage().
Referenced by afterPageHistoryEntry(), and afterPageUpdate().
ilPCMediaObject::setClass | ( | $a_class | ) |
Set Style Class of table.
string | $a_class | class |
Definition at line 236 of file class.ilPCMediaObject.php.
ilPCMediaObject::setDom | ( | & | $a_dom | ) |
ilPCMediaObject::setHierId | ( | $a_hier_id | ) |
set hierarchical edit id
Reimplemented from ilPageContent.
Definition at line 59 of file class.ilPCMediaObject.php.
ilPCMediaObject::setMediaObject | ( | $a_mediaobject | ) |
Set Media Object.
object | $a_mediaobject | Media Object |
Definition at line 69 of file class.ilPCMediaObject.php.
Referenced by createMediaObject(), and readMediaObject().
ilPCMediaObject::setNode | ( | & | $a_node | ) |
Set xml node of page content.
object | $a_node | node object |
Reimplemented from ilPageContent.
Definition at line 42 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 210 of file class.ilPCMediaObject.php.
References getMediaObject().
ilPCMediaObject::$mob_node |
Definition at line 18 of file class.ilPCMediaObject.php.