Skip to content

Commit

Permalink
Add doc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 11, 2014
1 parent aa30d4b commit 46ce40b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/View/Input/Radio.php
Expand Up @@ -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;
Expand Down

0 comments on commit 46ce40b

Please sign in to comment.