00001 <?php
00002
00011 class SDRResponse extends SXMLModel {
00012 private static $ATTRIBUTES = array(
00013 'responseTime' => array('type' => 'string'),
00014 'request' => array('type' => 'string'),
00015 'method' => array('type' => 'string'),
00016 'type' => array('type' => 'string'),
00017 'query' => array('type' => 'string'),
00018 'SearchResults' => array('type' => null)
00019 );
00020 private $serviceRequest;
00021
00033 public function __construct($listType, $serviceRequest = null,
00034 $extraFields = array(), $xml = null) {
00035 parent::__construct();
00036
00037 $this->serviceRequest = $serviceRequest;
00038
00039 self::$ATTRIBUTES['SearchResults']['type'] = $listType;
00040 self::$ATTRIBUTES = array_merge(self::$ATTRIBUTES, $extraFields);
00041
00042 $this->registerAttributes(self::$ATTRIBUTES);
00043 $this->registerNodeName('ShodorDataRepository');
00044
00045 if($xml)
00046 $this->setXML($xml);
00047 }
00048
00056 public function getServiceRequest() {
00057 return $this->serviceRequest;
00058 }
00059 }
00060
00061 ?>