This is the code documentation for the SproutCMS project

function applyRefineFilter()

Applies filters defined in the query string using a LIKE contains
Only fields which exist in the RefineBar will be filtered


array $ManagedAdminController->applyRefineFilter ( [ array $source_data ] );


  1. array $source_data = NULL
    Source data, e.g. $_GET or $_POST

Return value

  • array
    Three elements:
            [0] (array) WHERE clauses, to be joined by the calling code with AND
            [1] (array) Params to use in a Pdb::q call which uses the generated WHERE clauses
            [2] (array) Key-value pairs containing filter options extracted from the $_GET data