/** * Returns the static model of the specified AR class. * * @return the static model class */ public static function model($className = __CLASS__) { return parent::model($className); }
public function init() { if ($default_value = Element_OphCiExamination_VisualAcuity::model()->getSetting('default_value')) { $this->value = $default_value; } }