3 declare(strict_types=1);
41 $this->db = $DIC->database();
56 $db = $DIC->database();
58 $query =
'SELECT href_id FROM il_meta_oer_stat ';
63 $hids[] = (
int) $row->href_id;
72 $db = $DIC->database();
73 $query =
'SELECT obj_id FROM il_meta_oer_stat ' .
74 'WHERE href_id = ' . $db->
quote($a_href_id,
'integer');
77 return (
int) $row->obj_id;
84 $this->obj_id = $a_obj_id;
94 $this->harvest_ref_id = $a_ref_id;
104 $this->blocked = $a_stat;
120 $query =
'INSERT INTO il_meta_oer_stat ' .
121 '(obj_id, href_id, blocked ) ' .
123 $this->db->quote($this->
getObjId(),
'integer') .
', ' .
125 $this->db->quote($this->
isBlocked(),
'integer') .
131 public function delete():
bool 133 $query =
'DELETE FROM il_meta_oer_stat ' .
134 'WHERE obj_id = ' . $this->db->quote($this->
getObjId(),
'integer');
135 $this->db->manipulate(
$query);
141 $query =
'SELECT * FROM il_meta_oer_stat ' .
142 'WHERE obj_id = ' . $this->db->quote($this->
getObjId(),
'integer');
145 $this->
setObjId((
int) $row->obj_id);
setHarvestRefId(int $a_ref_id)
static lookupObjIdByHarvestingId(int $a_href_id)
quote($value, string $type)
__construct(int $obj_id=0)
query(string $query)
Run a (read-only) Query on the database.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...