19 declare(strict_types=1);
    25     protected \ilDBInterface 
$db;
    35         $id = $this->db->nextId(
"help_module");
    37         $this->db->manipulate(
"INSERT INTO help_module " .
    39             $this->db->quote(
$id, 
"integer") .
    49         $this->db->manipulate(
    50             "UPDATE help_module SET " .
    51             " lm_id = " . $this->db->quote($a_lm_id, 
"integer") .
    52             " WHERE id = " . $this->db->quote($a_id, 
"integer")
    58         foreach ($order as 
$id => $order_nr) {
    62                 "order_nr" => [
"integer", (
int) $order_nr]
    65                     "id" => [
"integer", (
int) 
$id]
    73         $set = $this->db->query(
"SELECT * FROM help_module ORDER BY order_nr ASC");
    76         while ($rec = $this->db->fetchAssoc($set)) {
    92         $set = $this->db->query(
    93             "SELECT * FROM help_module " .
    94             " WHERE id = " . $this->db->quote($a_id, 
"integer")
    96         $rec = $this->db->fetchAssoc($set);
    98             return \ilObject::_lookupTitle((
int) $rec[
"lm_id"]);
   106         $set = $this->db->query(
   107             "SELECT lm_id FROM help_module " .
   108             " WHERE id = " . $this->db->quote($a_id, 
"integer")
   110         $rec = $this->db->fetchAssoc($set);
   111         return (
int) $rec[
"lm_id"];
   117         $this->db->manipulate(
"DELETE FROM help_module WHERE " .
   118             " id = " . $this->db->quote($id, 
"integer"));
   127         $set = $this->db->query(
   128             "SELECT id FROM help_module " .
   129             " WHERE lm_id = " . $this->db->quote($a_lm_id, 
"integer")
   131         if ($rec = $this->db->fetchAssoc($set)) {
   142             "active" => [
"integer", (
int) $active]
   145                 "id" => [
"integer", $module_id]
 
writeHelpModuleLmId(int $a_id, int $a_lm_id)
 
static _lookupTitle(int $obj_id)
 
lookupModuleLmId(int $a_id)
 
lookupModuleTitle(int $a_id)
 
writeActive(int $module_id, bool $active)
 
isHelpLM(int $a_lm_id)
Check if LM is a help LM. 
 
static _lookupCreationDate(int $obj_id)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
static _lookupType(int $id, bool $reference=false)
 
__construct(\ilDBInterface $db)