當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。