Definition at line 13 of file class.ilPaymentVendors.php.
◆ __construct()
ilPaymentVendors::__construct |
( |
| ) |
|
|
private |
◆ __read()
ilPaymentVendors::__read |
( |
| ) |
|
|
private |
◆ add()
ilPaymentVendors::add |
( |
|
$a_usr_id | ) |
|
Definition at line 58 of file class.ilPaymentVendors.php.
59 {
60 if(isset($this->vendors[$a_usr_id]))
61 {
62 die("class.ilPaymentVendors::add() Vendor already exists");
63 }
64
65 $this->db->insert('payment_vendors',
66 array(
67 'vendor_id' => array('integer', $a_usr_id),
68 'cost_center' => array('text', 'IL_INST_ID_' . $a_usr_id)
69 ));
70
72
73 return true;
74 }
References __read().
◆ delete()
ilPaymentVendors::delete |
( |
|
$a_usr_id | ) |
|
Definition at line 87 of file class.ilPaymentVendors.php.
88 {
89 if(!isset($this->vendors[$a_usr_id]))
90 {
91 die("class.ilPaymentVendors::delete() Vendor does not exist");
92 }
93
94 $this->db->manipulateF('
95 DELETE FROM payment_vendors WHERE vendor_id = %s',
96 array('integer'),
97 array($a_usr_id));
98
99
100
102
103 return true;
104 }
References __read().
◆ getInstance()
static ilPaymentVendors::getInstance |
( |
| ) |
|
|
static |
◆ getVendors()
ilPaymentVendors::getVendors |
( |
| ) |
|
◆ isAssigned()
ilPaymentVendors::isAssigned |
( |
|
$a_usr_id | ) |
|
◆ update()
ilPaymentVendors::update |
( |
|
$a_usr_id, |
|
|
|
$a_cost_center |
|
) |
| |
Definition at line 76 of file class.ilPaymentVendors.php.
77 {
78 $this->db->update('payment_vendors',
79 array('cost_center' => array('text', $a_cost_center)),
80 array('vendor_id' => array('integer', $a_usr_id)));
81
83
84 return true;
85 }
References __read().
◆ $_instance
ilPaymentVendors::$_instance |
|
staticprivate |
◆ $db
ilPaymentVendors::$db = null |
◆ $vendors
ilPaymentVendors::$vendors = array() |
The documentation for this class was generated from the following file: