Beispiel #1
0
 /**
  * Retrieve playlist for playing purpose, based on content
  * @disableTags TAG_WIDGET_SESSION
  *
  * @action executeFromContent
  * @param KalturaPlaylistType $playlistType
  * @param string $playlistContent
  * @param string $detailed
  * @param KalturaFilterPager $pager
  * @return KalturaBaseEntryArray
  */
 function executeFromContentAction($playlistType, $playlistContent, $detailed = false, $pager = null)
 {
     myDbHelper::$use_alternative_con = myDbHelper::DB_HELPER_CONN_PROPEL3;
     if ($this->getKs() && is_object($this->getKs()) && $this->getKs()->isAdmin()) {
         myPlaylistUtils::setIsAdminKs(true);
     }
     $entryList = array();
     if ($playlistType == KalturaPlaylistType::DYNAMIC) {
         $entryList = myPlaylistUtils::executeDynamicPlaylist($this->getPartnerId(), $playlistContent, null, true, $pager);
     } else {
         if ($playlistType == KalturaPlaylistType::STATIC_LIST) {
             $entryList = myPlaylistUtils::executeStaticPlaylistFromEntryIdsString($playlistContent, null, true, $pager);
         }
     }
     myEntryUtils::updatePuserIdsForEntries($entryList);
     return KalturaBaseEntryArray::fromDbArray($entryList, $this->getResponseProfile());
 }