View/Helper/ClearanceHelper.php
public function parse($currentRoute, $permit) {
		$route = $permit['route'];

		$count = count($route);
		if ($count == 0) {
			return false;
		}

		foreach ($route as $key => $value) {
			if (isset($currentRoute[$key])) {
				$values = (is_array($value)) ? $value : array($value);
				foreach ($values as $k => $v) {
					if ($currentRoute[$key] == $v) {
						$count--;
					}
				}
			}
		}
		return $count == 0;
	}
public function parse($currentRoute, $permit) {
		$route = $permit['route'];

		$count = count($route);
		if ($count == 0) {
			return false;
		}

		foreach ($route as $key => $value) {
			if (isset($currentRoute[$key])) {
				$values = (is_array($value)) ? $value : array($value);
				foreach ($values as $k => $v) {
					if ($currentRoute[$key] == $v) {
						$count--;
					}
				}
			}
		}
		return $count == 0;
	}
public function parse ( $ currentRoute , $ permit ) { $ route = $ permit [ 'route' ] ; $ count = count ( $ route ) ; if ( $ count == 0 ) { return false ; } foreach ( $ route as $ key => $ value ) { if ( isset ( $ currentRoute [ $ key ] ) ) { $ values = ( is_array ( $ value ) ) ? $ value : array ( $ value ) ; foreach ( $ values as $ k => $ v ) { if ( $ currentRoute [ $ key ] == $ v ) { $ count -- ; } } } } return $ count == 0 ; }
Parses the passed route against a rule

@param string $currentRoute route being testing
@param string $permit Permit variable that contains a route being tested against
@return void
@author Jose Diaz-Gonzalez
Parses the passed route against a rule