67 Commits

Author SHA1 Message Date
e62ea0136c Fixed phpdoc broken links to PHP manual pages [skip ci] 2017-04-11 00:43:38 +03:00
ed82ba4ee2 Revert "fix ArrayHelper::getValue() to throw exception on invalid input"
This reverts commit e963b2af6486dd79c26a460148c63efb580f53fc because of BC breaking reported in #13248.

To know more about the reasons of commit revertinvg, visit https://github.com/yiisoft/yii2/issues/13248
2016-12-20 12:39:25 +02:00
e963b2af64 fix ArrayHelper::getValue() to throw exception on invalid input
fixes #12927
2016-12-16 01:49:37 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
940f7c7cd4 PHPDocs updated. Closes #12927 2016-11-05 22:11:09 +02:00
6b73cfccbb Fixes #12881: Added removeValue method to yii\helpers\BaseArrayHelper (nilsburg) 2016-11-04 18:21:56 +03:00
e8c16a09fa Fixed some typos (#12847) 2016-10-26 14:02:38 +03:00
11fe407ad0 release version 2.0.10 2016-10-20 14:02:50 +02:00
5ef5005e49 Updated PHPDocs, fixes #12545 2016-09-15 19:51:49 +03:00
993f2aef28 Fixes #11275: Added possibility of unset or force replace former value in ArrayHelper::merge() 2016-08-03 22:49:49 +03:00
c99acb6182 Fixes #11950: Improve BaseArrayHelper::keyExists speed 2016-07-15 14:53:25 +03:00
f7f24d3c47 Fix code block in phpDoc of BaseArrayHelper::filter (#11948) [skip ci] 2016-07-14 12:21:42 +03:00
4fd4ac04b1 Minor adjustments for #11462 2016-07-03 02:05:13 +03:00
30bb9bd7c8 Fixes #11462: Added support of filtering rules to yii\log\Target::$logVar, added \yii\helpers\BaseArrayHelper::filter() method 2016-07-03 01:56:05 +03:00
01c84e2ff2 Fixes #11549: Fixed ArrayHelper::getValue() to work properly with float keys 2016-06-19 15:26:44 +03:00
239d7814eb Fixes #11739: Fixed ArrayHelper::index() losing precision for float keys 2016-06-19 15:00:46 +03:00
2238c32098 fix BaseArrayHelper::isIn() in strict mode
close #11686
2016-06-09 13:10:11 +02:00
bc63b7607f Fixed PHPDoc for BaseArrayHelper::index()
Closes #11556
2016-05-12 16:33:23 +03:00
c6d04644d3 passing properties to recursive call if properties of top object are not specified
fixes #7717
close #10960
2016-04-28 02:34:10 +02:00
5a425b2528 BaseArrayHelper::index() updated PHPDoc 2016-03-10 18:12:33 +02:00
91e2c71826 Fixes #@11071 2016-03-10 16:39:21 +02:00
e4d9ed5182 code style fix 2016-03-09 10:17:41 +02:00
438e5cfb5d BaseArrayHelper::isTraversable() PHPDoc update 2016-02-24 23:51:19 +02:00
16a6af5fa8 Add helper function for checking if an object is an array-like object.
Added support for traversable objects in `BaseHtml` and `ArrayHelper`
2016-02-24 23:49:05 +02:00
80e9331fe0 Spelling fixes, BaseArrayHelper::index() parameter groupBy renamed to groups 2016-02-24 23:43:09 +02:00
d56d2d7a31 BaseArrayHelper::index() - 3rd parameter renamed from dimensions to groupBy
PHPDoc updated
2016-02-24 23:07:37 +02:00
ef8b0a2be0 parameter dimensions in ArrayHelper::index 2016-02-15 17:47:44 +10:00
78de315794 Fixed processing nested objects multisort in BaseArrayHelper
fixes #8348
close #10607
2016-02-07 20:20:32 +01:00
ef5ce2d4c1 missing @since annotations in helpers 2016-02-07 17:46:12 +01: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
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02: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
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
68c30c1034 Replace aliases of functions 2015-06-29 22:59:22 +03:00
3ce02dd17c toArray can be string
update docs to reflect the available type
2015-06-24 14:21:18 +09:30
c339ed2949 Fixes #7764: \yii\helpers\ArrayHelper::toArray() wasn't passing $recursive to Arrayable::toArray 2015-05-31 13:09:16 +03:00
ef662b57be added missing @since annotations 2015-04-24 12:09:40 +02:00
8caaba0168 Allow specification of the $key as an array at yii\helpers\ArrayHelper::getValue() 2015-04-20 15:52:32 +03:00
fe19243da1 Fixes #6969: yii\helpers\ArrayHelper::htmlEncode() and htmlDecode() should not remove non-string data 2015-01-22 21:09:46 -05:00
ab926df29f Update BaseArrayHelper.php 2014-12-27 08:34:23 -05:00
95586f243c Fixed docblock for htmlEncode and htmlDecode [skip ci] 2014-12-01 11:47:39 +01:00
cf0c8c37dd Fixes #5983: Added Inflector::sentence() 2014-11-10 15:07:36 -05:00
a61c869256 fix docs 2014-11-10 13:51:39 -05:00
eddbb6bedb dropped locale option 2014-11-10 13:51:38 -05:00
a87c55ff97 fix camelCase syntax 2014-11-10 13:51:37 -05:00
05263692e5 Fixes #5938: add sentence method in Arrayhelper for convert the array to a comma-separated sentence 2014-11-10 13:51:37 -05:00