Beispiel #1
0
 /**
  * Set timeout
  *
  * @return	void
  * @param	int $timeout
  */
 public static function setTimeOut($timeout)
 {
     // redefine
     $timeout = (int) $timeout;
     // validate
     if ($timeout == 0) {
         throw new Exception('Invalid timeout. Timeout shouldn\'t be 0.');
     }
     // set property
     self::$timeout = $timeout;
 }