GetLiveChannelHistory.php 751 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Class GetLiveChannelHistory
  5. * @package OSS\Model
  6. */
  7. class GetLiveChannelHistory implements XmlConfig
  8. {
  9. public function getLiveRecordList()
  10. {
  11. return $this->liveRecordList;
  12. }
  13. public function parseFromXml($strXml)
  14. {
  15. $xml = simplexml_load_string($strXml);
  16. if (isset($xml->LiveRecord)) {
  17. foreach ($xml->LiveRecord as $record) {
  18. $liveRecord = new LiveChannelHistory();
  19. $liveRecord->parseFromXmlNode($record);
  20. $this->liveRecordList[] = $liveRecord;
  21. }
  22. }
  23. }
  24. public function serializeToXml()
  25. {
  26. throw new OssException("Not implemented.");
  27. }
  28. private $liveRecordList = array();
  29. }