Esempio n. 1
0
 public function __construct($exchange, $currency1, $currency2)
 {
     parent::__construct();
     $this->exchange = $exchange;
     $this->currency1 = $currency1;
     $this->currency2 = $currency2;
 }
Esempio n. 2
0
 public function __construct($exchange, $account_id, $currency)
 {
     parent::__construct();
     $this->exchange = $exchange;
     $this->account_id = $account_id;
     $this->currency = $currency;
 }
Esempio n. 3
0
 public function getData($days)
 {
     $result = parent::getData($days);
     if (!$result['data']) {
         throw new NoDataGraphException_AddCurrencies();
     }
     return $result;
 }
Esempio n. 4
0
 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'];
     }
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
 }
 /**
  * @param $prefix "" or "db_"
  */
 public function __construct($prefix)
 {
     parent::__construct();
     $this->prefix = $prefix;
 }