ILIAS
release_4-3 Revision
|
Public Member Functions | |
__construct () | |
Constructor. | |
getId () | |
returns the hint id | |
setId ($id) | |
sets the passed hint id | |
getQuestionId () | |
returns the question id the hint currently relates to | |
setQuestionId ($questionId) | |
sets the passed question id so hint relates to it | |
getIndex () | |
returns the ordering index of hint | |
setIndex ($index) | |
sets the passed hint ordering index | |
getPoints () | |
returns the points to ground-off for this hint | |
setPoints ($points) | |
sets the passed points to ground-off for this hint | |
getText () | |
returns the hint text | |
setText ($text) | |
sets the passed hint text | |
load ($id) | |
loads the hint dataset with passed id from database and assigns it the to this hint object instance | |
save () | |
saves the current hint object state to database. | |
delete () | |
deletes the persisted hint object in database by deleting the hint dataset identified by hint id |
Static Public Member Functions | |
static | assignDbRow (self $questionHint, $hintDbRow) |
assigns the field elements of passed hint db row array to the corresponding hint object properties of passed hint object instance | |
static | deleteById ($hintId) |
deletes the persisted hint object in database by deleting the hint dataset identified by hint id | |
static | getInstanceById ($hintId) |
creates a hint object instance, loads the persisted hint dataset identified by passed hint id from database and assigns it as object state |
Private Member Functions | |
update () | |
persists the current object state to database by updating an existing dataset identified by hint id | |
insert () | |
persists the current object state to database by inserting a new dataset with a new hint id fetched from primary key sequence |
Private Attributes | |
$id = null | |
$questionId = null | |
$index = null | |
$points = null | |
$text = null |
Definition at line 15 of file class.ilAssQuestionHint.php.
ilAssQuestionHint::__construct | ( | ) |
|
static |
assigns the field elements of passed hint db row array to the corresponding hint object properties of passed hint object instance
public
self | $questionHint | |
array | $hintDbRow |
Definition at line 302 of file class.ilAssQuestionHint.php.
Referenced by ilAssQuestionHintList\getListByHintIds(), ilAssQuestionHintList\getListByQuestionId(), and load().
ilAssQuestionHint::delete | ( | ) |
deletes the persisted hint object in database by deleting the hint dataset identified by hint id
Definition at line 288 of file class.ilAssQuestionHint.php.
References deleteById(), and getId().
|
static |
deletes the persisted hint object in database by deleting the hint dataset identified by hint id
public ilDB $ilDB
integer | $hintId |
Definition at line 329 of file class.ilAssQuestionHint.php.
References $query.
Referenced by delete().
ilAssQuestionHint::getId | ( | ) |
returns the hint id
public
Definition at line 75 of file class.ilAssQuestionHint.php.
References $id.
Referenced by delete(), insert(), save(), ilAssQuestionHintTracking\storeRequest(), and update().
ilAssQuestionHint::getIndex | ( | ) |
returns the ordering index of hint
public
Definition at line 119 of file class.ilAssQuestionHint.php.
References $index.
Referenced by insert(), and update().
|
static |
creates a hint object instance, loads the persisted hint dataset identified by passed hint id from database and assigns it as object state
public
integer | $hintId |
Definition at line 352 of file class.ilAssQuestionHint.php.
Referenced by ilAssQuestionHintTracking\getNextRequestableHint(), ilAssQuestionHintsGUI\initHintOrderingClipboardNotification(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardAfterCmd(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardBeforeCmd(), and ilAssQuestionHintRequestGUI\showHintCmd().
ilAssQuestionHint::getPoints | ( | ) |
returns the points to ground-off for this hint
public
Definition at line 141 of file class.ilAssQuestionHint.php.
References $points.
Referenced by insert(), and update().
ilAssQuestionHint::getQuestionId | ( | ) |
returns the question id the hint currently relates to
public
Definition at line 97 of file class.ilAssQuestionHint.php.
References $questionId.
Referenced by insert(), and update().
ilAssQuestionHint::getText | ( | ) |
returns the hint text
public
Definition at line 163 of file class.ilAssQuestionHint.php.
References $text.
Referenced by insert(), and update().
|
private |
persists the current object state to database by inserting a new dataset with a new hint id fetched from primary key sequence
private ilDB $ilDB
Definition at line 267 of file class.ilAssQuestionHint.php.
References getId(), getIndex(), getPoints(), getQuestionId(), getText(), and setId().
Referenced by save().
ilAssQuestionHint::load | ( | $id | ) |
loads the hint dataset with passed id from database and assigns it the to this hint object instance
public ilDB $ilDB
integer | $id |
Definition at line 188 of file class.ilAssQuestionHint.php.
References $id, $query, $res, $row, and assignDbRow().
ilAssQuestionHint::save | ( | ) |
saves the current hint object state to database.
it performs an insert or update, depending on the current initialisation of the hint id property
a valid initialised id leads to an update, a non or invalid initialised id leads to an insert
public
Definition at line 227 of file class.ilAssQuestionHint.php.
References getId(), insert(), and update().
ilAssQuestionHint::setId | ( | $id | ) |
sets the passed hint id
public
integer | $id |
Definition at line 86 of file class.ilAssQuestionHint.php.
References $id.
Referenced by insert().
ilAssQuestionHint::setIndex | ( | $index | ) |
sets the passed hint ordering index
public
integer | $index |
Definition at line 130 of file class.ilAssQuestionHint.php.
References $index.
ilAssQuestionHint::setPoints | ( | $points | ) |
sets the passed points to ground-off for this hint
public
integer | $points |
Definition at line 152 of file class.ilAssQuestionHint.php.
References $points.
ilAssQuestionHint::setQuestionId | ( | $questionId | ) |
sets the passed question id so hint relates to it
public
integer | $questionId |
Definition at line 108 of file class.ilAssQuestionHint.php.
References $questionId.
ilAssQuestionHint::setText | ( | $text | ) |
sets the passed hint text
public
string | $text |
Definition at line 174 of file class.ilAssQuestionHint.php.
References $text.
|
private |
persists the current object state to database by updating an existing dataset identified by hint id
private ilDB $ilDB
Definition at line 241 of file class.ilAssQuestionHint.php.
References getId(), getIndex(), getPoints(), getQuestionId(), and getText().
Referenced by save().
|
private |
Definition at line 23 of file class.ilAssQuestionHint.php.
|
private |
Definition at line 40 of file class.ilAssQuestionHint.php.
Referenced by getIndex(), and setIndex().
|
private |
Definition at line 49 of file class.ilAssQuestionHint.php.
Referenced by getPoints(), and setPoints().
|
private |
Definition at line 31 of file class.ilAssQuestionHint.php.
Referenced by getQuestionId(), and setQuestionId().
|
private |
Definition at line 57 of file class.ilAssQuestionHint.php.