src/Digithis/Activehelper/Activehelper.php
public function is()
	{
		$this->routes = array(); 

		foreach(func_get_args() as $param)
		{
			if(!is_array($param))
			{
				$this->routes[] = $param;
				continue;
			}

			foreach ($param as $p) 
			{
				$this->routes[] = $p;
			}
		}

		$this->request = Request::path();

		$this->parseRoutes();

		foreach($this->routes as $route)
		{
			if(!Request::is($route))
			{
				continue;
			}

			foreach($this->bad_routes as $bad_route)
			{
				if(str_is($bad_route, $this->request))
				{
					return false;
				}
			}

			return true;		
		}

		return false;
	}
public function is()
	{
		$this->routes = array(); 

		foreach(func_get_args() as $param)
		{
			if(!is_array($param))
			{
				$this->routes[] = $param;
				continue;
			}

			foreach ($param as $p) 
			{
				$this->routes[] = $p;
			}
		}

		$this->request = Request::path();

		$this->parseRoutes();

		foreach($this->routes as $route)
		{
			if(!Request::is($route))
			{
				continue;
			}

			foreach($this->bad_routes as $bad_route)
			{
				if(str_is($bad_route, $this->request))
				{
					return false;
				}
			}

			return true;		
		}

		return false;
	}
public function is ( ) { $ this -> routes = array ( ) ; foreach ( func_get_args ( ) as $ param ) { if ( ! is_array ( $ param ) ) { $ this -> routes [ ] = $ param ; continue ; } foreach ( $ param as $ p ) { $ this -> routes [ ] = $ p ; } } $ this -> request = Request :: path ( ) ; $ this -> parseRoutes ( ) ; foreach ( $ this -> routes as $ route ) { if ( ! Request :: is ( $ route ) ) { continue ; } foreach ( $ this -> bad_routes as $ bad_route ) { if ( str_is ( $ bad_route , $ this -> request ) ) { return false ; } } return true ; } return false ; }
Get current state.

@return boolean
Get current state .