コード例 #1
0
ファイル: elementlist.php プロジェクト: ankaau/GathBandhan
 /**
  * Builds an array containing the filters value and condition
  *
  * @param   string  $value      Initial value
  * @param   string  $condition  Intial $condition
  * @param   string  $eval       How the value should be handled
  *
  * @return  array	(value condition)
  */
 public function getFilterValue($value, $condition, $eval)
 {
     if (is_array($value)) {
         foreach ($value as &$v) {
             $v = $this->prepareFilterVal($v);
         }
     } else {
         $value = $this->prepareFilterVal($value);
     }
     return parent::getFilterValue($value, $condition, $eval);
 }