public function getAdminUser($force = false) {

        if ($this->nb_admin_user === null || $force) {
            $this->nb_admin_user = null;
            if ($this->isValueNumeric('nb_server_admin_user_id')) {
                $nb_user = new CNabuUser($this->getAdminUserId());
                if ($nb_user->isFetched()) {
                    $this->nb_admin_user = $nb_user;
                }
            }
        }

        return $this->nb_admin_user;
    }
public function getAdminUser($force = false) {

        if ($this->nb_admin_user === null || $force) {
            $this->nb_admin_user = null;
            if ($this->isValueNumeric('nb_server_admin_user_id')) {
                $nb_user = new CNabuUser($this->getAdminUserId());
                if ($nb_user->isFetched()) {
                    $this->nb_admin_user = $nb_user;
                }
            }
        }

        return $this->nb_admin_user;
    }
public function getAdminUser ( $ force = false ) { if ( $ this -> nb_admin_user === null || $ force ) { $ this -> nb_admin_user = null ; if ( $ this -> isValueNumeric ( 'nb_server_admin_user_id' ) ) { $ nb_user = new CNabuUser ( $ this -> getAdminUserId ( ) ) ; if ( $ nb_user -> isFetched ( ) ) { $ this -> nb_admin_user = $ nb_user ; } } } return $ this -> nb_admin_user ; }
Gets the Admin User instance of this server instance.
@param bool $force If true forces to reload instance from the database storage.
@return CNabuUser Retuns a User instance if a user is assigned or null if none.
Gets the Admin User instance of this server instance .