コード例 #1
0
ファイル: Refund.php プロジェクト: faisal80/hms
 protected function afterFind()
 {
     $this->fixDate($this, 'date', false);
     $this->fixDate($this, 'date_applied', false);
     parent::afterFind();
 }
コード例 #2
0
ファイル: Applicant.php プロジェクト: faisal80/hms
 protected function afterFind()
 {
     $this->fixDate($this, 'dob', false);
     $this->formatNIC();
     parent::afterFind();
 }
コード例 #3
0
ファイル: PaymentType.php プロジェクト: faisal80/hms
 /**
  * Returns the static model of the specified AR class.
  * Please note that you should have this exact method in all your CActiveRecord descendants!
  * @param string $className active record class name.
  * @return PaymentType the static model class
  */
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }
コード例 #4
0
ファイル: User.php プロジェクト: faisal80/hms
 /**
  * perform one-way encryption on the password before we store it in	the database
  */
 protected function afterValidate()
 {
     parent::afterValidate();
     $this->password = $this->encrypt($this->password);
 }
コード例 #5
0
ファイル: Scheme.php プロジェクト: faisal80/hms
 protected function afterFind()
 {
     $this->fixDate($this, 'draw_date', false);
     parent::afterFind();
 }