45 Commits

Author SHA1 Message Date
3c6e66f2b3 Unique and Exist validators docs updated (#19678)
* Unique and Exist validators docs updated

* Correct the line in unique validator as well

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2022-11-16 08:32:27 +01:00
2086a8dbb1 Fixed typo mistakes (#19610) 2022-10-09 23:56:27 +04:00
02cc8d9fa9 update common media types link (#19106) 2021-12-23 08:42:59 +01:00
091af40298 Fix #19095: Update broken ICU manual link (#19097) 2021-12-20 19:38:31 +03:00
0041f034fd [doc] Update PHP doc links (#18957)
* Replace https://secure.php.net with https://www.php.net

* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02:00
b8e31c0d31 Fix #18460: compareValue in CompareValidator can now take a closure returning a value 2021-02-25 13:01:38 +03:00
e2f286e96d Add more examples for exists and unique validators 2021-01-11 14:48:16 +03:00
840083724e Fix #18351: Added option to change default timezone for parsing formats without time part in yii\validators\DateValidator 2020-10-31 15:59:20 +03:00
8651a79716 Update tutorial-core-validators.md (#18348)
The `DefaultValueValidator` works only with closures not with any callable as suggested.
See f8337a15c2/framework/validators/DefaultValueValidator.php (L47)

```
    /**
     * {@inheritdoc}
     */
    public function validateAttribute($model, $attribute)
    {
        if ($this->isEmpty($model->$attribute)) {
            if ($this->value instanceof \Closure) {
                $model->$attribute = call_user_func($this->value, $model, $attribute);
            } else {
                $model->$attribute = $this->value;
            }
        }
    }
```
2020-10-29 11:32:14 +03:00
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
602ba9760e Added sample for filter validator (#16494) (#16559) [skip ci] 2018-07-27 23:59:50 +08:00
0b24d92843 Add docs about changes in the yii\validators\ExistValidator mentioned in #8092 (#16136) [skip ci] 2018-04-23 00:38:17 +03:00
50927d0751 Enhanced core-validators docs
Closes #13485
2017-02-21 22:36:26 +02:00
7db178d8bb Fixes #13526: added reference to loading default values from schema to DefaultValueValidator section of validation guide [skip ci] 2017-02-14 20:50:26 +03:00
a3a868e427 docs/guide fix [ci skip] (#13470)
* docs/guide/runtime-sessions-cookies.md typo fix [ci skip]

* docs/guide/tutorial-core-validators.md typo fixed [ci skip]
2017-01-30 11:39:14 +03:00
5f821feff7 Added constants for CompareValidator::$type
also improved and fixed docs about 'compare' validator.

fixes #12864
2016-10-28 10:17:27 +02:00
64ed8c9112 added note about timezone conversion to DateValidator
fixes #11692
2016-10-13 13:06:50 +02:00
45d1041cfb adjusted guide for #12198 2016-10-13 12:36:35 +02:00
25ecc6394b minor 2016-09-20 11:23:16 +03:00
0a0a8af598 Fixed bad replacements :) 2016-09-20 11:01:26 +03:00
685f16e8ef 📖 Updated guide pages - wrap true, false, null 2016-09-20 10:49:15 +03:00
494842636e 📖 Fixed client-side and server-side grammar in all files 2016-09-08 10:16:02 +03:00
f7e2c96177 📖 Wrap "null" [skip ci] 2016-09-04 07:53:38 +03:00
de9fe7a612 📖 Fix typo + use lowercase [skip ci] 2016-08-26 08:42:18 +03:00
1621f65545 guide section about comparing dates
close #10832
2016-06-20 15:03:02 +02:00
66c6268e5f FileValidator: updated guide-ru,en, PHP; updated tests 2016-02-24 09:05:29 +02:00
32d1b9512c Added IpValidator description to core-validators ru,en guides. IpValidaor PHPDoc enhanced 2015-10-24 10:35:02 +03:00
276b367fc5 guide wip [skip ci] 2015-05-27 23:01:15 -04:00
1ee2fb9cf7 Fix link in docs [skip ci] 2015-05-26 10:51:31 +02:00
cc93982dfb adjusted guide of date validator 2015-05-10 16:19:57 +02:00
bb6e2b0d86 Fixes #7790 doc improvement [skip ci] 2015-05-01 22:53:18 -04:00
d8848ebf25 Doc improvement [skip ci] 2015-04-12 20:52:05 -04:00
2a23520618 added documentation about handling date values
fixes #6530
fixes #5857
relates to #3973
2015-03-20 16:06:12 +01:00
03d55e35ac Update tutorial-core-validators.md
The maxSize validator validates in bytes, so the example was incorrect (it was 1GB instead of 1MB).
2015-02-26 16:18:03 +01:00
36bebbfefb use id instead of name for anchor references in the guide
fixes #7013
2015-01-25 22:13:16 +01:00
57bca30e91 added tip about filter validator 2014-12-17 10:29:13 +01:00
2dce741f07 note about empty values for datepicker and validator
fixes #5580
2014-10-16 23:37:12 +02:00
6bef0e628d Fixes #5169. 2014-09-26 22:41:46 -04:00
e843c3074a typo fix
not sure about L421
2014-07-26 22:15:35 +08:00
1e6a1d940a fix the link 2014-07-26 21:06:57 +08:00
282e5af397 fix the link 2014-07-25 17:53:56 +08:00
c8cb40cb50 Finished view tutorial [skip ci] 2014-06-15 18:16:11 -04:00
f6c446aed9 docs about file validator fixed 2014-06-15 15:29:30 +04:00
ebf0cb5571 adjusted validator doc. [skip ci] 2014-06-10 08:36:23 -04:00
01e5ffdceb guide WIP [skip ci] 2014-06-05 22:40:37 -04:00