◆ __construct()
| ILIAS\Glossary\Flashcard\FlashcardBoxDBRepository::__construct |
( |
\ilDBInterface |
$db | ) |
|
◆ createOrUpdateEntry()
| ILIAS\Glossary\Flashcard\FlashcardBoxDBRepository::createOrUpdateEntry |
( |
int |
$box_nr, |
|
|
int |
$user_id, |
|
|
int |
$glo_id, |
|
|
string |
$date |
|
) |
| |
Definition at line 61 of file class.FlashcardBoxDBRepository.php.
70 "box_nr" => [
"integer", $box_nr],
71 "user_id" => [
"integer", $user_id],
72 "glo_id" => [
"integer", $glo_id]
75 "last_access" => [
"date", $date]
◆ deleteAllGlossaryEntries()
| ILIAS\Glossary\Flashcard\FlashcardBoxDBRepository::deleteAllGlossaryEntries |
( |
int |
$glo_id | ) |
|
Definition at line 98 of file class.FlashcardBoxDBRepository.php.
References $q.
101 $q =
"DELETE FROM glo_flashcard_box " .
102 " WHERE glo_id = " . $this->db->quote($glo_id,
"integer");
103 $this->db->manipulate(
$q);
◆ deleteAllUserEntries()
| ILIAS\Glossary\Flashcard\FlashcardBoxDBRepository::deleteAllUserEntries |
( |
int |
$user_id | ) |
|
Definition at line 90 of file class.FlashcardBoxDBRepository.php.
References $q.
93 $q =
"DELETE FROM glo_flashcard_box " .
94 " WHERE user_id = " . $this->db->quote($user_id,
"integer");
95 $this->db->manipulate(
$q);
◆ deleteEntries()
| ILIAS\Glossary\Flashcard\FlashcardBoxDBRepository::deleteEntries |
( |
int |
$glo_id, |
|
|
int |
$user_id |
|
) |
| |
Definition at line 80 of file class.FlashcardBoxDBRepository.php.
References $q.
84 $q =
"DELETE FROM glo_flashcard_box " .
85 " WHERE glo_id = " . $this->db->quote($glo_id,
"integer") .
86 " AND user_id = " . $this->db->quote($user_id,
"integer");
87 $this->db->manipulate(
$q);
◆ getEntry()
| ILIAS\Glossary\Flashcard\FlashcardBoxDBRepository::getEntry |
( |
int |
$box_nr, |
|
|
int |
$user_id, |
|
|
int |
$glo_id |
|
) |
| |
Definition at line 36 of file class.FlashcardBoxDBRepository.php.
41 $set = $this->db->queryF(
42 "SELECT * FROM glo_flashcard_box " .
43 " WHERE box_nr = %s AND user_id = %s AND glo_id = %s ",
44 [
"integer",
"integer",
"integer"],
45 [$box_nr, $user_id, $glo_id]
49 if ($rec = $this->db->fetchAssoc($set)) {
51 "box_nr" => $rec[
"box_nr"],
52 "user_id" => $rec[
"user_id"],
53 "glo_id" => $rec[
"glo_id"],
54 "last_access" => $rec[
"last_access"],
◆ $db
| ilDBInterface ILIAS\Glossary\Flashcard\FlashcardBoxDBRepository::$db |
|
protected |
The documentation for this class was generated from the following file: