public function getAttributes($element, $subspecialty_id = null) { $attributes = models\OphCiExamination_Attribute::model()->findAllByElementAndSubspecialty($element->ElementType->id, $subspecialty_id); return $attributes; }