683 Commits

Author SHA1 Message Date
ef8b0a2be0 parameter dimensions in ArrayHelper::index 2016-02-15 17:47:44 +10:00
9b5f6cb188 prepare for 2.0.7 release
- adjust version
- build classmap
- build phpdoc @property annotations
- build mime-type file
2016-02-14 15:45:55 +01:00
cc7628e5d2 WIP #10764: update docs [skip ci] 2016-02-10 00:50:52 +01:00
295bb3e173 WIP #10764: adjusted Html::beginTag and Html::endTag methods to be consistent 2016-02-09 18:13:32 +01:00
78de315794 Fixed processing nested objects multisort in BaseArrayHelper
fixes #8348
close #10607
2016-02-07 20:20:32 +01:00
f620f4de90 phpdoc fixes 2016-02-07 19:48:13 +01:00
ef5ce2d4c1 missing @since annotations in helpers 2016-02-07 17:46:12 +01:00
cd7039e97c WIP #10764 2016-02-07 16:39:41 +01:00
6acab778da 10629 - BaseStringHelper::truncateHtml fix - should not add suffix if words count less than needed #10629 2016-01-21 10:55:52 +03:00
ed23b97baf #10574 - Fix for BaseArrayHelper to work with invalid characters in proper way 2016-01-16 09:37:36 +03:00
f6dcb290ed reverted c00b97a/#9915, this is expected behavior
When accessing non-existing properties it is expected behavior to throw an error.
This is the case in all other places.

It is also not reliably possible to determine whether a property exists beforehand.
it is not sufficient to call `property_exists()` as it may be available via `__get()`.

Instead of `property_exists()` or `isset()` it should call `$object->canGetProperty()` but this is not
guaranteed to be implemented and therefor doing such a check will not work in 2.0.x.

calling isset() may break code that works through __get() but has not implemented __isset() properly.

We may discuss this for 2.1 again but I am in favor of keeping it as is.
2016-01-15 16:19:24 +01:00
f72e9d5bcf Revert "#9915: changed behavior of ArrayHelper::getValue() according to @azureru suggestion"
This reverts commit 4b511fb9bcbb1fc5838ad8bc65f3852b09287acb.
2016-01-15 16:03:46 +02:00
4b511fb9bc #9915: changed behavior of ArrayHelper::getValue() according to @azureru suggestion 2016-01-15 15:21:08 +03:00
77b0d30bf8 Divide by zero prevention in console progress bar
close #10541
2016-01-14 12:21:32 +01:00
dcda2a2466 BaseHtml::checkboxList minor update 2015-12-21 18:09:44 +02:00
85c6a903dc Enh #10390: Added ability to disable outer tag for \yii\helpers\BaseHtml::radiolist(), ::checkboxList 2015-12-21 18:04:49 +02:00
f95a6d9d08 Merge pull request #10292 from Faryshta/patch-5
use ArrayHelper::remove() for the html helper methods
2015-12-19 18:59:44 +02:00
8c86310003 BaseInflaector: PHPDoc updated 2015-12-15 09:49:09 +02:00
170c376648 yii\helpers\VarDumper::dump() now respects PHP magic method __debugInfo() 2015-12-05 11:21:49 +02:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
2d05b11f68 remove PHP_EOL 2015-12-02 04:21:45 -06:00
ec43f4c370 add separator around the items in ul() 2015-12-01 08:00:39 -06:00
d0ffb58efb syntax error 2015-12-01 07:34:40 -06:00
7a2bbabbbd add separator special option to ul and listBox 2015-12-01 07:28:09 -06:00
7618e4ee13 changes suggested by review. 2015-12-01 00:18:50 -06:00
5b67bc1822 use ArrayHelper::remove() 2015-11-30 19:32:41 -06:00
a2bf2598ce Release fix from SilverFire 2015-11-29 01:24:43 +03:00
1028152aac Unexpected behavior for \SimpleXMLElement and Json::encode() #10278 2015-11-29 00:58:32 +03:00
e5ed256959 rename ArrayHelper::in() and ArrayHelper::subset()
22d9997281 (commitcomment-14527757)
2015-11-22 17:05:09 +01:00
22d9997281 Implemented support of traversable objects in RangeValidator::ranges, added ArrayHelper::in() and ArrayHelper::subset() 2015-11-18 16:41:56 +02:00
ac36016c7f Expanded strcasecmp() condition for clarity 2015-11-18 11:32:06 +01:00
f632f4d41f Fix docs as per @SilverFire suggestions [ci skip] 2015-11-18 10:51:55 +01:00
0b2bbb2e99 Merge 2015-11-18 10:24:33 +01:00
cca500083e Implement #10078: Allow disabling csrf hidden input generation on a form 2015-11-18 10:22:31 +01:00
a6e1ba2cf6 Fixed mb_ functions calls to use UTF-8 or app charset 2015-11-17 09:02:22 +02:00
c3bfa5c77e fixed Html::activeFileInput() to set correct name for hidden input field
fixes #9689
2015-11-15 13:39:07 +01:00
a7f102fa94 Enh #10061: yii\helpers\BaseInflector::transliterate() is now public 2015-11-05 16:07:33 +02:00
7bea7b65fd Fixes #9282: Improved JSON error handling to support PHP 5.5 error codes 2015-11-04 12:59:37 +03:00
c00b97a12c Fixes #9915: yii\helpers\ArrayHelper::getValue() was erroring instead of returning null for non-existing object properties 2015-10-14 12:56:59 +03:00
ccd20793d4 Fixed #9911 - StringHelper::explode with skip_empty option removed item eq to 0 2015-10-14 00:15:22 +03:00
8cbcbdded7 Default Cache.SerializerPermissions configuration option for HTMLPurifier is set to 0775 2015-10-13 13:19:49 +03:00
8d2af0d2d9 Added last resort measure for FileHelper::removeDirectory() fail to unlink symlinks under Windows 2015-10-11 02:05:15 +03:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
4ecafe653c More compact number operations 2015-10-10 00:41:54 +03:00
b65bfad44d Simplified regular expressions 2015-10-10 00:40:25 +03:00
ffa3a59591 Compare with empty string instead of comparing length with 0 2015-10-10 00:37:46 +03:00
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
0407407b76 fix coding style to follow PSR-2 2015-10-05 13:58:47 +06:00
f007fc1e60 avoid recursion on the root of the file system
fixes #9791
2015-09-29 15:37:05 +02:00
59208e5fc6 Fixes #9681: Json::encode() was erroring under CYGWIN 2015-09-27 15:58:32 +03:00