Commit c80c9dec by Qiang Xue

w

parent b51c3bc7
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CBooleanValidator class file. * CBooleanValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CBooleanValidator validates that the attribute value is either {@link trueValue} or {@link falseValue}. * CBooleanValidator validates that the attribute value is either {@link trueValue} or {@link falseValue}.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CCaptchaValidator class file. * CCaptchaValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CCaptchaValidator validates that the attribute value is the same as the verification code displayed in the CAPTCHA. * CCaptchaValidator validates that the attribute value is the same as the verification code displayed in the CAPTCHA.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CCompareValidator class file. * CCompareValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CCompareValidator compares the specified attribute value with another value and validates if they are equal. * CCompareValidator compares the specified attribute value with another value and validates if they are equal.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CDateValidator class file. * CDateValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CDateValidator verifies if the attribute represents a date, time or datetime. * CDateValidator verifies if the attribute represents a date, time or datetime.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CDefaultValueValidator class file. * CDefaultValueValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CDefaultValueValidator sets the attributes with the specified value. * CDefaultValueValidator sets the attributes with the specified value.
* It does not do validation. Its existence is mainly to allow * It does not do validation. Its existence is mainly to allow
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CEmailValidator class file. * CEmailValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CEmailValidator validates that the attribute value is a valid email address. * CEmailValidator validates that the attribute value is a valid email address.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CExistValidator class file. * CExistValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CExistValidator validates that the attribute value exists in a table. * CExistValidator validates that the attribute value exists in a table.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CFileValidator class file. * CFileValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CFileValidator verifies if an attribute is receiving a valid uploaded file. * CFileValidator verifies if an attribute is receiving a valid uploaded file.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CFilterValidator class file. * CFilterValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CFilterValidator transforms the data being validated based on a filter. * CFilterValidator transforms the data being validated based on a filter.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CInlineValidator class file. * CInlineValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CInlineValidator represents a validator which is defined as a method in the object being validated. * CInlineValidator represents a validator which is defined as a method in the object being validated.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CNumberValidator class file. * CNumberValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CNumberValidator validates that the attribute value is a number. * CNumberValidator validates that the attribute value is a number.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CRangeValidator class file. * CRangeValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CRangeValidator validates that the attribute value is among the list (specified via {@link range}). * CRangeValidator validates that the attribute value is among the list (specified via {@link range}).
* You may invert the validation logic with help of the {@link not} property (available since 1.1.5). * You may invert the validation logic with help of the {@link not} property (available since 1.1.5).
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CRegularExpressionValidator class file. * CRegularExpressionValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CRegularExpressionValidator validates that the attribute value matches to the specified {@link pattern regular expression}. * CRegularExpressionValidator validates that the attribute value matches to the specified {@link pattern regular expression}.
* You may invert the validation logic with help of the {@link not} property (available since 1.1.5). * You may invert the validation logic with help of the {@link not} property (available since 1.1.5).
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CRequiredValidator class file. * CRequiredValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CRequiredValidator validates that the specified attribute does not have null or empty value. * CRequiredValidator validates that the specified attribute does not have null or empty value.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CSafeValidator class file. * CSafeValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CSafeValidator marks the associated attributes to be safe for massive assignments. * CSafeValidator marks the associated attributes to be safe for massive assignments.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CStringValidator class file. * CStringValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CStringValidator validates that the attribute value is of certain length. * CStringValidator validates that the attribute value is of certain length.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CTypeValidator class file. * CTypeValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CTypeValidator verifies if the attribute is of the type specified by {@link type}. * CTypeValidator verifies if the attribute is of the type specified by {@link type}.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CUniqueValidator class file. * CUniqueValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CUniqueValidator validates that the attribute value is unique in the corresponding database table. * CUniqueValidator validates that the attribute value is unique in the corresponding database table.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CUnsafeValidator class file. * CUnsafeValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CUnsafeValidator marks the associated attributes to be unsafe so that they cannot be massively assigned. * CUnsafeValidator marks the associated attributes to be unsafe so that they cannot be massively assigned.
* *
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
/** /**
* CUrlValidator class file. * CUrlValidator class file.
* *
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/ * @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008-2011 Yii Software LLC * @copyright Copyright &copy; 2008-2012 Yii Software LLC
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\validators;
/** /**
* CUrlValidator validates that the attribute value is a valid http or https URL. * CUrlValidator validates that the attribute value is a valid http or https URL.
* *
......
...@@ -10,3 +10,6 @@ ...@@ -10,3 +10,6 @@
- `CList` is renamed to `Vector`, and `CMap` is renamed to `Dictionary`. - `CList` is renamed to `Vector`, and `CMap` is renamed to `Dictionary`.
Other collection classes are dropped in favor of SPL classes. Other collection classes are dropped in favor of SPL classes.
- `CFormModel` is removed. Please use `yii\base\Model` instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment