concrete/src/Page/Page.php
public function getCollectionCheckedOutUserName()
    {
        $db = Database::connection();
        $query = 'select cCheckedOutUID from Pages where cID = ?';
        $vals = [$this->cID];
        $checkedOutId = $db->fetchColumn($query, $vals);
        if (is_object(UserInfo::getByID($checkedOutId))) {
            $ui = UserInfo::getByID($checkedOutId);
            $name = $ui->getUserName();
        } else {
            $name = t('Unknown User');
        }

        return $name;
    }
public function getCollectionCheckedOutUserName()
    {
        $db = Database::connection();
        $query = 'select cCheckedOutUID from Pages where cID = ?';
        $vals = [$this->cID];
        $checkedOutId = $db->fetchColumn($query, $vals);
        if (is_object(UserInfo::getByID($checkedOutId))) {
            $ui = UserInfo::getByID($checkedOutId);
            $name = $ui->getUserName();
        } else {
            $name = t('Unknown User');
        }

        return $name;
    }
public function getCollectionCheckedOutUserName ( ) { $ db = Database :: connection ( ) ; $ query = 'select cCheckedOutUID from Pages where cID = ?' ; $ vals = [ $ this -> cID ] ; $ checkedOutId = $ db -> fetchColumn ( $ query , $ vals ) ; if ( is_object ( UserInfo :: getByID ( $ checkedOutId ) ) ) { $ ui = UserInfo :: getByID ( $ checkedOutId ) ; $ name = $ ui -> getUserName ( ) ; } else { $ name = t ( 'Unknown User' ) ; } return $ name ; }
Gets the user that is editing the current page.

@return string
Gets the user that is editing the current page .