src/FlexiPeeHP/FlexiBeeRO.php
function getNextRecordID($conditions = [])
    {
        $conditions['order'] = 'id@D';
        $conditions['limit'] = 1;
        $conditions[]        = 'id gt '.$this->getRecordID();
        $next                = $this->getColumnsFromFlexibee(['id'], $conditions);
        return (is_array($next) && array_key_exists(0, $next) && array_key_exists('id',
                $next[0])) ? intval($next[0]['id']) : null;
    }
function getNextRecordID($conditions = [])
    {
        $conditions['order'] = 'id@D';
        $conditions['limit'] = 1;
        $conditions[]        = 'id gt '.$this->getRecordID();
        $next                = $this->getColumnsFromFlexibee(['id'], $conditions);
        return (is_array($next) && array_key_exists(0, $next) && array_key_exists('id',
                $next[0])) ? intval($next[0]['id']) : null;
    }
function getNextRecordID ( $ conditions = [ ] ) { $ conditions [ 'order' ] = 'id@D' ; $ conditions [ 'limit' ] = 1 ; $ conditions [ ] = 'id gt ' . $ this -> getRecordID ( ) ; $ next = $ this -> getColumnsFromFlexibee ( [ 'id' ] , $ conditions ) ; return ( is_array ( $ next ) && array_key_exists ( 0 , $ next ) && array_key_exists ( 'id' , $ next [ 0 ] ) ) ? intval ( $ next [ 0 ] [ 'id' ] ) : null ; }
Get previous record ID

@param array $conditions optional

@return int|null
Get previous record ID