ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 = "" | |
Protected Attributes | |
$db | |
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 31 of file class.ilXHTMLPage.php.
References $DIC, read(), and setId().
|
static |
Lookup Content.
Definition at line 99 of file class.ilXHTMLPage.php.
Referenced by save(), ilXHTMLPageTest\testSetGetSettings(), and undo().
|
static |
Lookup Saved Content.
Definition at line 115 of file class.ilXHTMLPage.php.
Referenced by ilXHTMLPageTest\testSetGetSettings(), and undo().
ilXHTMLPage::clear | ( | ) |
Clear page.
Definition at line 174 of file class.ilXHTMLPage.php.
References $db, $ilDB, getId(), save(), and setContent().
ilXHTMLPage::getContent | ( | ) |
Get content of page.
Definition at line 67 of file class.ilXHTMLPage.php.
References $content.
Referenced by save().
ilXHTMLPage::getId | ( | ) |
ilXHTMLPage::read | ( | ) |
Read page data from database.
Definition at line 85 of file class.ilXHTMLPage.php.
References $db, $ilDB, and setContent().
Referenced by __construct().
ilXHTMLPage::save | ( | ) |
Save the page.
Definition at line 131 of file class.ilXHTMLPage.php.
References $db, $ilDB, _lookupContent(), getContent(), getId(), and setId().
Referenced by clear().
ilXHTMLPage::setContent | ( | $a_content | ) |
Set content of page.
string | $a_content | page content |
Definition at line 77 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 57 of file class.ilXHTMLPage.php.
Referenced by __construct(), and save().
ilXHTMLPage::undo | ( | ) |
Undo last change.
Definition at line 155 of file class.ilXHTMLPage.php.
References $content, $db, $ilDB, _lookupContent(), _lookupSavedContent(), and getId().
ilXHTMLPage::$content = "" |
Definition at line 24 of file class.ilXHTMLPage.php.
Referenced by getContent(), and undo().
|
protected |
ilXHTMLPage::$id = 0 |
Definition at line 23 of file class.ilXHTMLPage.php.
Referenced by getId().