Element_OphTrOperationnote_Cataract::getIol_hidden PHP Method

getIol_hidden() public method

Check the eye draw for any IOL elements. If there is one, IOL fields should not be hidden.
public getIol_hidden ( ) : boolean
return boolean
    public function getIol_hidden()
    {
        if ($eyedraw = @json_decode($this->eyedraw)) {
            if (is_array($eyedraw)) {
                foreach ($eyedraw as $object) {
                    if (in_array($object->subclass, Yii::app()->params['eyedraw_iol_classes'])) {
                        return false;
                    }
                }
                return true;
            }
        }
        return false;
    }