ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilPCAMDPageList. More...
Public Member Functions | |
init () | |
Init page content component. | |
setNode (&$a_node) | |
Set node. | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
Create list node in xml. | |
setData (array $a_fields_data) | |
Set list settings. | |
getFieldValues ($a_data_id=null) | |
Get filter field values. | |
modifyPageContentPostXsl ($a_html, $a_mode) | |
Modify page content after xsl. | |
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) |
Static Public Member Functions | |
static | getLangVars () |
Get lang vars needed for editing. | |
static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
Handle copied content. | |
static | migrateField ($a_obj_id, $a_field_id, $old_option, $new_option, $a_is_multi=false) |
Migrate search/filter values on advmd change. | |
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 | 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. |
Data Fields | |
$dom | |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom |
Protected Member Functions | |
findPages ($a_list_id) | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. |
Class ilPCAMDPageList.
Advanced MD page list content object (see ILIAS DTD)
Definition at line 16 of file class.ilPCAMDPageList.php.
ilPCAMDPageList::create | ( | & | $a_pg_obj, |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Create list node in xml.
object | $a_pg_obj | Page Object |
string | $a_hier_id | Hierarchical ID |
Definition at line 52 of file class.ilPCAMDPageList.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
|
protected |
Definition at line 162 of file class.ilPCAMDPageList.php.
References $ilDB, $row, ilAdvancedMDRecord\_getSelectedRecordsByObject(), getFieldValues(), ilADTFactory\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByRecordId(), and ilPageContent\getPage().
Referenced by modifyPageContentPostXsl().
ilPCAMDPageList::getFieldValues | ( | $a_data_id = null | ) |
Get filter field values.
int | $a_data_id |
Definition at line 96 of file class.ilPCAMDPageList.php.
References $ilDB, $res, and $row.
Referenced by findPages().
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 32 of file class.ilPCAMDPageList.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 | dom document |
Reimplemented from ilPageContent.
Definition at line 123 of file class.ilPCAMDPageList.php.
References $ilDB, ilPageContent\$node, and $row.
ilPCAMDPageList::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Definition at line 23 of file class.ilPCAMDPageList.php.
References ilPageContent\setType().
|
static |
Migrate search/filter values on advmd change.
int | $a_obj_id | |
int | $a_field_id | |
string | $old_option | |
string | $new_option | |
bool | $a_is_multi |
Definition at line 282 of file class.ilPCAMDPageList.php.
Referenced by ilAdvancedMDFieldDefinitionSelectMulti\update(), and ilAdvancedMDFieldDefinitionSelect\update().
ilPCAMDPageList::modifyPageContentPostXsl | ( | $a_output, | |
$a_mode | |||
) |
Modify page content after xsl.
string | $a_output |
Reimplemented from ilPageContent.
Definition at line 210 of file class.ilPCAMDPageList.php.
References $lng, findPages(), ilPageContent\getPage(), and ilWikiUtil\makeLink().
ilPCAMDPageList::setData | ( | array | $a_fields_data | ) |
Set list settings.
Definition at line 63 of file class.ilPCAMDPageList.php.
References $ilDB.
ilPCAMDPageList::setNode | ( | & | $a_node | ) |
Set node.
Reimplemented from ilPageContent.
Definition at line 40 of file class.ilPCAMDPageList.php.
ilPCAMDPageList::$dom |
Definition at line 18 of file class.ilPCAMDPageList.php.