Back to RulesInterface class

Method parse

public void
parse
(mixed &$segments, mixed &$vars)
Parses a URI to retrieve information for the right route through the component.
Parameters
  • array & $segments The URL segments to parse
  • array & $vars The vars that result from the segments
Returns
  • void
Since
  • 3.4

Method parse - Source code

/**
 * Parses a URI to retrieve information for the right route through the component.
 * This method should retrieve all its input from its method arguments.
 *
 * @param   array  &$segments  The URL segments to parse
 * @param   array  &$vars      The vars that result from the segments
 *
 * @return  void
 *
 * @since   3.4
 */
public function parse(&$segments, &$vars);