本文整理汇总了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);