本文整理匯總了PHP中myPartnerUtils::entryConversionProfileHasFlavors方法的典型用法代碼示例。如果您正苦於以下問題:PHP myPartnerUtils::entryConversionProfileHasFlavors方法的具體用法?PHP myPartnerUtils::entryConversionProfileHasFlavors怎麽用?PHP myPartnerUtils::entryConversionProfileHasFlavors使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類myPartnerUtils
的用法示例。
在下文中一共展示了myPartnerUtils::entryConversionProfileHasFlavors方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addAction
/**
* Add entry
*
* @action add
* @param KalturaMediaEntry $entry
* @return KalturaMediaEntry
*/
function addAction(KalturaMediaEntry $entry)
{
if ($entry->conversionQuality && !$entry->conversionProfileId) {
$entry->conversionProfileId = $entry->conversionQuality;
}
$dbEntry = parent::add($entry, $entry->conversionProfileId);
$entryStatus = entryStatus::NO_CONTENT;
if (PermissionPeer::isValidForPartner(PermissionName::FEATURE_DRAFT_ENTRY_CONV_PROF_SELECTION, $dbEntry->getPartnerId())) {
$entryConversionProfileHasFlavors = myPartnerUtils::entryConversionProfileHasFlavors($dbEntry->getId());
if (!$entryConversionProfileHasFlavors) {
// If the entry's conversion profile dones't contain any flavors, mark the entry as READY
$entryStatus = entryStatus::READY;
}
}
$dbEntry->setStatus($entryStatus);
$dbEntry->save();
$trackEntry = new TrackEntry();
$trackEntry->setEntryId($dbEntry->getId());
$trackEntry->setTrackEventTypeId(TrackEntry::TRACK_ENTRY_EVENT_TYPE_ADD_ENTRY);
$trackEntry->setDescription(__METHOD__ . ":" . __LINE__ . "::ENTRY_MEDIA");
TrackEntry::addTrackEntry($trackEntry);
myNotificationMgr::createNotification(kNotificationJobData::NOTIFICATION_TYPE_ENTRY_ADD, $dbEntry, $dbEntry->getPartnerId(), null, null, null, $dbEntry->getId());
$entry->fromObject($dbEntry, $this->getResponseProfile());
return $entry;
}