ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilPageLayout. More...
Public Member Functions | |
__construct ($a_id=null) | |
getActive () | |
getDescription () | |
setDescription ($a_description) | |
getTitle () | |
setTitle ($a_title) | |
getId () | |
setStyleId ($a_val) | |
Set style id. More... | |
getStyleId () | |
Get style id. More... | |
setSpecialPage ($a_val) | |
Set special page. More... | |
getSpecialPage () | |
Get special page. More... | |
setModules (array $a_values=null) | |
Set modules. More... | |
getModules () | |
Get modules. More... | |
activate ($a_setting=true) | |
(De-)Activate layout More... | |
delete () | |
Delete page layout. More... | |
update () | |
Update page layout. More... | |
readObject () | |
Read page layout. More... | |
getXMLContent () | |
Get xml content. More... | |
getPreview () | |
Get preview. More... | |
Static Public Member Functions | |
static | getLayoutsAsArray ($a_active=0) |
Static access functions. More... | |
static | getLayouts ($a_active=false, $a_special_page=false, $a_module=null) |
Get layouts. More... | |
static | activeLayouts ($a_special_page=false, $a_module=null) |
Get active layouts. More... | |
static | import ($a_filename, $a_filepath) |
Import page layout. More... | |
static | getAvailableModules () |
Data Fields | |
const | SEQ_TEMPLATE_DIR = './Modules/Scorm2004/templates/editor/page_layouts_temp/thumbnails' |
const | MODULE_SCORM = 1 |
const | MODULE_PORTFOLIO = 2 |
const | MODULE_LM = 3 |
$layout_id = null | |
$title = null | |
$description = null | |
$active = null | |
$modules = array() | |
Protected Attributes | |
$db | |
Private Member Functions | |
getXSLPath () | |
generatePreview () | |
Class ilPageLayout.
Class for Page Layouts
Definition at line 14 of file class.ilPageLayout.php.
ilPageLayout::__construct | ( | $a_id = null | ) |
Definition at line 34 of file class.ilPageLayout.php.
ilPageLayout::activate | ( | $a_setting = true | ) |
|
static |
Get active layouts.
Definition at line 345 of file class.ilPageLayout.php.
Referenced by ilChapterHierarchyFormGUI\__construct(), ilSCORM2004OrganizationHFormGUI\getMenuItems(), ilObjPortfolioGUI\initCreateForm(), ilObjPortfolioBaseGUI\initPageForm(), ilObjSCORM2004LearningModuleGUI\insertTemplateGUI(), and ilPageLayoutGUI\setTabs().
ilPageLayout::delete | ( | ) |
|
private |
Definition at line 256 of file class.ilPageLayout.php.
References $res, $xml, DOMXML_LOAD_PARSING, domxml_open_mem(), getXMLContent(), getXSLPath(), xpath_eval(), xpath_new_context(), xslt_create(), xslt_error(), and xslt_free().
Referenced by getPreview().
ilPageLayout::getActive | ( | ) |
Definition at line 62 of file class.ilPageLayout.php.
References $active.
|
static |
Definition at line 370 of file class.ilPageLayout.php.
Referenced by ilPageLayoutTableGUI\getPageLayouts(), ilPageLayoutAdministrationGUI\initAddPageLayoutForm(), ilPageLayoutGUI\initForm(), and setModules().
ilPageLayout::getDescription | ( | ) |
ilPageLayout::getId | ( | ) |
|
static |
Get layouts.
Definition at line 310 of file class.ilPageLayout.php.
References $DIC, $ilDB, $query, $result, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilPageLayoutAdministrationGUI\initAddPageLayoutForm().
|
static |
Static access functions.
Definition at line 290 of file class.ilPageLayout.php.
References $active, $DIC, $ilDB, $query, $result, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilPageLayoutTableGUI\getPageLayouts().
ilPageLayout::getModules | ( | ) |
ilPageLayout::getPreview | ( | ) |
Get preview.
Definition at line 245 of file class.ilPageLayout.php.
References generatePreview().
ilPageLayout::getSpecialPage | ( | ) |
Get special page.
Definition at line 119 of file class.ilPageLayout.php.
Referenced by update().
ilPageLayout::getStyleId | ( | ) |
Get style id.
Definition at line 103 of file class.ilPageLayout.php.
Referenced by update().
ilPageLayout::getTitle | ( | ) |
Definition at line 77 of file class.ilPageLayout.php.
References $title.
ilPageLayout::getXMLContent | ( | ) |
Get xml content.
Definition at line 234 of file class.ilPageLayout.php.
Referenced by generatePreview().
|
private |
Definition at line 251 of file class.ilPageLayout.php.
Referenced by generatePreview().
|
static |
Import page layout.
string | $a_filename | file name |
string | $a_fiepath | complete path (incl. name) to file |
Definition at line 358 of file class.ilPageLayout.php.
Referenced by ilPageLayoutAdministrationGUI\importPageLayout().
ilPageLayout::readObject | ( | ) |
Read page layout.
Definition at line 204 of file class.ilPageLayout.php.
References $db, $ilDB, $query, $result, setModules(), setSpecialPage(), and setStyleId().
ilPageLayout::setDescription | ( | $a_description | ) |
Definition at line 72 of file class.ilPageLayout.php.
ilPageLayout::setModules | ( | array | $a_values = null | ) |
Set modules.
Definition at line 127 of file class.ilPageLayout.php.
References $valid, and getAvailableModules().
Referenced by readObject().
ilPageLayout::setSpecialPage | ( | $a_val | ) |
Set special page.
Definition at line 111 of file class.ilPageLayout.php.
Referenced by readObject().
ilPageLayout::setStyleId | ( | $a_val | ) |
Set style id.
Definition at line 95 of file class.ilPageLayout.php.
Referenced by readObject().
ilPageLayout::setTitle | ( | $a_title | ) |
Definition at line 82 of file class.ilPageLayout.php.
ilPageLayout::update | ( | ) |
Update page layout.
Definition at line 173 of file class.ilPageLayout.php.
References $db, $ilDB, $query, $result, getSpecialPage(), and getStyleId().
ilPageLayout::$active = null |
Definition at line 31 of file class.ilPageLayout.php.
Referenced by getActive(), and getLayoutsAsArray().
|
protected |
Definition at line 19 of file class.ilPageLayout.php.
Referenced by activate(), delete(), readObject(), and update().
ilPageLayout::$description = null |
Definition at line 30 of file class.ilPageLayout.php.
Referenced by getDescription().
ilPageLayout::$layout_id = null |
Definition at line 28 of file class.ilPageLayout.php.
Referenced by getId().
ilPageLayout::$modules = array() |
Definition at line 32 of file class.ilPageLayout.php.
Referenced by getModules().
ilPageLayout::$title = null |
Definition at line 29 of file class.ilPageLayout.php.
Referenced by getTitle().
const ilPageLayout::MODULE_LM = 3 |
Definition at line 26 of file class.ilPageLayout.php.
Referenced by ilChapterHierarchyFormGUI\__construct(), ilPageLayoutTableGUI\fillRow(), ilStructureObjectGUI\initInsertTemplateForm(), and ilLMPageObjectGUI\initNewPageForm().
const ilPageLayout::MODULE_PORTFOLIO = 2 |
Definition at line 25 of file class.ilPageLayout.php.
Referenced by ilPageLayoutTableGUI\fillRow(), ilObjPortfolioGUI\initCreateForm(), and ilObjPortfolioBaseGUI\initPageForm().
const ilPageLayout::MODULE_SCORM = 1 |
Definition at line 24 of file class.ilPageLayout.php.
Referenced by ilPageLayoutTableGUI\fillRow(), and ilObjSCORM2004LearningModuleGUI\insertTemplateGUI().
const ilPageLayout::SEQ_TEMPLATE_DIR = './Modules/Scorm2004/templates/editor/page_layouts_temp/thumbnails' |
Definition at line 22 of file class.ilPageLayout.php.