Exemplo n.º 1
0
 public static function syndicate(CuePoint $cuePoint, SimpleXMLElement $scenes, SimpleXMLElement $scene = null)
 {
     if (!$cuePoint instanceof AdCuePoint) {
         return $scene;
     }
     if (!$scene) {
         $scene = kCuePointManager::syndicateCuePointXml($cuePoint, $scenes->addChild('scene-ad-cue-point'));
     }
     if ($cuePoint->getEndTime()) {
         $scene->addChild('sceneEndTime', kXml::integerToTime($cuePoint->getEndTime()));
     }
     if ($cuePoint->getName()) {
         $scene->addChild('sceneTitle', kMrssManager::stringToSafeXml($cuePoint->getName()));
     }
     if ($cuePoint->getSourceUrl()) {
         $scene->addChild('sourceUrl', htmlspecialchars($cuePoint->getSourceUrl()));
     }
     $scene->addChild('adType', $cuePoint->getAdType());
     $scene->addChild('protocolType', $cuePoint->getSubType());
     return $scene;
 }
 public static function syndicate(CuePoint $cuePoint, SimpleXMLElement $scenes, SimpleXMLElement $scene = null)
 {
     if (!$cuePoint instanceof Annotation) {
         return $scene;
     }
     if (!$scene) {
         $scene = kCuePointManager::syndicateCuePointXml($cuePoint, $scenes->addChild('scene-annotation'));
     }
     $scene->addChild('sceneEndTime', kXml::integerToTime($cuePoint->getEndTime()));
     if ($cuePoint->getText()) {
         $scene->addChild('sceneText', kMrssManager::stringToSafeXml($cuePoint->getText()));
     }
     if ($cuePoint->getParentId()) {
         $parentCuePoint = CuePointPeer::retrieveByPK($cuePoint->getParentId());
         if ($parentCuePoint) {
             if ($parentCuePoint->getSystemName()) {
                 $scene->addChild('parent', kMrssManager::stringToSafeXml($parentCuePoint->getSystemName()));
             }
             $scene->addChild('parentId', $parentCuePoint->getId());
         }
     }
     return $scene;
 }
Exemplo n.º 3
0
 public static function syndicate(CuePoint $cuePoint, SimpleXMLElement $scenes, SimpleXMLElement $scene = null)
 {
     if (!$cuePoint instanceof ThumbCuePoint) {
         return $scene;
     }
     if (!$scene) {
         $scene = kCuePointManager::syndicateCuePointXml($cuePoint, $scenes->addChild('scene-thumb-cue-point'));
     }
     if ($cuePoint->getEndTime()) {
         $scene->addChild('sceneEndTime', kXml::integerToTime($cuePoint->getEndTime()));
     }
     $scene->addChild('thumbAssetId', $cuePoint->getAssetId());
     return $scene;
 }
Exemplo n.º 4
0
 public static function syndicate(CuePoint $cuePoint, SimpleXMLElement $scenes, SimpleXMLElement $scene = null)
 {
     if (!$cuePoint instanceof CodeCuePoint) {
         return $scene;
     }
     if (!$scene) {
         $scene = kCuePointManager::syndicateCuePointXml($cuePoint, $scenes->addChild('scene-code-cue-point'));
     }
     if ($cuePoint->getEndTime()) {
         $scene->addChild('sceneEndTime', kXml::integerToTime($cuePoint->getEndTime()));
     }
     $scene->addChild('code', kMrssManager::stringToSafeXml($cuePoint->getName()));
     if ($cuePoint->getText()) {
         $scene->addChild('description', kMrssManager::stringToSafeXml($cuePoint->getText()));
     }
     return $scene;
 }