Browse Source

Update doc blocks.

Add missing templates sections.
mark_story 12 years ago
parent
commit
7be864873b
2 changed files with 6 additions and 2 deletions
  1. 5 0
      src/View/Input/Label.php
  2. 1 2
      src/View/Input/Radio.php

+ 5 - 0
src/View/Input/Label.php

@@ -32,6 +32,11 @@ class Label {
 /**
  * Constructor.
  *
+ * This class uses the following template:
+ *
+ * - `label` Used to generate the label for a radio button.
+ *   Can use the following variables `attrs`, `text` and `input`.
+ *
  * @param Cake\View\StringTemplate $templates
  */
 	public function __construct($templates) {

+ 1 - 2
src/View/Input/Radio.php

@@ -44,13 +44,12 @@ class Radio {
  *
  * - `radio` Used to generate the input for a radio button.
  *   Can use the following variables `name`, `value`, `attrs`.
- * - `label` Used to generate the label for a radio button.
- *   Can use the following variables `attrs`, `text` and `input`.
  * - `radioContainer` Used to generate the container element for
  *   the radio + input element. Can use the `input` and `label`
  *   variables.
  *
  * @param Cake\View\StringTemplate $templates
+ * @param Cake\View\Input\Label $label
  */
 	public function __construct($templates, $label) {
 		$this->_templates = $templates;