public function __construct() { parent::__construct(); $this->period = Piwik_Common::getRequestVar("period"); if (isset($this->date)) { $this->range = Piwik_Period_Range::factory($this->period, $this->date); } }