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


PHP Partner::setStreamEntriesOverageUnit方法代码示例

本文整理汇总了PHP中Partner::setStreamEntriesOverageUnit方法的典型用法代码示例。如果您正苦于以下问题:PHP Partner::setStreamEntriesOverageUnit方法的具体用法?PHP Partner::setStreamEntriesOverageUnit怎么用?PHP Partner::setStreamEntriesOverageUnit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Partner的用法示例。


在下文中一共展示了Partner::setStreamEntriesOverageUnit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: apply

 /**
  * @param Partner $partner
  */
 public function apply(Partner $partner)
 {
     if ($this->isNull('max')) {
         $this->max = null;
     }
     if ($this->isNull('overagePrice')) {
         $this->overagePrice = null;
     }
     if ($this->isNull('overageUnit')) {
         $this->overageUnit = null;
     }
     switch ($this->type) {
         case KalturaSystemPartnerLimitType::ENTRIES:
             $partner->setEntriesQuota($this->max);
             $partner->setEntriesOveragePrice($this->overagePrice);
             $partner->setEntriesOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::MONTHLY_STREAM_ENTRIES:
             $partner->setStreamEntriesQuota($this->max);
             $partner->setStreamEntriesOveragePrice($this->overagePrice);
             $partner->setStreamEntriesOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::MONTHLY_BANDWIDTH:
             $partner->setBandwidthQuota($this->max);
             $partner->setBandwidthOveragePrice($this->overagePrice);
             $partner->setBandwidthOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::PUBLISHERS:
             $partner->setPublishersQuota($this->max);
             $partner->setPublishersOveragePrice($this->overagePrice);
             $partner->setPublishersOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::LOGIN_USERS:
             $partner->setLoginUsersQuota($this->max);
             $partner->setLoginUsersOveragePrice($this->overagePrice);
             $partner->setLoginUsersOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::ADMIN_LOGIN_USERS:
             $partner->setAdminLoginUsersQuota($this->max);
             $partner->setAdminLoginUsersOveragePrice($this->overagePrice);
             $partner->setAdminLoginUsersOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::BULK_SIZE:
             $partner->setMaxBulkSize($this->max);
             $partner->setMaxBulkSizeOveragePrice($this->overagePrice);
             $partner->setMaxBulkSizeOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::MONTHLY_STORAGE:
             $partner->setMonthlyStorage($this->max);
             $partner->setMonthlyStorageOveragePrice($this->overagePrice);
             $partner->setMonthlyStorageOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::MONTHLY_STORAGE_AND_BANDWIDTH:
             $partner->setMonthlyStorageAndBandwidth($this->max);
             $partner->setMonthlyStorageAndBandwidthOveragePrice($this->overagePrice);
             $partner->setMonthlyStorageAndBandwidthOverageUnit($this->overageUnit);
             break;
         case KalturaSystemPartnerLimitType::END_USERS:
             $partner->setEndUsers($this->max);
             $partner->setEndUsersOveragePrice($this->overagePrice);
             $partner->setEndUsersOverageUnit($this->overageUnit);
             break;
     }
     parent::apply($partner);
 }
开发者ID:DBezemer,项目名称:server,代码行数:68,代码来源:KalturaSystemPartnerOveragedLimit.php


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