6 require_once
'Modules/IndividualAssessment/interfaces/Settings/interface.ilIndividualAssessmentSettingsStorage.php';
7 require_once
'Modules/IndividualAssessment/classes/Settings/class.ilIndividualAssessmentSettings.php';
8 require_once
'Modules/IndividualAssessment/classes/Settings/class.ilIndividualAssessmentInfoSettings.php';
9 require_once
'Modules/IndividualAssessment/classes/class.ilObjIndividualAssessment.php';
21 $sql =
"INSERT INTO iass_settings (content,record_template,obj_id) VALUES (%s,%s,%s)";
23 $sql =
"INSERT INTO iass_info_settings (obj_id) VALUES (%s)";
24 $this->db->manipulateF($sql,
array(
"integer"),
array($settings->
getId()));
32 $obj_id = $obj->
getId();
33 assert(
'is_numeric($obj_id)');
34 $sql =
'SELECT content, record_template FROM iass_settings WHERE obj_id = '.$this->db->quote($obj_id,
'integer');
35 if(
$res = $this->db->fetchAssoc($this->db->query($sql))) {
48 $sql =
'UPDATE iass_settings SET content = %s,record_template = %s WHERE obj_id = %s';
61 $obj_id = $obj->
getId();
62 assert(
'is_numeric($obj_id)');
63 $sql =
'SELECT contact, responsibility, phone, mails, consultation_hours' 64 .
' FROM iass_info_settings WHERE obj_id = '.$this->db->quote($obj_id,
'integer');
65 if(
$res = $this->db->fetchAssoc($this->db->query($sql))) {
68 ,
$res[
"responsibility"]
71 ,
$res[
'consultation_hours']);
85 $sql =
'UPDATE iass_info_settings SET ' 87 .
' ,responsibility = %s' 90 .
' ,consultation_hours = %s' 91 .
' WHERE obj_id = %s';
92 $this->db->manipulateF($sql,
array(
'text',
'text',
'text',
'text',
'text',
'integer'),
105 $sql =
'DELETE FROM iass_settings WHERE obj_id = %s';
107 $sql =
'DELETE FROM iass_info_settings WHERE obj_id = %s';
loadInfoSettings(ilObjIndividualAssessment $obj)
Load info-screen settings corresponding to obj.
For the purpose of streamlining the grading and learning-process status definition outside of tests...
A settings storage handler to write iass settings to db.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
An object carrying settings of an Individual Assessment obj beyond the standart information.
A simple carrier for iass info-settings.
A general storage interface for Individual assessment settings.
recordTemplate()
Get the record template to be used as default record with corresponding object.
getId()
get object id public
updateSettings(ilIndividualAssessmentSettings $settings)
Update settings entry.
content()
Get the content of this assessment, e.g.
loadSettings(ilObjIndividualAssessment $obj)
Load settings corresponding to obj.ilIndividualAssessmentSettings $settings
getId()
Get the id of corrwsponding iass-object.
const DEF_RECORD_TEMPLATE
Create styles array
The data for the language used.
deleteSettings(ilObjIndividualAssessment $obj)
Delete settings entry corresponding to obj.ilIndividualAssessmentSettings $settings ...
createSettings(ilIndividualAssessmentSettings $settings)
Create a entry corresponding to $settings.
updateInfoSettings(ilIndividualAssessmentInfoSettings $settings)
Update info-screen settings entry.