Пример #1
0
 public function __construct(CRM $crm, $level_id)
 {
     $this->crm = $crm;
     $this->connection =& $crm->getConnection();
     $this->level_id = $level_id;
     $this->load();
 }
Пример #2
0
 /**
  * Constructs the customer object and loads customer and support option data.
  *
  * @param CRM $crm
  * @param string $customer_id
  * @throws CustomerNotFoundException
  * @see Customer::load();
  */
 public function __construct(CRM $crm, $customer_id)
 {
     $this->crm = $crm;
     $this->connection =& $crm->getConnection();
     $this->customer_id = $customer_id;
     // attempt to load the data
     $this->load();
 }