ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_id=0) | |
getActive () | |
getDescription () | |
setDescription (string $a_description) | |
getTitle () | |
setTitle (string $a_title) | |
getId () | |
setModules (array $a_values=[]) | |
getModules () | |
activate (bool $a_setting=true) | |
(De-)Activate layout More... | |
delete () | |
Delete page layout. More... | |
update () | |
Update page layout. More... | |
readObject () | |
getXMLContent () | |
copyXmlContent (bool $self_ass=true) | |
getPreview () | |
Static Public Member Functions | |
static | getLayoutsAsArray (int $a_active=0) |
static | getLayouts (bool $a_active=false, int $a_module=0) |
static | activeLayouts (int $a_module=0) |
Get active layouts. More... | |
static | import (string $a_filename, string $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 |
int | $layout_id = 0 |
string | $title = "" |
string | $description = "" |
bool | $active = false |
array | $modules = array() |
Protected Attributes | |
int | $special_page |
int | $style_id |
ilDBInterface | $db |
Private Member Functions | |
getXSLPath () | |
generatePreview () | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class for Page Layouts
Definition at line 24 of file class.ilPageLayout.php.
ilPageLayout::__construct | ( | int | $a_id = 0 | ) |
Definition at line 40 of file class.ilPageLayout.php.
ilPageLayout::activate | ( | bool | $a_setting = true | ) |
(De-)Activate layout
Definition at line 131 of file class.ilPageLayout.php.
References $db, $ilDB, and $query.
|
static |
Get active layouts.
Definition at line 315 of file class.ilPageLayout.php.
Referenced by ilChapterHierarchyFormGUI\__construct(), ilObjPortfolioGUI\initCreateForm(), ilObjPortfolioBaseGUI\initPageForm(), and ilPageLayoutGUI\setTabs().
ilPageLayout::copyXmlContent | ( | bool | $self_ass = true | ) |
Definition at line 210 of file class.ilPageLayout.php.
ilPageLayout::delete | ( | ) |
|
private |
Definition at line 226 of file class.ilPageLayout.php.
References $path, $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 | ( | ) |
|
static |
Definition at line 337 of file class.ilPageLayout.php.
Referenced by ilPageLayoutTableGUI\getPageLayouts(), ilPageLayoutAdministrationGUI\initAddPageLayoutForm(), ilPageLayoutGUI\initForm(), and setModules().
ilPageLayout::getDescription | ( | ) |
ilPageLayout::getId | ( | ) |
|
static |
Definition at line 276 of file class.ilPageLayout.php.
References $DIC, $ilDB, $query, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilPageLayoutAdministrationGUI\initAddPageLayoutForm().
|
static |
Definition at line 255 of file class.ilPageLayout.php.
References $DIC, $ilDB, $query, ilPageObject\_exists(), and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilPageLayoutTableGUI\getPageLayouts().
ilPageLayout::getModules | ( | ) |
ilPageLayout::getPreview | ( | ) |
Definition at line 216 of file class.ilPageLayout.php.
References generatePreview().
ilPageLayout::getTitle | ( | ) |
ilPageLayout::getXMLContent | ( | ) |
Definition at line 204 of file class.ilPageLayout.php.
Referenced by generatePreview().
|
private |
Definition at line 221 of file class.ilPageLayout.php.
Referenced by generatePreview().
|
static |
Import page layout.
Definition at line 324 of file class.ilPageLayout.php.
Referenced by ilPageLayoutAdministrationGUI\importPageLayout().
ilPageLayout::readObject | ( | ) |
Definition at line 181 of file class.ilPageLayout.php.
References $db, $ilDB, $query, and setModules().
ilPageLayout::setDescription | ( | string | $a_description | ) |
Definition at line 80 of file class.ilPageLayout.php.
ilPageLayout::setModules | ( | array | $a_values = [] | ) |
Definition at line 113 of file class.ilPageLayout.php.
References $valid, and getAvailableModules().
Referenced by readObject().
ilPageLayout::setTitle | ( | string | $a_title | ) |
Definition at line 90 of file class.ilPageLayout.php.
ilPageLayout::update | ( | ) |
Update page layout.
Definition at line 155 of file class.ilPageLayout.php.
References $db, $ilDB, and $query.
bool ilPageLayout::$active = false |
Definition at line 37 of file class.ilPageLayout.php.
Referenced by getActive().
|
protected |
Definition at line 33 of file class.ilPageLayout.php.
Referenced by activate(), delete(), readObject(), and update().
string ilPageLayout::$description = "" |
Definition at line 36 of file class.ilPageLayout.php.
Referenced by getDescription().
int ilPageLayout::$layout_id = 0 |
Definition at line 34 of file class.ilPageLayout.php.
Referenced by getId().
array ilPageLayout::$modules = array() |
Definition at line 38 of file class.ilPageLayout.php.
Referenced by getModules().
|
protected |
Definition at line 30 of file class.ilPageLayout.php.
|
protected |
Definition at line 31 of file class.ilPageLayout.php.
string ilPageLayout::$title = "" |
Definition at line 35 of file class.ilPageLayout.php.
Referenced by getTitle().
const ilPageLayout::MODULE_LM = 3 |
Definition at line 29 of file class.ilPageLayout.php.
Referenced by ilChapterHierarchyFormGUI\__construct(), ilPageLayoutTableGUI\fillRow(), ilStructureObjectGUI\initInsertTemplateForm(), and ilLMPageObjectGUI\initNewPageForm().
const ilPageLayout::MODULE_PORTFOLIO = 2 |
Definition at line 28 of file class.ilPageLayout.php.
Referenced by ilPageLayoutTableGUI\fillRow(), ilObjPortfolioGUI\initCreateForm(), and ilObjPortfolioBaseGUI\initPageForm().
const ilPageLayout::MODULE_SCORM = 1 |
Definition at line 27 of file class.ilPageLayout.php.
Referenced by ilPageLayoutTableGUI\fillRow().
const ilPageLayout::SEQ_TEMPLATE_DIR = './Modules/Scorm2004/templates/editor/page_layouts_temp/thumbnails' |
Definition at line 26 of file class.ilPageLayout.php.