ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilPCFileList. More...
Public Member Functions | |
init () | |
Init page content component. | |
setNode (&$a_node) | |
Set xml node of page content. | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
appendItem ($a_id, $a_location, $a_format) | |
setListTitle ($a_title, $a_language) | |
getListTitle () | |
getLanguage () | |
getFileList () | |
Get list of files. | |
deleteFileItems ($a_ids) | |
Delete file items. | |
savePositions ($a_pos) | |
Save positions of file items. | |
getAllClasses () | |
Get all style classes. | |
saveStyleClasses ($a_class) | |
Save style classes of file items. | |
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. | |
getOnloadCode () | |
Get on load code. | |
setHierId ($a_hier_id) | |
Set hierarchical ID in xml structure. | |
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 | saveFileUsage ($a_page, $a_domdoc, $a_old_nr=0) |
Save file usages. | |
static | collectFileItems ($a_page, $a_domdoc) |
Get all file items that are used within the page. | |
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 | |
$list_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 ilPCFileList.
File List content object (see ILIAS DTD)
Definition at line 18 of file class.ilPCFileList.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 324 of file class.ilPCFileList.php.
References saveFileUsage().
|
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 262 of file class.ilPCFileList.php.
References $file, ilObject\_exists(), ilObjFile\_getFilesOfObject(), ilObject\_lookupType(), and saveFileUsage().
ilPCFileList::appendItem | ( | $a_id, | |
$a_location, | |||
$a_format | |||
) |
Definition at line 54 of file class.ilPCFileList.php.
|
static |
Before page is being deleted.
object | $a_page | page object |
Reimplemented from ilPageContent.
Definition at line 296 of file class.ilPCFileList.php.
References ilObjFile\_deleteAllUsages(), ilObject\_exists(), and collectFileItems().
|
static |
Get all file items that are used within the page.
Definition at line 347 of file class.ilPCFileList.php.
References ilPageContent\$node, and $t.
Referenced by beforePageDelete(), ilPageObjectGUI\downloadFile(), ilSCORM2004Asset\exportHTMLPageObjects(), ilObjGlossary\exportXML(), ilGlossaryDefinition\exportXMLDefinition(), ilSCORM2004Page\exportXMLPageContent(), ilLMPageObject\exportXMLPageContent(), ilObjQuestionPool\exportXMLPageObjects(), ilObjTest\exportXMLPageObjects(), ilSCORM2004ScoGUI\getExportResources(), saveFileUsage(), and ilContObjectManifestBuilder\writeResources().
ilPCFileList::create | ( | & | $a_pg_obj, |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Definition at line 36 of file class.ilPCFileList.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
ilPCFileList::deleteFileItems | ( | $a_ids | ) |
Delete file items.
Definition at line 151 of file class.ilPCFileList.php.
References ilPageContent\$hier_id.
ilPCFileList::getAllClasses | ( | ) |
Get all style classes.
Definition at line 208 of file class.ilPCFileList.php.
ilPCFileList::getFileList | ( | ) |
Get list of files.
Definition at line 114 of file class.ilPCFileList.php.
References ilPageContent\$hier_id.
ilPCFileList::getLanguage | ( | ) |
Definition at line 98 of file class.ilPCFileList.php.
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 249 of file class.ilPCFileList.php.
ilPCFileList::getListTitle | ( | ) |
Definition at line 85 of file class.ilPCFileList.php.
ilPCFileList::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Definition at line 25 of file class.ilPCFileList.php.
References ilPageContent\setType().
|
static |
Save file usages.
Definition at line 332 of file class.ilPCFileList.php.
References ilObjFile\_deleteAllUsages(), ilObjFile\_saveUsage(), and collectFileItems().
Referenced by afterPageHistoryEntry(), and afterPageUpdate().
ilPCFileList::savePositions | ( | $a_pos | ) |
Save positions of file items.
Definition at line 177 of file class.ilPCFileList.php.
References ilPageContent\$hier_id.
ilPCFileList::saveStyleClasses | ( | $a_class | ) |
Save style classes of file items.
Definition at line 230 of file class.ilPCFileList.php.
ilPCFileList::setListTitle | ( | $a_title, | |
$a_language | |||
) |
Definition at line 78 of file class.ilPCFileList.php.
References ilDOMUtil\setFirstOptionalElement().
ilPCFileList::setNode | ( | & | $a_node | ) |
Set xml node of page content.
object | $a_node | node object |
Reimplemented from ilPageContent.
Definition at line 30 of file class.ilPCFileList.php.
ilPCFileList::$list_node |
Definition at line 20 of file class.ilPCFileList.php.