src/Main/View.php
public function get(): \TheCMSThread\Core\Main\View
    {
        if ($this->getLink() == '/') {
            $this->details = Model\Page::find(1);
        } else {
            $this->details = Model\Page::where('link', $this->getLink());
            if ($this->auth->allow(["min" => 3, "max" => 1]) === false) {
                $this->details->where('status', true);
            }
            $this->details = $this->details->first();
        }
        if ($this->details === null) {
            $this->details = false;
        }
        return $this;
    }
public function get(): \TheCMSThread\Core\Main\View
    {
        if ($this->getLink() == '/') {
            $this->details = Model\Page::find(1);
        } else {
            $this->details = Model\Page::where('link', $this->getLink());
            if ($this->auth->allow(["min" => 3, "max" => 1]) === false) {
                $this->details->where('status', true);
            }
            $this->details = $this->details->first();
        }
        if ($this->details === null) {
            $this->details = false;
        }
        return $this;
    }
public function get ( ) : \ TheCMSThread \ Core \ Main \ View { if ( $ this -> getLink ( ) == '/' ) { $ this -> details = Model \ Page :: find ( 1 ) ; } else { $ this -> details = Model \ Page :: where ( 'link' , $ this -> getLink ( ) ) ; if ( $ this -> auth -> allow ( [ "min" => 3 , "max" => 1 ] ) === false ) { $ this -> details -> where ( 'status' , true ) ; } $ this -> details = $ this -> details -> first ( ) ; } if ( $ this -> details === null ) { $ this -> details = false ; } return $ this ; }
Gets the current page details

@return  TheCMSThread\Core\Main\View
Gets the current page details