SwatDB/SwatDBRecordsetWrapper.php
protected function instantiateRowWrapperObject($row)
    {
        if ($this->row_wrapper_class === null) {
            $object = $row;
        } else {
            $object = new $this->row_wrapper_class(
                $row,
                $this->getOption('read_only')
            );
        }

        return $object;
    }
protected function instantiateRowWrapperObject($row)
    {
        if ($this->row_wrapper_class === null) {
            $object = $row;
        } else {
            $object = new $this->row_wrapper_class(
                $row,
                $this->getOption('read_only')
            );
        }

        return $object;
    }
protected function instantiateRowWrapperObject ( $ row ) { if ( $ this -> row_wrapper_class === null ) { $ object = $ row ; } else { $ object = new $ this -> row_wrapper_class ( $ row , $ this -> getOption ( 'read_only' ) ) ; } return $ object ; }
Creates a new dataobject

@param stdClass $row the data row to use.

@return mixed the instantiated data object or the original object if
no <i>$row_wrapper_class</i> is defined for this
recordset wrapper.
Creates a new dataobject