ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilPCFileList. More...
Public Member Functions | |
init () | |
Init page content component. More... | |
setNode ($a_node) | |
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. More... | |
deleteFileItems ($a_ids) | |
Delete file items. More... | |
savePositions ($a_pos) | |
Save positions of file items. More... | |
getAllClasses () | |
Get all style classes. More... | |
saveStyleClasses ($a_class) | |
Save style classes of file items. 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 | saveFileUsage ($a_page, $a_domdoc, $a_old_nr=0) |
Save file usages. More... | |
static | collectFileItems ($a_page, $a_domdoc) |
Get all file items that are used within the page. 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... | |
Data Fields | |
$list_node | |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom | |
$page_lang | |
Additional Inherited Members | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. More... | |
Protected Attributes inherited from ilPageContent | |
$file_download_link | |
$fullscreen_link | |
$sourcecode_download_script | |
$log | |
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 |
Definition at line 312 of file class.ilPCFileList.php.
|
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 |
Definition at line 250 of file class.ilPCFileList.php.
References $file, ilObject\_exists(), ilObjFile\_getFilesOfObject(), and ilObject\_lookupType().
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 |
Definition at line 282 of file class.ilPCFileList.php.
References $files, ilObjFile\_deleteAllUsages(), and ilObject\_exists().
|
static |
Get all file items that are used within the page.
Definition at line 339 of file class.ilPCFileList.php.
References ilPageContent\$node, $t, and array.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), ilObjGlossary\exportXML(), ilGlossaryDefinition\exportXMLDefinition(), ilSCORM2004Page\exportXMLPageContent(), ilLMPageObject\exportXMLPageContent(), ilObjQuestionPool\exportXMLPageObjects(), ilObjTest\exportXMLPageObjects(), ilSCORM2004ScoGUI\getExportResources(), 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 148 of file class.ilPCFileList.php.
References $files, ilPageContent\$hier_id, $i, $id, and array.
ilPCFileList::getAllClasses | ( | ) |
ilPCFileList::getFileList | ( | ) |
Get list of files.
Definition at line 115 of file class.ilPCFileList.php.
References $files, ilPageContent\$hier_id, $i, $id, and array.
ilPCFileList::getLanguage | ( | ) |
Definition at line 101 of file class.ilPCFileList.php.
References $i.
|
static |
Get lang vars needed for editing.
Definition at line 237 of file class.ilPCFileList.php.
References array.
ilPCFileList::getListTitle | ( | ) |
Definition at line 90 of file class.ilPCFileList.php.
References $i.
ilPCFileList::init | ( | ) |
Init page content component.
Definition at line 25 of file class.ilPCFileList.php.
References ilPageContent\setType().
|
static |
Save file usages.
Definition at line 320 of file class.ilPCFileList.php.
References ilObjFile\_deleteAllUsages(), and ilObjFile\_saveUsage().
ilPCFileList::savePositions | ( | $a_pos | ) |
Save positions of file items.
Definition at line 171 of file class.ilPCFileList.php.
References ilPageContent\$hier_id, $i, $id, and array.
ilPCFileList::saveStyleClasses | ( | $a_class | ) |
Save style classes of file items.
Definition at line 218 of file class.ilPCFileList.php.
References $i.
ilPCFileList::setListTitle | ( | $a_title, | |
$a_language | |||
) |
Definition at line 78 of file class.ilPCFileList.php.
References array, and ilDOMUtil\setFirstOptionalElement().
ilPCFileList::setNode | ( | $a_node | ) |
Definition at line 30 of file class.ilPCFileList.php.
ilPCFileList::$list_node |
Definition at line 20 of file class.ilPCFileList.php.