public function getFields($path = null)
    {
        $path = $path ?:  __DIR__.'/../tmp-fields.txt';

        // Have we already fetched the fields?
        if (! is_null($this->fields))
        {
            return $this->fields;
        }

        // If not, let's grab it if it exists.
        if (file_exists($path))
        {
            return $this->fields = json_decode($this->file->get($path), true);
        }

        // Well, it doesn't exist. Just return false
        // from now on for this instance.
        $this->fields = false;

        return false;
    }
public function getFields($path = null)
    {
        $path = $path ?:  __DIR__.'/../tmp-fields.txt';

        // Have we already fetched the fields?
        if (! is_null($this->fields))
        {
            return $this->fields;
        }

        // If not, let's grab it if it exists.
        if (file_exists($path))
        {
            return $this->fields = json_decode($this->file->get($path), true);
        }

        // Well, it doesn't exist. Just return false
        // from now on for this instance.
        $this->fields = false;

        return false;
    }
public function getFields ( $ path = null ) { $ path = $ path ? : __DIR__ . '/../tmp-fields.txt' ; // Have we already fetched the fields? if ( ! is_null ( $ this -> fields ) ) { return $ this -> fields ; } // If not, let's grab it if it exists. if ( file_exists ( $ path ) ) { return $ this -> fields = json_decode ( $ this -> file -> get ( $ path ) , true ) ; } // Well, it doesn't exist. Just return false // from now on for this instance. $ this -> fields = false ; return false ; }
Fetches the cached fields for the resource

@param string $path
@return array|false
Fetches the cached fields for the resource