public function __construct(Xhb $xhb, $account = null, array $data = array()) { parent::__construct($data); $this->setXhb($xhb); if (is_numeric($account)) { $account = $xhb->getAccount($account); } $this->_account = $account; }
public function __construct($data = array()) { parent::__construct($data); if (isset($data['resource_config']['type']) && $data['resource_config']['type']) { $this->_resourceType = ucfirst($data['resource_config']['type']); } else { throw new \Exception('Missing resource configuration'); } $this->setXhb($this); // Init own resource instance $this->getResource(true, $data); }
public function __construct(Xhb $xhb, $data = array()) { parent::__construct($data); $this->setXhb($xhb); }
public function __construct($data) { parent::__construct($data); }