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
60e574a6
Commit
60e574a6
authored
May 16, 2013
by
resurtm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'yii/form' → 'yii/validation'
parent
bf1b2d99
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
BooleanValidator.php
yii/validators/BooleanValidator.php
+1
-1
CaptchaValidator.php
yii/validators/CaptchaValidator.php
+1
-1
CompareValidator.php
yii/validators/CompareValidator.php
+1
-1
EmailValidator.php
yii/validators/EmailValidator.php
+1
-1
NumberValidator.php
yii/validators/NumberValidator.php
+1
-1
RangeValidator.php
yii/validators/RangeValidator.php
+1
-1
RegularExpressionValidator.php
yii/validators/RegularExpressionValidator.php
+1
-1
RequiredValidator.php
yii/validators/RequiredValidator.php
+1
-1
StringValidator.php
yii/validators/StringValidator.php
+1
-1
UrlValidator.php
yii/validators/UrlValidator.php
+1
-1
No files found.
yii/validators/BooleanValidator.php
View file @
60e574a6
...
...
@@ -102,7 +102,7 @@ class BooleanValidator extends Validator
$options
[
'strict'
]
=
1
;
}
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
return
'yii.validation.boolean(value, messages, '
.
json_encode
(
$options
)
.
');'
;
}
}
yii/validators/CaptchaValidator.php
View file @
60e574a6
...
...
@@ -113,7 +113,7 @@ class CaptchaValidator extends Validator
$options
[
'skipOnEmpty'
]
=
1
;
}
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
return
'yii.validation.captcha(value, messages, '
.
json_encode
(
$options
)
.
');'
;
}
}
...
...
yii/validators/CompareValidator.php
View file @
60e574a6
...
...
@@ -205,7 +205,7 @@ class CompareValidator extends Validator
'{compareValue}'
=>
$compareValue
,
)));
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
return
'yii.validation.compare(value, messages, '
.
json_encode
(
$options
)
.
');'
;
}
}
yii/validators/EmailValidator.php
View file @
60e574a6
...
...
@@ -133,7 +133,7 @@ class EmailValidator extends Validator
$options
[
'skipOnEmpty'
]
=
1
;
}
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
if
(
$this
->
enableIDN
)
{
$view
->
registerAssetBundle
(
'punycode'
);
}
...
...
yii/validators/NumberValidator.php
View file @
60e574a6
...
...
@@ -151,7 +151,7 @@ class NumberValidator extends Validator
$options
[
'skipOnEmpty'
]
=
1
;
}
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
return
'yii.validation.number(value, messages, '
.
Json
::
encode
(
$options
)
.
');'
;
}
}
yii/validators/RangeValidator.php
View file @
60e574a6
...
...
@@ -103,7 +103,7 @@ class RangeValidator extends Validator
$options
[
'skipOnEmpty'
]
=
1
;
}
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
return
'yii.validation.range(value, messages, '
.
json_encode
(
$options
)
.
');'
;
}
}
yii/validators/RegularExpressionValidator.php
View file @
60e574a6
...
...
@@ -112,7 +112,7 @@ class RegularExpressionValidator extends Validator
$options
[
'skipOnEmpty'
]
=
1
;
}
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
return
'yii.validation.regularExpression(value, messages, '
.
Json
::
encode
(
$options
)
.
');'
;
}
}
yii/validators/RequiredValidator.php
View file @
60e574a6
...
...
@@ -126,7 +126,7 @@ class RequiredValidator extends Validator
'{value}'
=>
$object
->
$attribute
,
)));
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
return
'yii.validation.required(value, messages, '
.
json_encode
(
$options
)
.
');'
;
}
}
yii/validators/StringValidator.php
View file @
60e574a6
...
...
@@ -170,7 +170,7 @@ class StringValidator extends Validator
$options
[
'skipOnEmpty'
]
=
1
;
}
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
return
'yii.validation.string(value, messages, '
.
json_encode
(
$options
)
.
');'
;
}
}
...
...
yii/validators/UrlValidator.php
View file @
60e574a6
...
...
@@ -138,7 +138,7 @@ class UrlValidator extends Validator
$options
[
'defaultScheme'
]
=
$this
->
defaultScheme
;
}
$view
->
registerAssetBundle
(
'yii/
form
'
);
$view
->
registerAssetBundle
(
'yii/
validation
'
);
if
(
$this
->
enableIDN
)
{
$view
->
registerAssetBundle
(
'punycode'
);
}
...
...
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