irm-1.6-b3/MDB/oci8.php
/**
     * fetch a lob value from a result set
     * 
     * @param int $lob handle to a lob created by the createLob() function
     * @return mixed MDB_OK on success, a MDB error on failure
     * @access private 
     */
fetch a lob value from a result set

@param int $lob handle to a lob created by the createLob() function
@return mixed MDB_OK on success, a MDB error on failure
@access private
fetch a lob value from a result set @param int $lob handle to a lob created by the createLob () function @return mixed MDB_OK on success a MDB error on failure @access private
function _retrieveLob($lob)
    {
        if (!isset($this->lobs[$lob])) {
            return($this->raiseError(MDB_ERROR, NULL, NULL,
                'Retrieve LOB: it was not specified a valid lob'));
        }
        if (!isset($this->lobs[$lob]['Value'])) {
            unset($lob_object);
            $result = $this->lobs[$lob]['Result'];
            $row = $this->lobs[$lob]['Row'];
            $field = $this->lobs[$lob]['Field'];
            $lob_object = $this->fetch($result, $row, $field);
            if (MDB::isError($lob_object)) {
                return $lob_object;
            }
            if (gettype($lob_object) != 'object') {
                return($this->raiseError(MDB_ERROR, NULL, NULL,
                    'Retrieve LOB: attemped to retrieve LOB from non existing or NULL column'));
            }
            $this->lobs[$lob]['Value'] = $lob_object->load();
        }
        return(MDB_OK);
    }
function _retrieveLob ( $ lob ) { if ( ! isset ( $ this -> lobs [ $ lob ] ) ) { return ( $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'Retrieve LOB: it was not specified a valid lob' ) ) ; } if ( ! isset ( $ this -> lobs [ $ lob ] [ 'Value' ] ) ) { unset ( $ lob_object ) ; $ result = $ this -> lobs [ $ lob ] [ 'Result' ] ; $ row = $ this -> lobs [ $ lob ] [ 'Row' ] ; $ field = $ this -> lobs [ $ lob ] [ 'Field' ] ; $ lob_object = $ this -> fetch ( $ result , $ row , $ field ) ; if ( MDB :: isError ( $ lob_object ) ) { return $ lob_object ; } if ( gettype ( $ lob_object ) != 'object' ) { return ( $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'Retrieve LOB: attemped to retrieve LOB from non existing or NULL column' ) ) ; } $ this -> lobs [ $ lob ] [ 'Value' ] = $ lob_object -> load ( ) ; } return ( MDB_OK ) ; }
fetch a lob value from a result set
fetch a lob value from a result set