コード例 #1
0
ファイル: KalturaDataEntry.php プロジェクト: visomar/server
 public function doFromObject($dbDataEntry, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($dbDataEntry, $responseProfile);
     //$retrieveDataContentByGet = $dbDataEntry->getFromCustomData('retrieveDataContentByGet');
     $retrieveDataContentByGet = $dbDataEntry->getRetrieveDataContentByGet();
     if ($this->shouldGet('retrieveDataContentByGet', $responseProfile)) {
         $this->retrieveDataContentByGet = $retrieveDataContentByGet;
     }
     if ($retrieveDataContentByGet != true && $this->shouldGet('dataContent', $responseProfile)) {
         $this->dataContent = '';
     }
 }
コード例 #2
0
ファイル: KalturaPlaylist.php プロジェクト: DBezemer/server
 public function doFromObject($sourceObject, KalturaDetachedResponseProfile $responseProfile = null)
 {
     if (!$sourceObject) {
         return;
     }
     parent::doFromObject($sourceObject, $responseProfile);
     if ($this->shouldGet('executeUrl', $responseProfile)) {
         $this->executeUrl = myPlaylistUtils::toPlaylistUrl($sourceObject, requestUtils::getHost());
     }
     if ($this->shouldGet('filters', $responseProfile) && $this->playlistType == KalturaPlaylistType::DYNAMIC) {
         $this->playlistContentXmlToFilters();
     }
 }