This commit is contained in:
Qiang Xue
2015-01-24 08:57:53 -05:00
parent 5ab58ac15b
commit 5ab1d1a0d1
3 changed files with 7 additions and 4 deletions

View File

@ -26,7 +26,9 @@ class InlineValidator extends Validator
{
/**
* @var string|\Closure an anonymous function or the name of a model class method that will be
* called to perform the actual validation. The signature of the method should be like the following:
* called to perform the actual validation. The signature of the method should be like the following,
* where `$attribute` is the name of the attribute to be validated, and `$params` contains the value
* of [[params]] that you specify when declaring the inline validation rule:
*
* ~~~
* function foo($attribute, $params)
@ -34,7 +36,7 @@ class InlineValidator extends Validator
*/
public $method;
/**
* @var array additional parameters that are passed to the validation method
* @var mixed additional parameters that are passed to the validation method
*/
public $params;
/**