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.
References __read().
60 if(isset($this->vendors[$a_usr_id]))
62 die(
"class.ilPaymentVendors::add() Vendor already exists");
65 $this->db->insert(
'payment_vendors',
67 'vendor_id' => array(
'integer', $a_usr_id),
68 'cost_center' => array(
'text',
'IL_INST_ID_' . $a_usr_id)
◆ delete()
ilPaymentVendors::delete |
( |
|
$a_usr_id | ) |
|
Definition at line 87 of file class.ilPaymentVendors.php.
References __read().
89 if(!isset($this->vendors[$a_usr_id]))
91 die(
"class.ilPaymentVendors::delete() Vendor does not exist");
94 $this->db->manipulateF(
' 95 DELETE FROM payment_vendors WHERE vendor_id = %s',
◆ 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.
References __read().
78 $this->db->update(
'payment_vendors',
79 array(
'cost_center' => array(
'text', $a_cost_center)),
80 array(
'vendor_id' => array(
'integer', $a_usr_id)));
◆ $_instance
ilPaymentVendors::$_instance |
|
staticprivate |
◆ $db
ilPaymentVendors::$db = null |
◆ $vendors
ilPaymentVendors::$vendors = array() |
The documentation for this class was generated from the following file: