static function _find_match($token = '', $pattern = '') { global $config; $matched = false; if (empty($token) && !empty(self::$matched_tokens)) { $matched = true; } elseif ($token != '') { $matched = preg_match($pattern, $token, $matches); if ($matched !== false) { self::$matched_tokens = $matches; $matched = true; } } return $matched; }
static function current_matches(array $value = array()) { if (empty($value)) { return self::$current_tokens; } else { self::$matched_tokens = $value; } }