23 $query =
'SELECT tpl_id FROM didactic_tpl_objs ' .
24 'WHERE ref_id = ' . $ilDB->quote($a_ref_id,
'integer');
43 $query =
'DELETE FROM didactic_tpl_objs ' .
44 'WHERE obj_id = ' . $ilDB->quote($a_obj_id,
'integer');
59 $query =
'DELETE FROM didactic_tpl_objs ' .
60 'WHERE tpl_id = ' . $ilDB->quote($a_tpl_id,
'integer');
74 $query =
'DELETE FROM didactic_tpl_objs ' .
75 'WHERE ref_id = ' . $ilDB->quote($a_ref_id,
'integer');
90 self::deleteByRefId($a_ref_id);
92 $query =
'INSERT INTO didactic_tpl_objs (ref_id,obj_id,tpl_id) ' .
94 $ilDB->quote($a_ref_id,
'integer') .
', ' .
95 $ilDB->quote($a_obj_id,
'integer') .
', ' .
96 $ilDB->quote($a_tpl_id,
'integer') .
' ' .
111 $query =
'SELECT * FROM didactic_tpl_objs ' .
112 'WHERE tpl_id = ' . $ilDB->quote($a_tpl_id,
'integer');
114 $assignments =
array();
117 $assignments[] =
array(
"ref_id" =>
$row->ref_id,
"obj_id" =>
$row->obj_id);
134 $query =
'SELECT auto_generated FROM didactic_tpl_settings ' .
135 'WHERE id = ' . $ilDB->quote($a_src,
'integer');
140 if (
$row->auto_generated == 0) {
144 $query =
'UPDATE didactic_tpl_settings ' .
146 'auto_generated = ' . $ilDB->quote(1,
'integer') .
147 ' WHERE id = ' . $ilDB->quote($a_dest,
'integer');
148 $ilDB->manipulate(
$query);
150 $query =
'UPDATE didactic_tpl_settings ' .
152 'auto_generated = ' . $ilDB->quote(0,
'integer') .
153 ' WHERE id = ' . $ilDB->quote($a_src,
'integer');
154 $ilDB->manipulate(
$query);
static lookupTemplateId($a_ref_id)
Lookup template id ilDB $ilDB.
static deleteByRefId($a_ref_id)
Delete by ref_id ilDB $ilDB.
static transferAutoGenerateStatus($a_src, $a_dest)
transfer auto generated flag if source is auto generated
static getAssignmentsByTemplateID($a_tpl_id)
Lookup template id ilDB $ilDB.
Stores the applied template id for objects.
static assignTemplate($a_ref_id, $a_obj_id, $a_tpl_id)
Assign template to object ilDB $ilDB.
foreach($_POST as $key=> $value) $res
static deleteByTemplateId($a_tpl_id)
Delete by template id ilDB $ilDB.
Create styles array
The data for the language used.
static deleteByObjId($a_obj_id)
Delete by obj id ilDB $ilDB.