ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
init () | |
Init page content component. More... | |
setNode ($a_node) | |
Set content node. More... | |
create (&$a_pg_obj, $a_hier_id, $a_pc_id="") | |
Create new Tabs node. More... | |
setTabType ($a_type="HorizontalTabs") | |
Set type of tabs. More... | |
getTabType () | |
Get type of tabs. More... | |
setContentWidth ($a_val) | |
Set content width. More... | |
getContentWidth () | |
Get content width. More... | |
setContentHeight ($a_val) | |
Set content height. More... | |
getContentHeight () | |
Get content height. More... | |
setHorizontalAlign ($a_val) | |
Set horizontal align. More... | |
getHorizontalAlign () | |
Get horizontal align. More... | |
setBehavior ($a_val) | |
Set behavior. More... | |
getBehavior () | |
Get behavior. More... | |
getCaptions () | |
Get captions. More... | |
getCaption ($a_hier_id, $a_pc_id) | |
Get caption. More... | |
savePositions ($a_pos) | |
Save positions of tabs. More... | |
saveCaptions ($a_captions) | |
Add Tab items. More... | |
deleteTab ($a_hier_id, $a_pc_id) | |
Save positions of tabs. More... | |
addTab ($a_caption) | |
Add a tab. More... | |
setTemplate ($a_template) | |
Set template. More... | |
getTemplate () | |
Get template. More... | |
setAutoTime ($a_val) | |
Set auto animation waiting time. More... | |
getAutoTime () | |
Get auto animation waiting time. More... | |
setRandomStart ($a_val) | |
Set random start. More... | |
getRandomStart () | |
Get random start. More... | |
getJavascriptFiles ($a_mode) | |
Get Javascript files. More... | |
getCssFiles ($a_mode) | |
Get Javascript files. 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 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 | |
$tabs_node | |
const | ACCORDION_HOR = "HorizontalAccordion" |
const | ACCORDION_VER = "VerticalAccordion" |
const | CAROUSEL = "Carousel" |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom | |
$page_lang | |
Protected Member Functions | |
setTabsAttribute ($a_attr, $a_value) | |
Set attribute of tabs tag. More... | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ilPageContent | |
$file_download_link | |
$fullscreen_link | |
$sourcecode_download_script | |
$log | |
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 322 of file class.ilPCTabs.php.
References array, and ilDOMUtil\setFirstOptionalElement().
ilPCTabs::create | ( | & | $a_pg_obj, |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Create new Tabs node.
Definition at line 63 of file class.ilPCTabs.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
ilPCTabs::deleteTab | ( | $a_hier_id, | |
$a_pc_id | |||
) |
ilPCTabs::getAutoTime | ( | ) |
Get auto animation waiting time.
Definition at line 381 of file class.ilPCTabs.php.
ilPCTabs::getBehavior | ( | ) |
ilPCTabs::getCaption | ( | $a_hier_id, | |
$a_pc_id | |||
) |
ilPCTabs::getCaptions | ( | ) |
Get captions.
Definition at line 195 of file class.ilPCTabs.php.
References ilPageContent\$hier_id, $i, and array.
ilPCTabs::getContentHeight | ( | ) |
ilPCTabs::getContentWidth | ( | ) |
ilPCTabs::getCssFiles | ( | $a_mode | ) |
Get Javascript files.
Definition at line 418 of file class.ilPCTabs.php.
References ilAccordionGUI\getLocalCssFiles().
ilPCTabs::getHorizontalAlign | ( | ) |
Get horizontal align.
Definition at line 167 of file class.ilPCTabs.php.
ilPCTabs::getJavascriptFiles | ( | $a_mode | ) |
Get Javascript files.
Definition at line 409 of file class.ilPCTabs.php.
References ilAccordionGUI\getLocalJavascriptFiles().
|
static |
Get lang vars needed for editing.
Definition at line 360 of file class.ilPCTabs.php.
References array.
ilPCTabs::getRandomStart | ( | ) |
ilPCTabs::getTabType | ( | ) |
Get type of tabs.
Definition at line 107 of file class.ilPCTabs.php.
ilPCTabs::getTemplate | ( | ) |
ilPCTabs::init | ( | ) |
Init page content component.
Definition at line 46 of file class.ilPCTabs.php.
References ilPageContent\setType().
ilPCTabs::saveCaptions | ( | $a_captions | ) |
Add Tab items.
Definition at line 275 of file class.ilPCTabs.php.
References ilPageContent\$hier_id, $i, array, ilDOMUtil\deleteAllChildsByName(), and ilDOMUtil\setFirstOptionalElement().
ilPCTabs::savePositions | ( | $a_pos | ) |
Save positions of tabs.
Definition at line 249 of file class.ilPCTabs.php.
References ilPageContent\$hier_id, $i, and array.
ilPCTabs::setAutoTime | ( | $a_val | ) |
Set auto animation waiting time.
int | $a_val | auto animation time |
Definition at line 371 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setBehavior | ( | $a_val | ) |
Set behavior.
string | behavior |
Definition at line 177 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setContentHeight | ( | $a_val | ) |
Set content height.
int | content height |
Definition at line 137 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setContentWidth | ( | $a_val | ) |
Set content width.
int | content width |
Definition at line 117 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setHorizontalAlign | ( | $a_val | ) |
Set horizontal align.
string | horizontal align |
Definition at line 157 of file class.ilPCTabs.php.
References setTabsAttribute().
ilPCTabs::setNode | ( | $a_node | ) |
Set content node.
Definition at line 54 of file class.ilPCTabs.php.
ilPCTabs::setRandomStart | ( | $a_val | ) |
Set random start.
bool | $a_val | random start |
Definition at line 391 of file class.ilPCTabs.php.
References setTabsAttribute().
|
protected |
Set attribute of tabs tag.
string | attribute name |
string | attribute value |
Definition at line 77 of file class.ilPCTabs.php.
Referenced by setAutoTime(), setBehavior(), setContentHeight(), setContentWidth(), setHorizontalAlign(), setRandomStart(), and setTemplate().
ilPCTabs::setTabType | ( | $a_type = "HorizontalTabs" | ) |
Set type of tabs.
string | $a_type | ("HorizontalTabs" | "Accordion") |
Definition at line 93 of file class.ilPCTabs.php.
References $a_type, ACCORDION_HOR, ACCORDION_VER, and CAROUSEL.
ilPCTabs::setTemplate | ( | $a_template | ) |
Set template.
string | $a_template | template |
Definition at line 341 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\getFormValues(), ilPCTabsGUI\initForm(), ilPCTabsGUI\setPropertiesByForm(), and setTabType().
const ilPCTabs::ACCORDION_VER = "VerticalAccordion" |
Definition at line 40 of file class.ilPCTabs.php.
Referenced by ilPCTabsGUI\getFormValues(), ilPCTabsGUI\initForm(), ilPCTabsGUI\setPropertiesByForm(), and setTabType().
const ilPCTabs::CAROUSEL = "Carousel" |
Definition at line 41 of file class.ilPCTabs.php.
Referenced by ilPCTabsGUI\getFormValues(), ilPCTabsGUI\initForm(), ilPCTabsGUI\setPropertiesByForm(), and setTabType().