|
| | fillData (array $data) |
| | Fill the properties with data from an array. More...
|
| |
◆ fillData()
| ilLTIConsumerResult::fillData |
( |
array |
$data | ) |
|
|
protected |
◆ getById()
| static ilLTIConsumerResult::getById |
( |
int |
$a_id | ) |
|
|
static |
Get a result by id.
Definition at line 54 of file class.ilLTIConsumerResult.php.
References $DIC, and $res.
58 $query =
'SELECT * FROM lti_consumer_results' 59 .
' WHERE id = ' . $DIC->database()->quote($a_id,
'integer');
61 $res = $DIC->database()->query($query);
62 if ($row = $DIC->database()->fetchAssoc(
$res)) {
64 $resObj->fillData($row);
◆ getByKeys()
| static ilLTIConsumerResult::getByKeys |
( |
int |
$a_obj_id, |
|
|
int |
$a_usr_id, |
|
|
?bool |
$a_create = false |
|
) |
| |
|
static |
◆ getId()
| ilLTIConsumerResult::getId |
( |
| ) |
|
◆ getObjId()
| ilLTIConsumerResult::getObjId |
( |
| ) |
|
◆ getResult()
| ilLTIConsumerResult::getResult |
( |
| ) |
|
◆ getResultsForObject()
| static ilLTIConsumerResult::getResultsForObject |
( |
int |
$objId | ) |
|
|
static |
◆ getUsrId()
| ilLTIConsumerResult::getUsrId |
( |
| ) |
|
◆ save()
| ilLTIConsumerResult::save |
( |
| ) |
|
Save a result object.
Definition at line 115 of file class.ilLTIConsumerResult.php.
References $DIC.
Referenced by ilLTIConsumerResultService\replaceResult().
119 if (!isset($this->usr_id) || !isset($this->obj_id)) {
122 if (!isset($this->
id)) {
123 $this->
id = $DIC->database()->nextId(
'lti_consumer_results');
125 $DIC->database()->replace(
126 'lti_consumer_results',
128 'id' => array(
'integer', $this->
id)
131 'obj_id' => array(
'integer', $this->obj_id),
132 'usr_id' => array(
'integer', $this->usr_id),
133 'result' => array(
'float', $this->result)
◆ $id
| int ilLTIConsumerResult::$id |
◆ $obj_id
| int ilLTIConsumerResult::$obj_id |
◆ $result
| float ilLTIConsumerResult::$result = null |
◆ $usr_id
| int ilLTIConsumerResult::$usr_id |
The documentation for this class was generated from the following file: