GetLiveChannelHistory.php 780 B

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