private function getRealPath($activeOnly)
	{
		$path = $this->getPathEntity()->getPath();
		$active = $this->getPathEntity()->isActive();

		// Method will return NullPath instance
		if (is_null($path)) {
			$path = NullPath::getInstance();
			$this->getPathEntity()->setPath($path);
		} elseif ($activeOnly && ! $active) {
			$path = NullPath::getInstance();
		}

		return $path;
	}
private function getRealPath($activeOnly)
	{
		$path = $this->getPathEntity()->getPath();
		$active = $this->getPathEntity()->isActive();

		// Method will return NullPath instance
		if (is_null($path)) {
			$path = NullPath::getInstance();
			$this->getPathEntity()->setPath($path);
		} elseif ($activeOnly && ! $active) {
			$path = NullPath::getInstance();
		}

		return $path;
	}
private function getRealPath ( $ activeOnly ) { $ path = $ this -> getPathEntity ( ) -> getPath ( ) ; $ active = $ this -> getPathEntity ( ) -> isActive ( ) ; // Method will return NullPath instance if ( is_null ( $ path ) ) { $ path = NullPath :: getInstance ( ) ; $ this -> getPathEntity ( ) -> setPath ( $ path ) ; } elseif ( $ activeOnly && ! $ active ) { $ path = NullPath :: getInstance ( ) ; } return $ path ; }
Will return real path or null path record if page not active and only
active path is requested.

@param boolean $activeOnly
@return Path
Will return real path or null path record if page not active and only active path is requested .