예제 #1
0
파일: entry.php 프로젝트: AdiTal/server
 /**
  * @see Baseentry::setLengthInMsecs()
  * Make sure that the set value is positive
  */
 public function setLengthInMsecs($v)
 {
     if (!$v || $v < 0) {
         // null ot negative
         return;
     }
     if (is_string($v) && !is_numeric($v)) {
         // not numeric
         return;
     }
     return parent::setLengthInMsecs($v);
 }