Пример #1
0
 /**
  * This method can be used to change the casting behaviour of QType::Cast().
  * By default QType::Cast() does lots of validation and type casting (using settype()).
  * Depending on your application you may or may not need validation or casting or both.
  * In these situations you can set the necessary behaviour by passing the appropriate constant to this function.
  *
  * @static
  * @param int $intBehaviour one of the 4 constants QType::NoOp, QType::CastOnly, QType::CheckOnly, QType::CheckAndCast
  * @return int the previous setting
  */
 public static function SetBehaviour($intBehaviour)
 {
     $oldBehaviour = QType::$intBehaviour;
     QType::$intBehaviour = $intBehaviour;
     return $oldBehaviour;
 }