本文整理汇总了PHP中BaseActiveRecordVersioned::afterSave方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseActiveRecordVersioned::afterSave方法的具体用法?PHP BaseActiveRecordVersioned::afterSave怎么用?PHP BaseActiveRecordVersioned::afterSave使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseActiveRecordVersioned
的用法示例。
在下文中一共展示了BaseActiveRecordVersioned::afterSave方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: afterSave
public function afterSave()
{
if ($this->end_date) {
$this->removePatientAdherence();
}
return parent::afterSave();
}
示例2: afterSave
protected function afterSave()
{
return parent::afterSave();
}
示例3: afterSave
protected function afterSave()
{
Yii::app()->event->dispatch('OphTrOperationbooking_booking_after_save', array('patient' => $this->operation->event->episode->patient, 'admission_date' => $this->session->date, 'admission_time' => $this->admission_time, 'firm' => $this->session->firm, 'site' => $this->ward->site, 'ward_code' => $this->ward->code, 'theatre_code' => $this->session->theatre ? $this->session->theatre->code : null, 'cancellation_date' => $this->booking_cancellation_date, 'new' => $this->isNewRecord));
parent::afterSave();
}