Skip to content
Permalink
Browse files

Add doc blocks.

  • Loading branch information...
markstory committed Jan 11, 2014
1 parent aa30d4b commit 46ce40b639a9e6d0ff42e41bbcbaec8164917e86
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/View/Input/Radio.php
@@ -137,6 +137,17 @@ protected function _isDisabled($radio, $disabled) {
return (!is_array($disabled) || in_array((string)$radio['value'], $disabled, !$isNumeric));
}
/**
* Renders a label element for a given radio button.
*
* In the future this might be refactored into a separate widget as other
* input types (multi-checkboxes) will also need labels generated.
*
* @param array $radio The input properties.
* @param false|string|array $label The properties for a label.
* @param boolean $escape Whether or not to HTML escape the label.
* @return string Generated label.
*/
protected function _renderLabel($radio, $label, $escape) {
if (!$label) {
return false;

0 comments on commit 46ce40b

Please sign in to comment.
You can’t perform that action at this time.