本文整理汇总了PHP中BaseActiveRecordVersioned::afterFind方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseActiveRecordVersioned::afterFind方法的具体用法?PHP BaseActiveRecordVersioned::afterFind怎么用?PHP BaseActiveRecordVersioned::afterFind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseActiveRecordVersioned
的用法示例。
在下文中一共展示了BaseActiveRecordVersioned::afterFind方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: afterFind
protected function afterFind()
{
parent::afterFind();
if ($this->is_automated) {
$this->automated_source = json_decode($this->automated_source);
}
}
示例2: afterFind
/**
* Add relation to OphTrOperationnote_ProcedureListOperationElement if it exists
*/
protected function afterFind()
{
$this->addOpNoteElementRelation();
parent::afterFind();
}
示例3: afterFind
/**
* Raise event to allow external data sources to update patient
* @see CActiveRecord::afterFind()
*/
protected function afterFind()
{
parent::afterFind();
Yii::app()->event->dispatch('patient_after_find', array('patient' => $this));
}
示例4: afterFind
public function afterFind()
{
// strip out the seconds from the time field
foreach (array('start_time', 'end_time') as $time_attr) {
$this->{$time_attr} = substr($this->{$time_attr}, 0, 5);
}
parent::afterFind();
}