Example #1
0
 /**
  * Changes the locktime, this time indicated how long
  * a user can lock a bean in the database.
  * @param $timeInSecs
  * @return unknown_type
  */
 public static function setLockingTime($timeInSecs)
 {
     if (is_int($timeInSecs) && $timeInSecs >= 0) {
         self::$locktime = $timeInSecs;
     } else {
         throw new ExceptionInvalidArgument("time must be integer >= 0");
     }
 }