Esempio n. 1
0
 private function formatDriverCollection(\SimpleXMLElement $xml)
 {
     $responseCollection = new ResponseCollection("DriverCollection");
     foreach ($xml as $driver) {
         $responseCollection->addObject($this->formatDriver($driver));
     }
     return $responseCollection;
 }
Esempio n. 2
0
 private function formatTimingCollection(\SimpleXMLElement $xml)
 {
     $timingCollection = new ResponseCollection("TimingCollection");
     foreach ($xml as $timing) {
         $timingCollection->addObject($this->formatTimingObject($timing));
     }
     return $timingCollection;
 }
Esempio n. 3
0
 private function processResponseCollection(ResponseCollection $collection)
 {
     if ($collection->getCollectionName() == "DriverCollection") {
         foreach ($collection->getCollection() as $object) {
             if (!$this->processResponseObject($object)) {
                 //return false;
             }
         }
         return $collection;
     } else {
         return false;
     }
 }
Esempio n. 4
0
 public function processResponseCollection(ResponseCollection $collection)
 {
     foreach ($collection->getCollection() as $object) {
         $this->processResponseObject($object);
     }
 }