src/Providers/PageProvider.php
public function navigation()
    {
        // caching logic
        if ($this->validCache($this->nav)) {
            // get the value from the class cache
            $value = $this->nav;
        } else {
            // pull from the cache
            $value = $this->getCache();
            // check if the value is valid
            if (!$this->validCache($value)) {
                // if is invalid, do the work
                $value = $this->sendGet();
                // add the value from the work to the cache
                $this->setCache($value);
            }
        }

        // cache the value in the class
        $this->nav = $value;

        // spit out the value
        return $value;
    }
public function navigation()
    {
        // caching logic
        if ($this->validCache($this->nav)) {
            // get the value from the class cache
            $value = $this->nav;
        } else {
            // pull from the cache
            $value = $this->getCache();
            // check if the value is valid
            if (!$this->validCache($value)) {
                // if is invalid, do the work
                $value = $this->sendGet();
                // add the value from the work to the cache
                $this->setCache($value);
            }
        }

        // cache the value in the class
        $this->nav = $value;

        // spit out the value
        return $value;
    }
public function navigation ( ) { // caching logic if ( $ this -> validCache ( $ this -> nav ) ) { // get the value from the class cache $ value = $ this -> nav ; } else { // pull from the cache $ value = $ this -> getCache ( ) ; // check if the value is valid if ( ! $ this -> validCache ( $ value ) ) { // if is invalid, do the work $ value = $ this -> sendGet ( ) ; // add the value from the work to the cache $ this -> setCache ( $ value ) ; } } // cache the value in the class $ this -> nav = $ value ; // spit out the value return $ value ; }
Get the page navigation.

@return array
Get the page navigation .