Permalink
Browse files

Enhancements to the #1980.

  • Loading branch information...
1 parent c2722a4 commit de416ba3a3ee0ff936e169c9cf10cfb08c231320 @resurtm resurtm committed Mar 20, 2013
Showing with 14 additions and 12 deletions.
  1. +12 −11 framework/web/helpers/CHtml.php
  2. +2 −1 framework/web/widgets/CActiveForm.php
@@ -1238,18 +1238,18 @@ public static function activeLabelEx($model,$attribute,$htmlOptions=array())
return self::activeLabel($model,$realAttribute,$htmlOptions);
}
- /**
- * Generates a text field input for a model attribute.
- * If the attribute has input error, the input field's CSS class will
- * be appended with {@link errorCss}.
- * @param CModel $model the data model
- * @param string $attribute the attribute
- * @param array $htmlOptions additional HTML attributes. Besides normal HTML attributes, a few special
- * attributes are also recognized (see {@link clientChange} and {@link tag} for more details.)
- * @return string the generated input field
- * @see clientChange
+ /**
+ * Generates a text field input for a model attribute.
+ * If the attribute has input error, the input field's CSS class will
+ * be appended with {@link errorCss}.
+ * @param CModel $model the data model
+ * @param string $attribute the attribute
+ * @param array $htmlOptions additional HTML attributes. Besides normal HTML attributes, a few special
+ * attributes are also recognized (see {@link clientChange} and {@link tag} for more details.)
+ * @return string the generated input field
+ * @see clientChange
* @see activeInputField
- */
+ */
public static function activeTextField($model,$attribute,$htmlOptions=array())
{
self::resolveNameID($model,$attribute,$htmlOptions);
@@ -1268,6 +1268,7 @@ public static function activeTextField($model,$attribute,$htmlOptions=array())
* @return string the generated input field
* @see clientChange
* @see activeInputField
+ * @since 1.1.14
*/
public static function activeSearchField($model,$attribute,$htmlOptions=array())
{
@@ -669,12 +669,13 @@ public function textField($model,$attribute,$htmlOptions=array())
* @param string $attribute the attribute
* @param array $htmlOptions additional HTML attributes.
* @return string the generated input field
+ * @since 1.1.14
*/
public function searchField($model,$attribute,$htmlOptions=array())
{
return CHtml::activeSearchField($model,$attribute,$htmlOptions);
}
-
+
/**
* Renders a hidden field for a model attribute.
* This method is a wrapper of {@link CHtml::activeHiddenField}.

0 comments on commit de416ba

Please sign in to comment.