Skip to content

Commit 32a2b34

Browse files
committed
Documentation
1 parent d42ba70 commit 32a2b34

16 files changed

+33
-0
lines changed

src/PHPValidation/Rules/Creditcard.php

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
/**
66
* Makes the element require a credit card number.
77
*
8+
* http://jqueryvalidation.org/creditcard-method/
9+
* based on http://en.wikipedia.org/wiki/Luhn/
10+
*
811
* `creditcard`
912
*/
1013
class Creditcard extends Base

src/PHPValidation/Rules/Date.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a date.
77
*
8+
* http://jqueryvalidation.org/date-method/
9+
*
810
* `date`
911
*/
1012
class Date extends Base

src/PHPValidation/Rules/DateISO.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require an ISO date.
77
*
8+
* http://jqueryvalidation.org/dateISO-method/
9+
*
810
* `dateISO`
911
*/
1012
class DateISO extends Base

src/PHPValidation/Rules/Digits.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require digits only.
77
*
8+
* http://jqueryvalidation.org/digits-method/
9+
*
810
* `digits`
911
*/
1012
class Digits extends Base

src/PHPValidation/Rules/Email.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a valid email.
77
*
8+
* http://jqueryvalidation.org/email-method/
9+
*
810
* `email`
911
*/
1012
class Email extends Base

src/PHPValidation/Rules/EqualTo.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Requires the element to be the same as another one.
77
*
8+
* http://jqueryvalidation.org/equalTo-method/
9+
*
810
* `equalTo`
911
*/
1012
class EqualTo extends Base

src/PHPValidation/Rules/Max.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a given maximum.
77
*
8+
* http://jqueryvalidation.org/max-method/
9+
*
810
* `max`
911
*/
1012
class Max extends Base

src/PHPValidation/Rules/Maxlength.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a given maxmimum length.
77
*
8+
* http://jqueryvalidation.org/maxlength-method/
9+
*
810
* `maxlength`
911
*/
1012
class Maxlength extends Base

src/PHPValidation/Rules/Min.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a given minimum.
77
*
8+
* http://jqueryvalidation.org/min-method/
9+
*
810
* `min`
911
*/
1012
class Min extends Base

src/PHPValidation/Rules/Minlength.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a given minimum length.
77
*
8+
* http://jqueryvalidation.org/minlength-method/
9+
*
810
* `minlength`
911
*/
1012
class Minlength extends Base

src/PHPValidation/Rules/Number.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a decimal number.
77
*
8+
* http://jqueryvalidation.org/number-method/
9+
*
810
* `number`
911
*/
1012
class Number extends Base

src/PHPValidation/Rules/Range.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a given value range.
77
*
8+
* http://jqueryvalidation.org/range-method/
9+
*
810
* `range`
911
*/
1012
class Range extends Base

src/PHPValidation/Rules/Rangelength.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a given value range.
77
*
8+
* http://jqueryvalidation.org/rangelength-method/
9+
*
810
* `rangelength`
911
*/
1012
class Rangelength extends Base

src/PHPValidation/Rules/Remote.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Requests a resource to check the element for validity.
77
*
8+
* http://jqueryvalidation.org/remote-method/
9+
*
810
* `remote`
911
*/
1012
class Remote extends Base

src/PHPValidation/Rules/Required.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element required.
77
*
8+
* http://jqueryvalidation.org/required-method/
9+
*
810
* `required`
911
*/
1012
class Required extends Base

src/PHPValidation/Rules/Url.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/**
66
* Makes the element require a valid url
77
*
8+
* http://jqueryvalidation.org/url-method/
9+
*
810
* `url`
911
*/
1012
class Url extends Base

0 commit comments

Comments
 (0)