当前位置: 首页>>代码示例>>PHP>>正文


PHP kXml::integerToTime方法代码示例

本文整理汇总了PHP中kXml::integerToTime方法的典型用法代码示例。如果您正苦于以下问题:PHP kXml::integerToTime方法的具体用法?PHP kXml::integerToTime怎么用?PHP kXml::integerToTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kXml的用法示例。


在下文中一共展示了kXml::integerToTime方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: syndicate

 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;
 }
开发者ID:DBezemer,项目名称:server,代码行数:21,代码来源:AdCuePointPlugin.php

示例2: syndicate

 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;
 }
开发者ID:DBezemer,项目名称:server,代码行数:14,代码来源:ThumbCuePointPlugin.php

示例3: syndicateCuePointXml

 /**
  * @param CuePoint $cuePoint
  * @param SimpleXMLElement $scene
  * @return SimpleXMLElement the created scene
  */
 public static function syndicateCuePointXml(CuePoint $cuePoint, SimpleXMLElement $scene)
 {
     $scene->addAttribute('sceneId', $cuePoint->getId());
     if ($cuePoint->getSystemName()) {
         $scene->addAttribute('systemName', kMrssManager::stringToSafeXml($cuePoint->getSystemName()));
     }
     $scene->addChild('sceneStartTime', kXml::integerToTime($cuePoint->getStartTime()));
     $scene->addChild('createdAt', $cuePoint->getCreatedAt(kMrssManager::FORMAT_DATETIME));
     $scene->addChild('updatedAt', $cuePoint->getCreatedAt(kMrssManager::FORMAT_DATETIME));
     if ($cuePoint->getPuserId()) {
         $scene->addChild('userId', kMrssManager::stringToSafeXml($cuePoint->getPuserId()));
     }
     if (trim($cuePoint->getTags(), " \r\n\t")) {
         $tags = $scene->addChild('tags');
         foreach (explode(',', $cuePoint->getTags()) as $tag) {
             $tags->addChild('tag', kMrssManager::stringToSafeXml($tag));
         }
     }
     return $scene;
 }
开发者ID:dozernz,项目名称:server,代码行数:25,代码来源:kCuePointManager.php

示例4: syndicate

 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;
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:23,代码来源:AnnotationPlugin.php

示例5: syndicate

 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;
 }
开发者ID:wzur,项目名称:server,代码行数:17,代码来源:CodeCuePointPlugin.php


注:本文中的kXml::integerToTime方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。