-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from vaniocz/1.2
Updated 1.2 to support Symfony 2.6 & 2.7
- Loading branch information
Showing
12 changed files
with
75 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,4 @@ | |
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsFalse() { | ||
this.message = ''; | ||
|
||
this.validate = function (value) { | ||
var errors = []; | ||
if ('' !== value && false !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} | ||
var SymfonyComponentValidatorConstraintsFalse = SymfonyComponentValidatorConstraintsIsFalse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//noinspection JSUnusedGlobalSymbols | ||
/** | ||
* Checks if value is (bool) false | ||
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsIsFalse() { | ||
this.message = ''; | ||
|
||
this.validate = function (value) { | ||
var errors = []; | ||
if ('' !== value && false !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//noinspection JSUnusedGlobalSymbols | ||
/** | ||
* Checks if value is null | ||
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsIsNull() { | ||
this.message = ''; | ||
|
||
this.validate = function(value) { | ||
var errors = []; | ||
if (null !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//noinspection JSUnusedGlobalSymbols | ||
/** | ||
* Checks if value is (bool) true | ||
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsIsTrue() { | ||
this.message = ''; | ||
|
||
this.validate = function(value) { | ||
if ('' === value) { | ||
return []; | ||
} | ||
|
||
var errors = []; | ||
if (true !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,4 @@ | |
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsNull() { | ||
this.message = ''; | ||
|
||
this.validate = function(value) { | ||
var errors = []; | ||
if (null !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} | ||
var SymfonyComponentValidatorConstraintsNull = SymfonyComponentValidatorConstraintsIsNull; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,4 @@ | |
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsTrue() { | ||
this.message = ''; | ||
|
||
this.validate = function(value) { | ||
if ('' === value) { | ||
return []; | ||
} | ||
|
||
var errors = []; | ||
if (true !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} | ||
|
||
var SymfonyComponentValidatorConstraintsTrue = SymfonyComponentValidatorConstraintsIsTrue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters