public function __construct(CRM $crm, $level_id) { $this->crm = $crm; $this->connection =& $crm->getConnection(); $this->level_id = $level_id; $this->load(); }
/** * 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(); }