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
34 lines
751 B
<?php
|
|
|
|
namespace OSS\Model;
|
|
/**
|
|
* Class GetLiveChannelHistory
|
|
* @package OSS\Model
|
|
*/
|
|
class GetLiveChannelHistory implements XmlConfig
|
|
{
|
|
public function getLiveRecordList()
|
|
{
|
|
return $this->liveRecordList;
|
|
}
|
|
|
|
public function parseFromXml($strXml)
|
|
{
|
|
$xml = simplexml_load_string($strXml);
|
|
|
|
if (isset($xml->LiveRecord)) {
|
|
foreach ($xml->LiveRecord as $record) {
|
|
$liveRecord = new LiveChannelHistory();
|
|
$liveRecord->parseFromXmlNode($record);
|
|
$this->liveRecordList[] = $liveRecord;
|
|
}
|
|
}
|
|
}
|
|
|
|
public function serializeToXml()
|
|
{
|
|
throw new OssException("Not implemented.");
|
|
}
|
|
|
|
private $liveRecordList = array();
|
|
}
|
|
|