示例#1
0
 /**
  * {@inheritdoc}
  *
  * {@inheritdoc}
  */
 public function prepareFildValue($fildValue)
 {
     $constStar = 'starhjc7vjHg6jd8mv8hcy75GFt0c67cnbv74FegxtEDJkcucG64frblmkb';
     $constQuestion = 'questionhjc7vjHg6jd8mv8hcy75GFt0c67cnbv74FegxtEDJkcucG64frblmkb';
     $regexRqlDecoded = parent::prepareFildValue($fildValue);
     $regexRqlEnecoded = self::encodeString($regexRqlDecoded);
     $regexRqlPrepared = strtr($regexRqlEnecoded, [$constStar => '*', $constQuestion => '?']);
     return $regexRqlPrepared;
 }
示例#2
0
 /**
  * {@inheritdoc}
  *
  * {@inheritdoc}
  */
 public function prepareFildValue($fildValue)
 {
     $fildValue = parent::prepareFildValue($fildValue);
     switch (true) {
         case is_bool($fildValue):
             $fildValue = (bool) $fildValue ? TRUE : FALSE;
             return $fildValue;
         case is_numeric($fildValue):
             return $fildValue;
         case is_string($fildValue):
             return "'" . $fildValue . "'";
         default:
             throw new DataStoresException('Type ' . gettype($fildValue) . ' is not supported');
     }
 }
示例#3
0
 /**
  * {@inheritdoc}
  *
  * {@inheritdoc}
  */
 public function prepareFildValue($fildValue)
 {
     $fildValue = parent::prepareFildValue($fildValue);
     return $this->db->platform->quoteValue($fildValue);
 }