response.class.php
public function getRawDocuments($returnType)
  {
    if ($returnType == DOC_TYPE_ARRAY) {
      $res = array();
      foreach ($this->_documents as $key => $value) {
        $res[$key] = CPS_Response::simpleXmlToArray($value);
      }
      return $res;
    } else if ($returnType == DOC_TYPE_STDCLASS) {
      $res = array();
      foreach ($this->_documents as $key => $value) {
        $res[$key] = CPS_Response::simpleXmlToStdClass($value);
      }
      return $res;
    }
    return $this->_documents;
  }
public function getRawDocuments($returnType)
  {
    if ($returnType == DOC_TYPE_ARRAY) {
      $res = array();
      foreach ($this->_documents as $key => $value) {
        $res[$key] = CPS_Response::simpleXmlToArray($value);
      }
      return $res;
    } else if ($returnType == DOC_TYPE_STDCLASS) {
      $res = array();
      foreach ($this->_documents as $key => $value) {
        $res[$key] = CPS_Response::simpleXmlToStdClass($value);
      }
      return $res;
    }
    return $this->_documents;
  }
public function getRawDocuments ( $ returnType ) { if ( $ returnType == DOC_TYPE_ARRAY ) { $ res = array ( ) ; foreach ( $ this -> _documents as $ key => $ value ) { $ res [ $ key ] = CPS_Response :: simpleXmlToArray ( $ value ) ; } return $ res ; } else if ( $ returnType == DOC_TYPE_STDCLASS ) { $ res = array ( ) ; foreach ( $ this -> _documents as $ key => $ value ) { $ res [ $ key ] = CPS_Response :: simpleXmlToStdClass ( $ value ) ; } return $ res ; } return $ this -> _documents ; }
Returns the documents from the response
@return array
Returns the documents from the response