public function getFilterString()
    {
        $filter_querystring = '';

        if (isset($_REQUEST['prepopulate']) && is_array($_REQUEST['prepopulate'])) {
            foreach ($_REQUEST['prepopulate'] as $field_id => $value) {
                $handle = FieldManager::fetchHandleFromID($field_id);
                // Properly decode and re-encode value for output
                $value = rawurlencode(rawurldecode($value));
                $filter_querystring .= sprintf('filter[%s]=%s&', $handle, $value);
            }
            $filter_querystring = trim($filter_querystring, '&');
        }

        // This is to prevent the value being interpreted as an additional GET
        // parameter. eg. filter[cat]=Minx&June, would come through as:
        // $_GET['cat'] = Minx
        // $_GET['June'] = ''
        $filter_querystring = preg_replace("/&amp;$/", '', $filter_querystring);

        return $filter_querystring ? '?' . $filter_querystring : null;
    }
public function getFilterString()
    {
        $filter_querystring = '';

        if (isset($_REQUEST['prepopulate']) && is_array($_REQUEST['prepopulate'])) {
            foreach ($_REQUEST['prepopulate'] as $field_id => $value) {
                $handle = FieldManager::fetchHandleFromID($field_id);
                // Properly decode and re-encode value for output
                $value = rawurlencode(rawurldecode($value));
                $filter_querystring .= sprintf('filter[%s]=%s&', $handle, $value);
            }
            $filter_querystring = trim($filter_querystring, '&');
        }

        // This is to prevent the value being interpreted as an additional GET
        // parameter. eg. filter[cat]=Minx&June, would come through as:
        // $_GET['cat'] = Minx
        // $_GET['June'] = ''
        $filter_querystring = preg_replace("/&amp;$/", '', $filter_querystring);

        return $filter_querystring ? '?' . $filter_querystring : null;
    }
public function getFilterString ( ) { $ filter_querystring = '' ; if ( isset ( $ _REQUEST [ 'prepopulate' ] ) && is_array ( $ _REQUEST [ 'prepopulate' ] ) ) { foreach ( $ _REQUEST [ 'prepopulate' ] as $ field_id => $ value ) { $ handle = FieldManager :: fetchHandleFromID ( $ field_id ) ; // Properly decode and re-encode value for output $ value = rawurlencode ( rawurldecode ( $ value ) ) ; $ filter_querystring .= sprintf ( 'filter[%s]=%s&' , $ handle , $ value ) ; } $ filter_querystring = trim ( $ filter_querystring , '&' ) ; } // This is to prevent the value being interpreted as an additional GET // parameter. eg. filter[cat]=Minx&June, would come through as: // $_GET['cat'] = Minx // $_GET['June'] = '' $ filter_querystring = preg_replace ( "/&amp;$/" , '' , $ filter_querystring ) ; return $ filter_querystring ? '?' . $ filter_querystring : null ; }
If the entry is being prepopulated, we may want to filter other views by this entry's
value. This function will create that filter query string.

@since Symphony 2.5.2
@return string
If the entry is being prepopulated we may want to filter other views by this entry s value . This function will create that filter query string .