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