ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilOrgUnitAssignment Class Reference

Organisation Unit Assignment. More...

+ Collaboration diagram for ilOrgUnitAssignment:

Public Member Functions

 __construct ($org_unit_id, $user_id)
 create ()
 update ()
 delete ()
 getUserId ()
 setReportingAccess ($a_reporting_access)
 hasReportingAccess ()
 setCcComplianceInvitation ($a_cc_compl_invit)
 hasCcComplianceInvitation ()
 setCcComplianceNotify1 ($a_cc_compl_not1)
 hasCcComplianceNotify1 ()
 setCcComplianceNotify2 ($a_cc_compl_not2)
 hasCcComplianceNotify2 ()

Private Attributes

 $org_unit_id = 0
 $user_id = 0
 $reporting_access = false
 $cc_compl_invit = false
 $cc_compl_not1 = false
 $cc_compl_not2 = false

Detailed Description

Organisation Unit Assignment.

Author
Bjoern Heyser bheys.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 14 of file class.ilOrgUnitAssignment.php.

Constructor & Destructor Documentation

ilOrgUnitAssignment::__construct (   $org_unit_id,
  $user_id 
)

Definition at line 24 of file class.ilOrgUnitAssignment.php.

References $org_unit_id, and $user_id.

{
$this->org_unit_id = (int)$org_unit_id;
$this->user_id = (int)$user_id;
}

Member Function Documentation

ilOrgUnitAssignment::create ( )

Definition at line 30 of file class.ilOrgUnitAssignment.php.

References $ilDB.

{
global $ilDB;
$ilDB->insert('org_unit_assignments', array(
'oa_ou_id' => array('integer', (int)$this->org_unit_id),
'oa_usr_id' => array('integer', (int)$this->user_id),
'oa_reporting_access' => array('integer', (int)$this->reporting_access),
'oa_cc_compl_invit' => array('integer', (int)$this->cc_compl_invit),
'oa_cc_compl_not1' => array('integer', (int)$this->cc_compl_not1),
'oa_cc_compl_not2' => array('integer', (int)$this->cc_compl_not2)
));
}
ilOrgUnitAssignment::delete ( )

Definition at line 62 of file class.ilOrgUnitAssignment.php.

References $ilDB, and $query.

{
global $ilDB;
$query = "DELETE FROM org_unit_assignments ".
"WHERE oa_ou_id = %s AND oa_usr_id = %s";
$ilDB->queryF(
array('integer', 'integer'),
array($this->org_unit_id, $this->user_id)
);
}
ilOrgUnitAssignment::getUserId ( )

Definition at line 76 of file class.ilOrgUnitAssignment.php.

References $user_id.

{
}
ilOrgUnitAssignment::hasCcComplianceInvitation ( )

Definition at line 98 of file class.ilOrgUnitAssignment.php.

References $cc_compl_invit.

ilOrgUnitAssignment::hasCcComplianceNotify1 ( )

Definition at line 109 of file class.ilOrgUnitAssignment.php.

References $cc_compl_not1.

ilOrgUnitAssignment::hasCcComplianceNotify2 ( )

Definition at line 120 of file class.ilOrgUnitAssignment.php.

References $cc_compl_not2.

ilOrgUnitAssignment::hasReportingAccess ( )

Definition at line 87 of file class.ilOrgUnitAssignment.php.

References $reporting_access.

ilOrgUnitAssignment::setCcComplianceInvitation (   $a_cc_compl_invit)

Definition at line 92 of file class.ilOrgUnitAssignment.php.

{
$this->cc_compl_invit = (bool)$a_cc_compl_invit;
return $this;
}
ilOrgUnitAssignment::setCcComplianceNotify1 (   $a_cc_compl_not1)

Definition at line 103 of file class.ilOrgUnitAssignment.php.

{
$this->cc_compl_not1 = (bool)$a_cc_compl_not1;
return $this;
}
ilOrgUnitAssignment::setCcComplianceNotify2 (   $a_cc_compl_not2)

Definition at line 114 of file class.ilOrgUnitAssignment.php.

{
$this->cc_compl_not2 = (bool)$a_cc_compl_not2;
return $this;
}
ilOrgUnitAssignment::setReportingAccess (   $a_reporting_access)

Definition at line 81 of file class.ilOrgUnitAssignment.php.

{
$this->reporting_access = (bool)$a_reporting_access;
return $this;
}
ilOrgUnitAssignment::update ( )

Definition at line 44 of file class.ilOrgUnitAssignment.php.

References $ilDB.

{
global $ilDB;
$ilDB->insert('org_unit_assignments',
array(
'oa_reporting_access' => array('integer', (int)$this->reporting_access),
'oa_cc_compl_invit' => array('integer', (int)$this->cc_compl_invit),
'oa_cc_compl_not1' => array('integer', (int)$this->cc_compl_not1),
'oa_cc_compl_not2' => array('integer', (int)$this->cc_compl_not2)
),
array(
'oa_ou_id' => array('integer', (int)$this->org_unit_id),
'oa_usr_id' => array('integer', (int)$this->user_id)
)
);
}

Field Documentation

ilOrgUnitAssignment::$cc_compl_invit = false
private

Definition at line 20 of file class.ilOrgUnitAssignment.php.

Referenced by hasCcComplianceInvitation().

ilOrgUnitAssignment::$cc_compl_not1 = false
private

Definition at line 21 of file class.ilOrgUnitAssignment.php.

Referenced by hasCcComplianceNotify1().

ilOrgUnitAssignment::$cc_compl_not2 = false
private

Definition at line 22 of file class.ilOrgUnitAssignment.php.

Referenced by hasCcComplianceNotify2().

ilOrgUnitAssignment::$org_unit_id = 0
private

Definition at line 16 of file class.ilOrgUnitAssignment.php.

Referenced by __construct().

ilOrgUnitAssignment::$reporting_access = false
private

Definition at line 19 of file class.ilOrgUnitAssignment.php.

Referenced by hasReportingAccess().

ilOrgUnitAssignment::$user_id = 0
private

Definition at line 17 of file class.ilOrgUnitAssignment.php.

Referenced by __construct(), and getUserId().


The documentation for this class was generated from the following file: