ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
XHTML Page class. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
getId () | |
Get page ID. More... | |
setId ($a_id) | |
Set page ID. More... | |
getContent () | |
Get content of page. More... | |
setContent ($a_content) | |
Set content of page. More... | |
read () | |
Read page data from database. More... | |
save () | |
Save the page. More... | |
undo () | |
Undo last change. More... | |
clear () | |
Clear page. More... | |
Static Public Member Functions | |
static | _lookupContent ($a_id) |
Lookup Content. More... | |
static | _lookupSavedContent ($a_id) |
Lookup Saved Content. More... | |
Data Fields | |
$id = 0 | |
$content = "" | |
XHTML Page class.
Should be used to store XHTML pages created by tiny (e.g. for ategories).
Definition at line 16 of file class.ilXHTMLPage.php.
ilXHTMLPage::__construct | ( | $a_id = 0 | ) |
Constructor.
int | $a_id | page ID |
Definition at line 26 of file class.ilXHTMLPage.php.
References read(), and setId().
|
static |
Lookup Content.
Definition at line 93 of file class.ilXHTMLPage.php.
References $ilDB.
Referenced by save(), ilXHTMLPageTest\testSetGetSettings(), and undo().
|
static |
Lookup Saved Content.
Definition at line 108 of file class.ilXHTMLPage.php.
References $ilDB.
Referenced by ilXHTMLPageTest\testSetGetSettings(), and undo().
ilXHTMLPage::clear | ( | ) |
Clear page.
Definition at line 170 of file class.ilXHTMLPage.php.
References $ilDB, getId(), save(), and setContent().
ilXHTMLPage::getContent | ( | ) |
Get content of page.
Definition at line 60 of file class.ilXHTMLPage.php.
References $content.
Referenced by save().
ilXHTMLPage::getId | ( | ) |
ilXHTMLPage::read | ( | ) |
Read page data from database.
Definition at line 78 of file class.ilXHTMLPage.php.
References $ilDB, and setContent().
Referenced by __construct().
ilXHTMLPage::save | ( | ) |
Save the page.
Definition at line 123 of file class.ilXHTMLPage.php.
References $ilDB, _lookupContent(), array, getContent(), getId(), and setId().
Referenced by clear().
ilXHTMLPage::setContent | ( | $a_content | ) |
Set content of page.
string | $a_content | page content |
Definition at line 70 of file class.ilXHTMLPage.php.
References $a_content.
Referenced by clear(), and read().
ilXHTMLPage::setId | ( | $a_id | ) |
Set page ID.
int | $a_id | page ID |
Definition at line 50 of file class.ilXHTMLPage.php.
Referenced by __construct(), and save().
ilXHTMLPage::undo | ( | ) |
Undo last change.
Definition at line 150 of file class.ilXHTMLPage.php.
References $ilDB, _lookupContent(), _lookupSavedContent(), array, and getId().
ilXHTMLPage::$content = "" |
Definition at line 19 of file class.ilXHTMLPage.php.
Referenced by getContent().
ilXHTMLPage::$id = 0 |
Definition at line 18 of file class.ilXHTMLPage.php.
Referenced by getId().