You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
751 B

6 years ago
  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. }