concrete/src/Page/Collection/Version/Version.php
public function isMostRecent()
    {
        if (!isset($this->isMostRecent)) {
            $app = Facade::getFacadeApplication();
            $db = $app->make('database')->connection();
            $cvID = $db->fetchColumn('select cvID from CollectionVersions where cID = ? order by cvID desc', array($this->cID));
            $this->isMostRecent = ($cvID == $this->cvID);
        }

        return $this->isMostRecent;
    }
public function isMostRecent()
    {
        if (!isset($this->isMostRecent)) {
            $app = Facade::getFacadeApplication();
            $db = $app->make('database')->connection();
            $cvID = $db->fetchColumn('select cvID from CollectionVersions where cID = ? order by cvID desc', array($this->cID));
            $this->isMostRecent = ($cvID == $this->cvID);
        }

        return $this->isMostRecent;
    }
public function isMostRecent ( ) { if ( ! isset ( $ this -> isMostRecent ) ) { $ app = Facade :: getFacadeApplication ( ) ; $ db = $ app -> make ( 'database' ) -> connection ( ) ; $ cvID = $ db -> fetchColumn ( 'select cvID from CollectionVersions where cID = ? order by cvID desc' , array ( $ this -> cID ) ) ; $ this -> isMostRecent = ( $ cvID == $ this -> cvID ) ; } return $ this -> isMostRecent ; }
Is this the most recent version?

@return bool
Is this the most recent version?