Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
c80c9dec
Commit
c80c9dec
authored
Jul 22, 2011
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
b51c3bc7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
63 additions
and
40 deletions
+63
-40
BooleanValidator.php
framework/validators/BooleanValidator.php
+3
-2
CaptchaValidator.php
framework/validators/CaptchaValidator.php
+3
-2
CompareValidator.php
framework/validators/CompareValidator.php
+3
-2
DateValidator.php
framework/validators/DateValidator.php
+3
-2
DefaultValueValidator.php
framework/validators/DefaultValueValidator.php
+3
-2
EmailValidator.php
framework/validators/EmailValidator.php
+3
-2
ExistValidator.php
framework/validators/ExistValidator.php
+3
-2
FileValidator.php
framework/validators/FileValidator.php
+3
-2
FilterValidator.php
framework/validators/FilterValidator.php
+3
-2
InlineValidator.php
framework/validators/InlineValidator.php
+3
-2
NumberValidator.php
framework/validators/NumberValidator.php
+3
-2
RangeValidator.php
framework/validators/RangeValidator.php
+3
-2
RegularExpressionValidator.php
framework/validators/RegularExpressionValidator.php
+3
-2
RequiredValidator.php
framework/validators/RequiredValidator.php
+3
-2
SafeValidator.php
framework/validators/SafeValidator.php
+3
-2
StringValidator.php
framework/validators/StringValidator.php
+3
-2
TypeValidator.php
framework/validators/TypeValidator.php
+3
-2
UniqueValidator.php
framework/validators/UniqueValidator.php
+3
-2
UnsafeValidator.php
framework/validators/UnsafeValidator.php
+3
-2
UrlValidator.php
framework/validators/UrlValidator.php
+3
-2
Validator.php
framework/validators/Validator.php
+0
-0
upgrade.txt
upgrade.txt
+3
-0
No files found.
framework/validators/BooleanValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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}.
*
*
...
...
framework/validators/CaptchaValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/CompareValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/DateValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/DefaultValueValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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
...
...
framework/validators/EmailValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/ExistValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/FileValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/FilterValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/InlineValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/NumberValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/RangeValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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).
...
...
framework/validators/RegularExpressionValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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).
...
...
framework/validators/RequiredValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/SafeValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/StringValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/TypeValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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}.
*
*
...
...
framework/validators/UniqueValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/UnsafeValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/UrlValidator.php
View file @
c80c9dec
...
@@ -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 © 2008-201
1
Yii Software LLC
* @copyright Copyright © 2008-201
2
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.
*
*
...
...
framework/validators/Validator.php
View file @
c80c9dec
This diff is collapsed.
Click to expand it.
upgrade.txt
View file @
c80c9dec
...
@@ -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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment