* * @link http://www.openeyes.org.uk * * @author OpenEyes <*****@*****.**> * @copyright Copyright (c) 2008-2011, Moorfields Eye Hospital NHS Foundation Trust * @copyright Copyright (c) 2011-2013, OpenEyes Foundation * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0 */ $usedGlaucomaStatuses = array(); if (isset($element->right_glaucoma_status_id)) { $usedGlaucomaStatuses[] = $element->right_glaucoma_status_id; } if (isset($element->left_glaucoma_status_id)) { $usedGlaucomaStatuses[] = $element->left_glaucoma_status_id; } $glaucomaStatus = CHtml::listData(\OEModule\OphCiExamination\models\OphCiExamination_GlaucomaStatus::model()->activeOrPk($usedGlaucomaStatuses)->findAll(array('order' => 'display_order asc')), 'id', 'name'); $usedDropRelatProblem = array(); if (isset($element->{'right_drop-related_prob_id'})) { $usedDropRelatProblem[] = $element->{'right_drop-related_prob_id'}; } if (isset($element->{'left_drop-related_prob_id'})) { $usedDropRelatProblem[] = $element->{'left_drop-related_prob_id'}; } $dropRelatProblem = CHtml::listData(\OEModule\OphCiExamination\models\OphCiExamination_DropRelProb::model()->activeOrPk($usedDropRelatProblem)->findAll(array('order' => 'display_order asc')), 'id', 'name'); $usedDrops = array(); if (isset($element->right_drops_id)) { $usedDrops[] = $element->right_drops_id; } if (isset($element->left_drops_id)) { $usedDrops[] = $element->left_drops_id; }