Back to RulesInterface class

Method preprocess

public void
preprocess
(mixed &$query)
Prepares a query set to be handed over to the build() method.
Parameters
  • array & $query The query array to process
Returns
  • void
Since
  • 3.4

Method preprocess - Source code

/**
 * Prepares a query set to be handed over to the build() method.
 * This should complete a partial query set to work as a complete non-SEFed
 * URL and in general make sure that all information is present and properly
 * formatted. For example, the Itemid should be retrieved and set here.
 *
 * @param   array  &$query  The query array to process
 *
 * @return  void
 *
 * @since   3.4
 */
public function preprocess(&$query);