当前位置: 首页>>代码示例>>PHP>>正文


PHP PartnerPeer::removePartnerFromCache方法代码示例

本文整理汇总了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;
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:22,代码来源:ConversionProfileService.php

示例2: save

 public function save(PropelPDO $con = null)
 {
     PartnerPeer::removePartnerFromCache($this->getId());
     return parent::save($con);
 }
开发者ID:panigh,项目名称:server,代码行数:5,代码来源:Partner.php

示例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);
 }
开发者ID:kubrickfr,项目名称:server,代码行数:11,代码来源:kPermissionManager.php

示例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);
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:16,代码来源:SystemPartnerService.php

示例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);
 }
开发者ID:DBezemer,项目名称:server,代码行数:19,代码来源:VarConsoleService.php

示例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);
 }
开发者ID:kubrickfr,项目名称:server,代码行数:15,代码来源:SystemPartnerService.php


注:本文中的PartnerPeer::removePartnerFromCache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。