public function __construct($exchange, $currency1, $currency2) { parent::__construct(); $this->exchange = $exchange; $this->currency1 = $currency1; $this->currency2 = $currency2; }
public function __construct($exchange, $account_id, $currency) { parent::__construct(); $this->exchange = $exchange; $this->account_id = $account_id; $this->currency = $currency; }
public function __construct($job_type = false, $arg0 = false) { parent::__construct(); $this->job_type = $job_type; $this->arg0 = $arg0; if (!$this->arg0 && !$this->job_type) { throw new GraphException("ExternalHistorical graph requires arg0 or job_type"); } // TODO maybe move this out of initialisation if (!$this->job_type) { $q = db()->prepare("SELECT * FROM external_status_types WHERE id=?"); $q->execute(array($this->arg0)); $resolved = $q->fetch(); if (!$resolved) { throw new GraphException("Invalid external status type ID."); } $this->job_type = $resolved['job_type']; } }
public function __construct() { parent::__construct(); }
public function __construct($summary_type, $currency) { parent::__construct(); $this->summary_type = $summary_type; $this->currency = $currency; }
/** * @param $prefix "" or "db_" */ public function __construct($prefix) { parent::__construct(); $this->prefix = $prefix; }