ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilRatingCategory. More...
Public Member Functions | |
__construct ($a_id=null) | |
Constructor. More... | |
setId ($a_value) | |
Set id. More... | |
getId () | |
Get id. More... | |
setParentId ($a_value) | |
Set parent id. More... | |
getParentId () | |
Get parent object id. More... | |
setTitle ($a_value) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setDescription ($a_value) | |
Set description. More... | |
getDescription () | |
Get description. More... | |
setPosition ($a_value) | |
Set position. More... | |
getPosition () | |
Get position. More... | |
update () | |
Update db entry. More... | |
save () | |
Create db entry. More... | |
Static Public Member Functions | |
static | delete ($a_id) |
Delete db entry. More... | |
static | getAllForObject ($a_parent_obj_id) |
Get all categories for object. More... | |
static | deleteForObject ($a_parent_obj_id) |
Delete all categories for object. More... | |
Protected Member Functions | |
read ($a_id) | |
Load db entry. More... | |
getDBProperties () | |
Parse properties into db definition. More... | |
Protected Attributes | |
$db | |
$id | |
$parent_id | |
$title | |
$description | |
$pos | |
ilRatingCategory::__construct | ( | $a_id = null | ) |
Constructor.
int | $a_id |
Definition at line 33 of file class.ilRatingCategory.php.
|
static |
Delete db entry.
int | $a_id |
Definition at line 229 of file class.ilRatingCategory.php.
Referenced by ilRatingCategoryGUI\delete().
|
static |
Delete all categories for object.
int | $a_parent_obj_id |
Definition at line 276 of file class.ilRatingCategory.php.
|
static |
Get all categories for object.
int | $a_parent_obj_id |
Definition at line 252 of file class.ilRatingCategory.php.
References $DIC, $ilDB, and $row.
Referenced by ilObjWiki\cloneObject(), ilRatingCategoryGUI\delete(), ilRatingCategoryGUI\export(), ilRatingGUI\getBlockHTML(), ilRatingGUI\getHTML(), and ilRatingCategoryTableGUI\getItems().
|
protected |
Parse properties into db definition.
Definition at line 171 of file class.ilRatingCategory.php.
References getDescription(), getPosition(), and getTitle().
Referenced by save(), and update().
ilRatingCategory::getDescription | ( | ) |
Get description.
Definition at line 116 of file class.ilRatingCategory.php.
References $description.
Referenced by getDBProperties().
ilRatingCategory::getId | ( | ) |
Get id.
Definition at line 56 of file class.ilRatingCategory.php.
References $id.
Referenced by update().
ilRatingCategory::getParentId | ( | ) |
Get parent object id.
Definition at line 76 of file class.ilRatingCategory.php.
References $parent_id.
Referenced by save().
ilRatingCategory::getPosition | ( | ) |
Get position.
Definition at line 136 of file class.ilRatingCategory.php.
References $pos.
Referenced by getDBProperties().
ilRatingCategory::getTitle | ( | ) |
Get title.
Definition at line 96 of file class.ilRatingCategory.php.
References $title.
Referenced by getDBProperties().
|
protected |
Load db entry.
int | $a_id |
Definition at line 146 of file class.ilRatingCategory.php.
References $db, $ilDB, $row, setDescription(), setId(), setParentId(), setPosition(), and setTitle().
Referenced by __construct().
ilRatingCategory::save | ( | ) |
Create db entry.
Definition at line 202 of file class.ilRatingCategory.php.
References $db, $id, $ilDB, $pos, getDBProperties(), getParentId(), setId(), and setPosition().
ilRatingCategory::setDescription | ( | $a_value | ) |
Set description.
string | $a_value |
Definition at line 106 of file class.ilRatingCategory.php.
Referenced by read().
ilRatingCategory::setId | ( | $a_value | ) |
Set id.
int | $a_value |
Definition at line 46 of file class.ilRatingCategory.php.
Referenced by read(), and save().
ilRatingCategory::setParentId | ( | $a_value | ) |
Set parent id.
int | $a_value |
Definition at line 66 of file class.ilRatingCategory.php.
Referenced by read().
ilRatingCategory::setPosition | ( | $a_value | ) |
Set position.
int | $a_value |
Definition at line 126 of file class.ilRatingCategory.php.
Referenced by read(), and save().
ilRatingCategory::setTitle | ( | $a_value | ) |
Set title.
string | $a_value |
Definition at line 86 of file class.ilRatingCategory.php.
Referenced by read().
ilRatingCategory::update | ( | ) |
Update db entry.
Definition at line 184 of file class.ilRatingCategory.php.
References $db, $ilDB, getDBProperties(), and getId().
|
protected |
Definition at line 20 of file class.ilRatingCategory.php.
|
protected |
Definition at line 25 of file class.ilRatingCategory.php.
Referenced by getDescription().
|
protected |
Definition at line 22 of file class.ilRatingCategory.php.
|
protected |
Definition at line 23 of file class.ilRatingCategory.php.
Referenced by getParentId().
|
protected |
Definition at line 26 of file class.ilRatingCategory.php.
Referenced by getPosition(), and save().
|
protected |
Definition at line 24 of file class.ilRatingCategory.php.
Referenced by getTitle().