/** * @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); }