public function __construct($exchange, $currency1, $currency2) { parent::__construct(); $this->exchange = $exchange; $this->currency1 = $currency1; $this->currency2 = $currency2; }
public function __construct($key) { parent::__construct(); $data = GraphRenderer_AdminMetrics::getMetrics(); if (!isset($data[$key])) { throw new GraphException("Could not find any key '{$key}' in available metrics"); } $data = $data[$key]; $this->report_type = $data['report_type']; $this->report_table = $data['report_table']; $this->report_ref_table = isset($data['report_ref_table']) ? $data['report_ref_table'] : null; $this->report_reference = isset($data['report_reference']) ? $data['report_reference'] : null; $this->key_prefix = isset($data['key_prefix']) ? $data['key_prefix'] : null; $this->key = isset($data['key']) ? $data['key'] : $this->key_prefix; $this->actual_value_key = isset($data['actual_value_key']) ? $data['actual_value_key'] : null; $this->title = $data['title']; if ($this->key === null && $this->key_prefix === null) { throw new GraphException("Cannot render AdminMetrics with a null key and key_prefix"); } }
public function __construct() { parent::__construct(); }
public function __construct($currency) { parent::__construct(); $this->currency = $currency; }
public function __construct($currency1, $currency2) { parent::__construct(); $this->currency1 = $currency1; $this->currency2 = $currency2; }