Пример #1
0
 /**
  * gets timer time period in seconds
  * 
  * gets timer name in timer param 
  * and optionally a $type value
  * if type isset returns $this->timer[$type]
  * else returns $this->timer 
  * 
  * @param string $timer
  * @return Int the time of the timer
  */
 public static function get($timer)
 {
     if ($timer) {
         return (int) Application_Model_General::getTimer($timer);
     }
     return 0;
 }