ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
init () | |
Init page content component. | |
setNode (&$a_node) | |
Set content node. | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
Create new Tabs node. | |
setTabType ($a_type="HorizontalTabs") | |
Set type of tabs. | |
getTabType () | |
Get type of tabs. | |
setContentWidth ($a_val) | |
Set content width. | |
getContentWidth () | |
Get content width. | |
setContentHeight ($a_val) | |
Set content height. | |
getContentHeight () | |
Get content height. | |
setHorizontalAlign ($a_val) | |
Set horizontal align. | |
getHorizontalAlign () | |
Get horizontal align. | |
setBehavior ($a_val) | |
Set behavior. | |
getBehavior () | |
Get behavior. | |
getCaptions () | |
Get captions. | |
getCaption ($a_hier_id, $a_pc_id) | |
Get caption. | |
savePositions ($a_pos) | |
Save positions of tabs. | |
saveCaptions ($a_captions) | |
Add Tab items. | |
deleteTab ($a_hier_id, $a_pc_id) | |
Save positions of tabs. | |
addTab ($a_caption) | |
Add a tab. | |
setTemplate ($a_template) | |
Set template. | |
getTemplate () | |
Get template. | |
Public Member Functions inherited from ilPageContent | |
__construct ($a_dom) | |
Constructor. | |
getType () | |
Get type of page content. | |
& | getNode () |
Get xml node of page content. | |
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. | |
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) |
Data Fields | |
$tabs_node | |
const | ACCORDION_HOR = "HorizontalAccordion" |
const | ACCORDION_VER = "VerticalAccordion" |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom |
Protected Member Functions | |
setTabsAttribute ($a_attr, $a_value) | |
Set attribute of tabs tag. | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. |
Additional Inherited Members | |
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. |
Class ilPCTabs.
Tabbed contents (see ILIAS DTD)
Definition at line 36 of file class.ilPCTabs.php.
ilPCTabs::addTab | ( | $a_caption | ) |
Add a tab.
Definition at line 340 of file class.ilPCTabs.php.
References ilDOMUtil\setFirstOptionalElement().
ilPCTabs::create | ( | & | $a_pg_obj, |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Create new Tabs node.
Definition at line 62 of file class.ilPCTabs.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
ilPCTabs::deleteTab | ( | $a_hier_id, | |
$a_pc_id | |||
) |
Save positions of tabs.
Definition at line 319 of file class.ilPCTabs.php.
ilPCTabs::getBehavior | ( | ) |
Get behavior.
Definition at line 190 of file class.ilPCTabs.php.
ilPCTabs::getCaption | ( | $a_hier_id, | |
$a_pc_id | |||
) |
Get caption.
Definition at line 231 of file class.ilPCTabs.php.
ilPCTabs::getCaptions | ( | ) |
Get captions.
Definition at line 198 of file class.ilPCTabs.php.
References ilPageContent\$hier_id.
ilPCTabs::getContentHeight | ( | ) |
Get content height.
Definition at line 150 of file class.ilPCTabs.php.
ilPCTabs::getContentWidth | ( | ) |
Get content width.
Definition at line 130 of file class.ilPCTabs.php.
ilPCTabs::getHorizontalAlign | ( | ) |
Get horizontal align.
Definition at line 170 of file class.ilPCTabs.php.
ilPCTabs::getTabType | ( | ) |
Get type of tabs.
Definition at line 110 of file class.ilPCTabs.php.
ilPCTabs::getTemplate | ( | ) |
Get template.
Definition at line 363 of file class.ilPCTabs.php.
ilPCTabs::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Definition at line 45 of file class.ilPCTabs.php.
References ilPageContent\setType().
ilPCTabs::saveCaptions | ( | $a_captions | ) |
Add Tab items.
Definition at line 291 of file class.ilPCTabs.php.
References ilPageContent\$hier_id, ilDOMUtil\deleteAllChildsByName(), and ilDOMUtil\setFirstOptionalElement().
ilPCTabs::savePositions | ( | $a_pos | ) |
Save positions of tabs.
Definition at line 261 of file class.ilPCTabs.php.
References ilPageContent\$hier_id.
ilPCTabs::setBehavior | ( | $a_val | ) |
Set behavior.
string | behavior |
Definition at line 180 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setContentHeight | ( | $a_val | ) |
Set content height.
int | content height |
Definition at line 140 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setContentWidth | ( | $a_val | ) |
Set content width.
int | content width |
Definition at line 120 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setHorizontalAlign | ( | $a_val | ) |
Set horizontal align.
string | horizontal align |
Definition at line 160 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setNode | ( | & | $a_node | ) |
Set content node.
Reimplemented from ilPageContent.
Definition at line 53 of file class.ilPCTabs.php.
|
protected |
Set attribute of tabs tag.
string | attribute name |
string | attribute value |
Definition at line 76 of file class.ilPCTabs.php.
Referenced by setBehavior(), setContentHeight(), setContentWidth(), setHorizontalAlign(), and setTemplate().
ilPCTabs::setTabType | ( | $a_type = "HorizontalTabs" | ) |
Set type of tabs.
string | $a_type | ("HorizontalTabs" | "Accordion") |
Definition at line 96 of file class.ilPCTabs.php.
References ACCORDION_HOR, and ACCORDION_VER.
ilPCTabs::setTemplate | ( | $a_template | ) |
Set template.
string | $a_template | template |
Definition at line 353 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::$tabs_node |
Definition at line 38 of file class.ilPCTabs.php.
const ilPCTabs::ACCORDION_HOR = "HorizontalAccordion" |
Definition at line 39 of file class.ilPCTabs.php.
Referenced by ilPCTabsGUI\create(), ilPCTabsGUI\getFormValues(), ilPCTabsGUI\initForm(), setTabType(), and ilPCTabsGUI\update().
const ilPCTabs::ACCORDION_VER = "VerticalAccordion" |
Definition at line 40 of file class.ilPCTabs.php.
Referenced by ilPCTabsGUI\create(), ilPCTabsGUI\getFormValues(), ilPCTabsGUI\initForm(), setTabType(), and ilPCTabsGUI\update().