command_classes.php
public function getDocuments($type = DOC_TYPE_SIMPLEXML)
    {
        if (isset($this->_simpleXml->cursor_id)) return $this->getCursor($type);
        return parent::getRawDocuments($type);
    }
public function getDocuments($type = DOC_TYPE_SIMPLEXML)
    {
        if (isset($this->_simpleXml->cursor_id)) return $this->getCursor($type);
        return parent::getRawDocuments($type);
    }
public function getDocuments ( $ type = DOC_TYPE_SIMPLEXML ) { if ( isset ( $ this -> _simpleXml -> cursor_id ) ) return $ this -> getCursor ( $ type ) ; return parent :: getRawDocuments ( $ type ) ; }
Returns the documents from the response as an associative array, where keys are document IDs and values area document contents
@param int $type defines which datatype the returned documents will be in. Default is DOC_TYPE_SIMPLEXML, other possible values are DOC_TYPE_ARRAY and DOC_TYPE_STDCLASS
@return array
Returns the documents from the response as an associative array where keys are document IDs and values area document contents