public static function splitFilter($filter_type, $value)
    {
        $pattern = $filter_type === Datasource::FILTER_AND ? '\+' : '(?<!\\\\),';
        $value = preg_split('/\s*' . $pattern . '\s*/', $value, -1, PREG_SPLIT_NO_EMPTY);
        $value = array_map('trim', $value);
        $value = array_map(array('Datasource', 'removeEscapedCommas'), $value);
        return $value;
    }
public static function splitFilter($filter_type, $value)
    {
        $pattern = $filter_type === Datasource::FILTER_AND ? '\+' : '(?<!\\\\),';
        $value = preg_split('/\s*' . $pattern . '\s*/', $value, -1, PREG_SPLIT_NO_EMPTY);
        $value = array_map('trim', $value);
        $value = array_map(array('Datasource', 'removeEscapedCommas'), $value);
        return $value;
    }
public static function splitFilter ( $ filter_type , $ value ) { $ pattern = $ filter_type === Datasource :: FILTER_AND ? '\+' : '(?<!\\\\),' ; $ value = preg_split ( '/\s*' . $ pattern . '\s*/' , $ value , - 1 , PREG_SPLIT_NO_EMPTY ) ; $ value = array_map ( 'trim' , $ value ) ; $ value = array_map ( array ( 'Datasource' , 'removeEscapedCommas' ) , $ value ) ; return $ value ; }
Splits the filter string value into an array.

@since Symphony 2.7.0
@param int $filter_type
The filter's type, as determined by `determineFilterType()`.
Valid values are Datasource::FILTER_OR or Datasource::FILTER_AND
@param string $value
The filter's value
@return array
The splitted filter value, according to its type
Splits the filter string value into an array .