|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Collaboration diagram for ilAssQuestionHint:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getId () | |
| returns the hint id More... | |
| setId ($id) | |
| sets the passed hint id More... | |
| getQuestionId () | |
| returns the question id the hint currently relates to More... | |
| setQuestionId ($questionId) | |
| sets the passed question id so hint relates to it More... | |
| getIndex () | |
| returns the ordering index of hint More... | |
| setIndex ($index) | |
| sets the passed hint ordering index More... | |
| getPoints () | |
| returns the points to ground-off for this hint More... | |
| setPoints ($points) | |
| sets the passed points to ground-off for this hint More... | |
| getText () | |
| returns the hint text More... | |
| setText ($text) | |
| sets the passed hint text More... | |
| load ($id) | |
| loads the hint dataset with passed id from database and assigns it the to this hint object instance More... | |
| save () | |
| saves the current hint object state to database. More... | |
| delete () | |
| deletes the persisted hint object in database by deleting the hint dataset identified by hint id More... | |
| getPageObjectType () | |
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 More... | |
| static | deleteById ($hintId) |
| deletes the persisted hint object in database by deleting the hint dataset identified by hint id More... | |
| 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 More... | |
| static | getHintIndexLabel (ilLanguage $lng, $hintIndex) |
Data Fields | |
| const | PAGE_OBJECT_TYPE = 'qht' |
Protected Member Functions | |
| getHtmlQuestionContentPurifier () | |
Private Member Functions | |
| update () | |
| persists the current object state to database by updating an existing dataset identified by hint id More... | |
| insert () | |
| persists the current object state to database by inserting a new dataset with a new hint id fetched from primary key sequence More... | |
Private Attributes | |
| $id = null | |
| $questionId = null | |
| $index = null | |
| $points = null | |
| $text = null | |
Definition at line 14 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
@access public
| self | $questionHint | |
| array | $hintDbRow |
Definition at line 311 of file class.ilAssQuestionHint.php.
Referenced by ilAssQuestionHintList\getListByHintIds(), ilAssQuestionHintList\getListByQuestionId(), and load().
Here is the caller graph for this function:| ilAssQuestionHint::delete | ( | ) |
deletes the persisted hint object in database by deleting the hint dataset identified by hint id
Definition at line 297 of file class.ilAssQuestionHint.php.
References deleteById(), and getId().
Here is the call graph for this function:
|
static |
deletes the persisted hint object in database by deleting the hint dataset identified by hint id
@access public
@global ilDBInterface $ilDB
| integer | $hintId |
Definition at line 336 of file class.ilAssQuestionHint.php.
References $DIC, $ilDB, and $query.
Referenced by delete().
Here is the caller graph for this function:
|
static |
Definition at line 374 of file class.ilAssQuestionHint.php.
References $lng.
Referenced by ilAssQuestionHintPageObjectCommandForwarder\buildPreviewPresentationPageObjectGUI(), ilAssQuestionHintPageObjectCommandForwarder\buildRequestPresentationPageObjectGUI(), and ilAssQuestionHintsTableGUI\fillRow().
Here is the caller graph for this function:
|
protected |
Definition at line 380 of file class.ilAssQuestionHint.php.
References ilHtmlPurifierFactory\_getInstanceByType().
Referenced by setText().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionHint::getId | ( | ) |
returns the hint id
@access public
Definition at line 75 of file class.ilAssQuestionHint.php.
References $id.
Referenced by delete(), insert(), save(), ilAssQuestionHintTracking\storeRequest(), ilAssQuestionPreviewHintTracking\storeRequest(), and update().
Here is the caller graph for this function:| ilAssQuestionHint::getIndex | ( | ) |
returns the ordering index of hint
@access public
Definition at line 119 of file class.ilAssQuestionHint.php.
References $index.
Referenced by insert(), and update().
Here is the caller graph for this function:
|
static |
creates a hint object instance, loads the persisted hint dataset identified by passed hint id from database and assigns it as object state
@access public
| integer | $hintId |
Definition at line 362 of file class.ilAssQuestionHint.php.
Referenced by ilAssQuestionHintTracking\getNextRequestableHint(), ilAssQuestionPreviewHintTracking\getNextRequestableHint(), ilAssQuestionHintsGUI\initHintOrderingClipboardNotification(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardAfterCmd(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardBeforeCmd(), ilAssQuestionHintRequestGUI\showHintCmd(), and ilAssQuestionHintsGUI\showHintCmd().
Here is the caller graph for this function:| ilAssQuestionHint::getPageObjectType | ( | ) |
Definition at line 369 of file class.ilAssQuestionHint.php.
References PAGE_OBJECT_TYPE.
| ilAssQuestionHint::getPoints | ( | ) |
returns the points to ground-off for this hint
@access public
Definition at line 141 of file class.ilAssQuestionHint.php.
References $points.
Referenced by insert(), and update().
Here is the caller graph for this function:| ilAssQuestionHint::getQuestionId | ( | ) |
returns the question id the hint currently relates to
@access public
Definition at line 97 of file class.ilAssQuestionHint.php.
References $questionId.
Referenced by insert(), and update().
Here is the caller graph for this function:| ilAssQuestionHint::getText | ( | ) |
returns the hint text
@access public
Definition at line 163 of file class.ilAssQuestionHint.php.
References $text.
Referenced by insert(), and update().
Here is the caller graph for this function:
|
private |
persists the current object state to database by inserting a new dataset with a new hint id fetched from primary key sequence
@access private @global ilDBInterface $ilDB
Definition at line 275 of file class.ilAssQuestionHint.php.
References $DIC, $ilDB, getId(), getIndex(), getPoints(), getQuestionId(), getText(), and setId().
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionHint::load | ( | $id | ) |
loads the hint dataset with passed id from database and assigns it the to this hint object instance
@access public @global ilDBInterface $ilDB
| integer | $id |
Definition at line 190 of file class.ilAssQuestionHint.php.
References $DIC, $id, $ilDB, $query, $res, and assignDbRow().
Here is the call graph for this function:| 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
@access public
Definition at line 231 of file class.ilAssQuestionHint.php.
References getId(), insert(), and update().
Here is the call graph for this function:| ilAssQuestionHint::setId | ( | $id | ) |
sets the passed hint id
@access public
| integer | $id |
Definition at line 86 of file class.ilAssQuestionHint.php.
References $id.
Referenced by insert().
Here is the caller graph for this function:| ilAssQuestionHint::setIndex | ( | $index | ) |
sets the passed hint ordering index
@access 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
@access 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
@access public
| integer | $questionId |
Definition at line 108 of file class.ilAssQuestionHint.php.
References $questionId.
| ilAssQuestionHint::setText | ( | $text | ) |
sets the passed hint text
@access public
| string | $text |
Definition at line 174 of file class.ilAssQuestionHint.php.
References $text, and getHtmlQuestionContentPurifier().
Here is the call graph for this function:
|
private |
persists the current object state to database by updating an existing dataset identified by hint id
@access private @global ilDBInterface $ilDB
Definition at line 248 of file class.ilAssQuestionHint.php.
References $DIC, $ilDB, getId(), getIndex(), getPoints(), getQuestionId(), and getText().
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 24 of file class.ilAssQuestionHint.php.
|
private |
Definition at line 41 of file class.ilAssQuestionHint.php.
Referenced by getIndex(), and setIndex().
|
private |
Definition at line 50 of file class.ilAssQuestionHint.php.
Referenced by getPoints(), and setPoints().
|
private |
Definition at line 32 of file class.ilAssQuestionHint.php.
Referenced by getQuestionId(), and setQuestionId().
|
private |
Definition at line 58 of file class.ilAssQuestionHint.php.
| const ilAssQuestionHint::PAGE_OBJECT_TYPE = 'qht' |
Definition at line 16 of file class.ilAssQuestionHint.php.
Referenced by getPageObjectType().