OEModule\OphCiExamination\components\OphCiExamination_API::getSnellenUnitId PHP Method

getSnellenUnitId() protected method

gets the id for the Snellen Metre unit type for VA.
protected getSnellenUnitId ( ) : integer | null
return integer | null
    protected function getSnellenUnitId()
    {
        if ($unit = models\OphCiExamination_VisualAcuityUnit::model()->find('name = ?', array('Snellen Metre'))) {
            return $unit->id;
        }
        return;
    }
OphCiExamination_API