本文整理汇总了PHP中PartnerPeer::removePartnerFromCache方法的典型用法代码示例。如果您正苦于以下问题:PHP PartnerPeer::removePartnerFromCache方法的具体用法?PHP PartnerPeer::removePartnerFromCache怎么用?PHP PartnerPeer::removePartnerFromCache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PartnerPeer
的用法示例。
在下文中一共展示了PartnerPeer::removePartnerFromCache方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setAsDefaultAction
/**
* Set Conversion Profile to be the partner default
*
* @action setAsDefault
* @param int $id
* @return KalturaConversionProfile
*/
public function setAsDefaultAction($id)
{
$conversionProfileDb = conversionProfile2Peer::retrieveByPK($id);
if (!$conversionProfileDb || $conversionProfileDb->getPartnerId() != $this->getPartnerId()) {
throw new KalturaAPIException(KalturaErrors::CONVERSION_PROFILE_ID_NOT_FOUND, $id);
}
$partner = $this->getPartner();
$partner->setDefaultConversionProfileId($id);
$partner->save();
PartnerPeer::removePartnerFromCache($partner->getId());
$conversionProfile = new KalturaConversionProfile();
$conversionProfile->fromObject($conversionProfileDb);
$conversionProfile->loadFlavorParamsIds($conversionProfileDb);
return $conversionProfile;
}
示例2: save
public function save(PropelPDO $con = null)
{
PartnerPeer::removePartnerFromCache($this->getId());
return parent::save($con);
}
示例3: markPartnerRoleCacheDirty
private static function markPartnerRoleCacheDirty($partnerId)
{
$partner = PartnerPeer::retrieveByPK($partnerId);
if (!$partner) {
KalturaLog::err("Cannot find partner with id [{$partnerId}]");
return;
}
$partner->setRoleCacheDirtyAt(time());
$partner->save();
PartnerPeer::removePartnerFromCache($partnerId);
}
示例4: updateConfigurationAction
/**
* @action updateConfiguration
* @param int $partnerId
* @param KalturaSystemPartnerConfiguration $configuration
*/
public function updateConfigurationAction($partnerId, KalturaSystemPartnerConfiguration $configuration)
{
$configuration->validatePropertyMinValue('adminLoginUsersQuota', 1, true);
$dbPartner = PartnerPeer::retrieveByPK($partnerId);
if (!$dbPartner) {
throw new KalturaAPIException(KalturaErrors::UNKNOWN_PARTNER_ID, $partnerId);
}
$configuration->toUpdatableObject($dbPartner);
$dbPartner->save();
PartnerPeer::removePartnerFromCache($partnerId);
}
示例5: updateStatusAction
/**
* Function to change a sub-publisher's status
* @action updateStatus
* @param int $id
* @param KalturaPartnerStatus $status
* @throws KalturaErrors::UNKNOWN_PARTNER_ID
*/
public function updateStatusAction($id, $status)
{
$c = PartnerPeer::getDefaultCriteria();
$c->addAnd(PartnerPeer::ID, $id);
$dbPartner = PartnerPeer::doSelectOne($c);
if (!$dbPartner) {
throw new KalturaAPIException(KalturaErrors::UNKNOWN_PARTNER_ID, $id);
}
$dbPartner->setStatus($status);
$dbPartner->save();
PartnerPeer::removePartnerFromCache($id);
}
示例6: updateConfigurationAction
/**
* @action updateConfiguration
* @param int $partnerId
* @param KalturaSystemPartnerConfiguration $configuration
*/
public function updateConfigurationAction($partnerId, KalturaSystemPartnerConfiguration $configuration)
{
$dbPartner = PartnerPeer::retrieveByPK($partnerId);
if (!$dbPartner) {
throw new KalturaAPIException(KalturaErrors::UNKNOWN_PARTNER_ID, $partnerId);
}
$configuration->toUpdatableObject($dbPartner);
$dbPartner->save();
PartnerPeer::removePartnerFromCache($partnerId);
}