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


PHP OwnedSecurableItem::afterSave方法代码示例

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


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

示例1: afterSave

 protected function afterSave()
 {
     if ($this->isNewModel && !$this->isCompleted) {
         Yii::app()->jobQueue->add('Export', 5);
     }
     parent::afterSave();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:7,代码来源:ExportItem.php

示例2: afterSave

 protected function afterSave()
 {
     Yii::app()->custom->resolveOpportunityCustomActionsAfterSave($this);
     parent::afterSave();
 }
开发者ID:KulturedKitsch,项目名称:kulturedkitsch.info,代码行数:5,代码来源:Opportunity.php

示例3: afterSave

 /**
  * After a mission is saved, if it is new, then a notification should go out to all users alerting them
  * of a new mission.  Depending on the status change of the mission, a notification can go out as well to
  * the owner or user who has taken the mission.
  */
 protected function afterSave()
 {
     if ($this->isNewModel && $this->getScenario() != 'importModel') {
         MissionsUtil::makeAndSubmitNewMissionNotificationMessage($this);
     }
     if (isset($this->originalAttributeValues['status']) && !$this->isNewModel && $this->originalAttributeValues['status'] != $this->status) {
         if ($this->status == self::STATUS_TAKEN) {
             $messageContent = Zurmo::t('MissionsModule', 'A mission you created has been taken on by {takenByUserName}', array('{takenByUserName}' => strval($this->takenByUser)));
             MissionsUtil::makeAndSubmitStatusChangeNotificationMessage($this->owner, $this->id, $messageContent);
         } elseif ($this->status == self::STATUS_COMPLETED) {
             $messageContent = Zurmo::t('MissionsModule', 'A mission you created has been completed');
             MissionsUtil::makeAndSubmitStatusChangeNotificationMessage($this->owner, $this->id, $messageContent);
         } elseif ($this->status == self::STATUS_REJECTED && $this->takenByUser->id > 0) {
             $messageContent = Zurmo::t('MissionsModule', 'A mission you completed has been rejected');
             MissionsUtil::makeAndSubmitStatusChangeNotificationMessage($this->takenByUser, $this->id, $messageContent);
         } elseif ($this->status == self::STATUS_ACCEPTED && $this->takenByUser->id > 0) {
             $messageContent = Zurmo::t('MissionsModule', 'A mission you completed has been accepted');
             MissionsUtil::makeAndSubmitStatusChangeNotificationMessage($this->takenByUser, $this->id, $messageContent);
         }
     }
     parent::afterSave();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:27,代码来源:Mission.php

示例4: afterSave

 protected function afterSave()
 {
     $this->deleteCampaignItemsForUnsetEmailMessagesIfPausedToggledToActiveStatus();
     $resolveForOldModel = false;
     if (isset($this->originalAttributeValues['status']) && $this->status == static::STATUS_ACTIVE) {
         $resolveForOldModel = true;
     }
     Yii::app()->jobQueue->resolveToAddJobTypeByModelByDateTimeAttribute($this, 'sendOnDateTime', 'CampaignGenerateDueCampaignItems', $resolveForOldModel);
     parent::afterSave();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:10,代码来源:Campaign.php

示例5: afterSave

 /**
  * Handle audit of projects after save
  */
 protected function afterSave()
 {
     if ($this->getIsNewModel()) {
         ProjectAuditEvent::logAuditEvent(ProjectAuditEvent::PROJECT_CREATED, $this, $this->name);
     } elseif ($this->status == Project::STATUS_ARCHIVED) {
         ProjectAuditEvent::logAuditEvent(ProjectAuditEvent::PROJECT_ARCHIVED, $this, $this->name);
     }
     parent::afterSave();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:12,代码来源:Project.php

示例6: afterSave

 /**
  * Handle audit of projects after save
  */
 protected function afterSave()
 {
     if ($this->getIsNewModel()) {
         ProjectAuditEvent::logAuditEvent(ProjectAuditEvent::PROJECT_CREATED, $this, $this->name);
         ProjectsNotificationUtil::submitProjectNotificationMessage($this, ProjectAuditEvent::PROJECT_CREATED);
     } elseif ($this->status == Project::STATUS_ARCHIVED && isset($this->originalAttributeValues['status'])) {
         ProjectAuditEvent::logAuditEvent(ProjectAuditEvent::PROJECT_ARCHIVED, $this, $this->name);
         ProjectsNotificationUtil::submitProjectNotificationMessage($this, ProjectAuditEvent::PROJECT_ARCHIVED);
     }
     parent::afterSave();
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:14,代码来源:Project.php

示例7: afterSave

 protected function afterSave()
 {
     Yii::app()->jobQueue->resolveToAddJobTypeByModelByDateTimeAttribute($this, 'sendOnDateTime', 'CampaignGenerateDueCampaignItems');
     parent::afterSave();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:5,代码来源:Campaign.php

示例8: afterSave

 protected function afterSave()
 {
     $this->Contract_Number = 'Agmnt-' . $this->id;
     $this->save();
     parent::afterSave();
 }
开发者ID:RamaKavanan,项目名称:BaseVersion,代码行数:6,代码来源:Agreement.php


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