Practice::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Practice
return Practice the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

コード例 #1
0
ファイル: Patient.php プロジェクト: across-health/PASAPI
 private function mapPractice(\Patient $patient)
 {
     if ($code = $this->getAssignedProperty('PracticeCode')) {
         if ($practice = \Practice::model()->findByAttributes(array('code' => $code))) {
             $patient->practice_id = $practice->id;
         } else {
             $this->addWarning("Could not find Practice for code " . $code);
         }
     } else {
         if (!$this->partial_record) {
             $patient->practice_id = null;
         }
     }
 }
All Usage Examples Of Practice::model