Exemplo n.º 1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->timerStart = 1;
     if (Request::param('y') == self::LAST_6_MONTHS) {
         $this->timerEnd = 26;
     } else {
         if (Request::param('y') == self::LAST_12_MONTHS) {
             $yearEnd = date('Y') - 1;
         } else {
             $yearEnd = (int) Request::param('y');
         }
         $this->timerEnd = date("W", mktime(0, 0, 0, 12, 28, $yearEnd));
         // http://de.php.net/manual/en/function.date.php#49457
     }
     parent::__construct();
 }
Exemplo n.º 2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->timerStart = Request::param('y') == parent::LAST_6_MONTHS ? 7 : 1;
     $this->timerEnd = 12;
     parent::__construct();
 }