public function read($uri = null, $params = array())
    {
        $this->uri = (isset($uri)) ? (string)$uri : $this->uri;
        $params = array_merge(array('format' => 'xml'), $params);
        return parent::read($this->uri, $params);
    }
public function read($uri = null, $params = array())
    {
        $this->uri = (isset($uri)) ? (string)$uri : $this->uri;
        $params = array_merge(array('format' => 'xml'), $params);
        return parent::read($this->uri, $params);
    }
public function read ( $ uri = null , $ params = array ( ) ) { $ this -> uri = ( isset ( $ uri ) ) ? ( string ) $ uri : $ this -> uri ; $ params = array_merge ( array ( 'format' => 'xml' ) , $ params ) ; return parent :: read ( $ this -> uri , $ params ) ; }
Read an XML document from the database.

@param string $uri A document URI.
@param array $params Optional additional parameters to pass when reading.
@return string The document content.
Read an XML document from the database .