34 $ilDB->insert(
'org_unit_assignments', array(
35 'oa_ou_id' => array(
'integer', (
int)$this->org_unit_id),
36 'oa_usr_id' => array(
'integer', (
int)$this->user_id),
37 'oa_reporting_access' => array(
'integer', (
int)$this->reporting_access),
38 'oa_cc_compl_invit' => array(
'integer', (
int)$this->cc_compl_invit),
39 'oa_cc_compl_not1' => array(
'integer', (
int)$this->cc_compl_not1),
40 'oa_cc_compl_not2' => array(
'integer', (
int)$this->cc_compl_not2)
48 $ilDB->insert(
'org_unit_assignments',
50 'oa_reporting_access' => array(
'integer', (
int)$this->reporting_access),
51 'oa_cc_compl_invit' => array(
'integer', (
int)$this->cc_compl_invit),
52 'oa_cc_compl_not1' => array(
'integer', (
int)$this->cc_compl_not1),
53 'oa_cc_compl_not2' => array(
'integer', (
int)$this->cc_compl_not2)
56 'oa_ou_id' => array(
'integer', (
int)$this->org_unit_id),
57 'oa_usr_id' => array(
'integer', (
int)$this->user_id)
62 public function delete()
66 $query =
"DELETE FROM org_unit_assignments ".
67 "WHERE oa_ou_id = %s AND oa_usr_id = %s";
71 array(
'integer',
'integer'),
72 array($this->org_unit_id, $this->user_id)
83 $this->reporting_access = (bool)$a_reporting_access;
94 $this->cc_compl_invit = (bool)$a_cc_compl_invit;
105 $this->cc_compl_not1 = (bool)$a_cc_compl_not1;
116 $this->cc_compl_not2 = (bool)$a_cc_compl_not2;