當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。