protected function yesNoText($value) { $text = ''; switch ($value) { case '0': $text = 'Not Checked'; break; case '1': $text = 'Yes'; break; case '2': $text = 'No'; break; } return $text; }