4 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateSetting.php';
27 $this->obj_type = $a_obj_type;
39 return self::$instance;
51 if(self::$instances[$a_obj_type])
53 return self::$instances[$a_obj_type];
84 $query =
'SELECT dtpl.id FROM didactic_tpl_settings dtpl ';
88 $query .=
'JOIN didactic_tpl_sa tplsa ON dtpl.id = tplsa.id ';
90 $query .=
'WHERE enabled = '.$ilDB->quote(0,
'integer').
' ';
114 $query =
'SELECT dtpl.id FROM didactic_tpl_settings dtpl ';
118 $query .=
'JOIN didactic_tpl_sa tplsa ON dtpl.id = tplsa.id ';
120 $query .=
'WHERE enabled = '.$ilDB->quote(1,
'integer').
' ';
static getInstance()
Get singelton instance.
getTemplates()
Get templates.
getObjectType()
Get object type.
read()
Read active didactic templates ilDB $ilDB.
Create styles array
The data for the language used.
__construct($a_obj_type='')
Constructor.
static getInstanceByObjectType($a_obj_type)
Get instance by obj type.
readInactive()
Read disabled templates.