public getCommonOphthalmicDisorders ( integer $firm_id ) : array | ||
$firm_id | integer | |
return | array |
public function getCommonOphthalmicDisorders($firm_id)
{
if (empty($firm_id)) {
throw new CException('Firm is required');
}
$firm = \Firm::model()->findByPk($firm_id);
if ($firm) {
return \CommonOphthalmicDisorder::getListByGroupWithSecondaryTo($firm);
}
}