本文整理匯總了PHP中myPartnerUtils::copyConversionProfiles方法的典型用法代碼示例。如果您正苦於以下問題:PHP myPartnerUtils::copyConversionProfiles方法的具體用法?PHP myPartnerUtils::copyConversionProfiles怎麽用?PHP myPartnerUtils::copyConversionProfiles使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類myPartnerUtils
的用法示例。
在下文中一共展示了myPartnerUtils::copyConversionProfiles方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: copyMissingConversionProfiles
private function copyMissingConversionProfiles(Partner $partner)
{
$templatePartner = PartnerPeer::retrieveByPK($partner->getI18nTemplatePartnerId() ? $partner->getI18nTemplatePartnerId() : kConf::get('template_partner_id'));
if ($templatePartner) {
myPartnerUtils::copyConversionProfiles($templatePartner, $partner, true);
}
}
示例2: handleFlvSrcAssetsWithMbrTag
$partner->setDefaultConversionProfileId($oldCp->getConversionProfile2Id());
$partner->setKmcVersion('4');
$partner->save();
KalturaLog::debug("converted old default conversion profile. new DefaultConversionProfileId is: " . $partner->getDefaultConversionProfileId());
die;
}
}
}
}
// if we didn't exit so far, copy from template
if (DEBUG) {
KalturaLog::debug("This was dry-run, going to copy from template_partner_id");
die;
} else {
$sourcePartner = PartnerPeer::retrieveByPK(kConf::get('template_partner_id'));
myPartnerUtils::copyConversionProfiles($sourcePartner, $partner);
KalturaLog::debug("copied from template partner. DefaultConversionProfileId: " . $partner->getDefaultConversionProfileId());
$partner->setKmcVersion('4');
$partner->save();
die;
}
function handleFlvSrcAssetsWithMbrTag(Partner $partner, $should_do_flavors_to_web = NULL, $force_upgrade = NULL)
{
$c = new Criteria();
$c->add(assetPeer::PARTNER_ID, $partner->getId());
$c->add(assetPeer::TAGS, 'mbr');
$c->add(assetPeer::FILE_EXT, 'flv');
$c->add(assetPeer::FLAVOR_PARAMS_ID, 0);
assetPeer::setDefaultCriteriaFilter(false);
$flavorsCount = assetPeer::doCount($c);
assetPeer::setDefaultCriteriaFilter(true);