SilverFire - Dmitry Naumenko
5ef5005e49
Updated PHPDocs, fixes #12545
8 years ago
Robert Korulczyk
993f2aef28
Fixes #11275 : Added possibility of unset or force replace former value in `ArrayHelper::merge()`
8 years ago
Egor Verbitskiy
c99acb6182
Fixes #11950 : Improve BaseArrayHelper::keyExists speed
8 years ago
Roman Grinyov
f7f24d3c47
Fix code block in phpDoc of BaseArrayHelper::filter ( #11948 ) [skip ci]
8 years ago
Alexander Makarov
4fd4ac04b1
Minor adjustments for #11462
8 years ago
Viktor Pikaev
30bb9bd7c8
Fixes #11462 : Added support of filtering rules to `yii\log\Target::$logVar`, added `\yii\helpers\BaseArrayHelper::filter()` method
8 years ago
wanghui
01c84e2ff2
Fixes #11549 : Fixed `ArrayHelper::getValue()` to work properly with float keys
8 years ago
AnikanovD
239d7814eb
Fixes #11739 : Fixed `ArrayHelper::index()` losing precision for float keys
8 years ago
taobig
2238c32098
fix BaseArrayHelper::isIn() in strict mode
...
close #11686
8 years ago
SilverFire - Dmitry Naumenko
bc63b7607f
Fixed PHPDoc for BaseArrayHelper::index()
...
Closes #11556
8 years ago
Vladimir Khramov
c6d04644d3
passing properties to recursive call if properties of top object are not specified
...
fixes #7717
close #10960
9 years ago
SilverFire - Dmitry Naumenko
5a425b2528
BaseArrayHelper::index() updated PHPDoc
9 years ago
Taras Gudz
91e2c71826
Fixes #@11071
9 years ago
Klimov Paul
e4d9ed5182
code style fix
9 years ago
SilverFire - Dmitry Naumenko
438e5cfb5d
BaseArrayHelper::isTraversable() PHPDoc update
9 years ago
Sam Mousa
16a6af5fa8
Add helper function for checking if an object is an array-like object.
...
Added support for traversable objects in `BaseHtml` and `ArrayHelper`
9 years ago
Alexander Makarov
80e9331fe0
Spelling fixes, `BaseArrayHelper::index()` parameter `groupBy` renamed to `groups`
9 years ago
SilverFire - Dmitry Naumenko
d56d2d7a31
BaseArrayHelper::index() - 3rd parameter renamed from dimensions to groupBy
...
PHPDoc updated
9 years ago
Vladimir Khramov
ef8b0a2be0
parameter dimensions in ArrayHelper::index
9 years ago
Andrew Nester
78de315794
Fixed processing nested objects multisort in BaseArrayHelper
...
fixes #8348
close #10607
9 years ago
Carsten Brandt
ef5ce2d4c1
missing `@since` annotations in helpers
9 years ago
Andrew Nester
ed23b97baf
#10574 - Fix for BaseArrayHelper to work with invalid characters in proper way
9 years ago
Carsten Brandt
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.
9 years ago
SilverFire - Dmitry Naumenko
f72e9d5bcf
Revert "#9915: changed behavior of ArrayHelper::getValue() according to @azureru suggestion"
...
This reverts commit 4b511fb9bc
.
9 years ago
Alexander Makarov
4b511fb9bc
#9915 : changed behavior of ArrayHelper::getValue() according to @azureru suggestion
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Carsten Brandt
e5ed256959
rename ArrayHelper::in() and ArrayHelper::subset()
...
22d9997281 (commitcomment-14527757)
9 years ago
Sam Mousa
22d9997281
Implemented support of traversable objects in `RangeValidator::ranges`, added `ArrayHelper::in()` and `ArrayHelper::subset()`
9 years ago
Vadim
c00b97a12c
Fixes #9915 : `yii\helpers\ArrayHelper::getValue()` was erroring instead of returning `null` for non-existing object properties
9 years ago
Alexander Mohorev
68c30c1034
Replace aliases of functions
9 years ago
Brett O'Donnell
3ce02dd17c
toArray can be string
...
update docs to reflect the available type
9 years ago
Brandon Kelly
c339ed2949
Fixes #7764 : `\yii\helpers\ArrayHelper::toArray()` wasn't passing `$recursive` to `Arrayable::toArray`
9 years ago
Carsten Brandt
ef662b57be
added missing `@since` annotations
10 years ago
Klimov Paul
8caaba0168
Allow specification of the `$key` as an array at `yii\helpers\ArrayHelper::getValue()`
10 years ago
Qiang Xue
fe19243da1
Fixes #6969 : `yii\helpers\ArrayHelper::htmlEncode()` and `htmlDecode()` should not remove non-string data
10 years ago
Aviator-Coding
ab926df29f
Update BaseArrayHelper.php
10 years ago
Nikola Basic
95586f243c
Fixed docblock for htmlEncode and htmlDecode [skip ci]
10 years ago
Qiang Xue
cf0c8c37dd
Fixes #5983 : Added `Inflector::sentence()`
10 years ago
pana1990
a61c869256
fix docs
10 years ago
pana1990
eddbb6bedb
dropped locale option
10 years ago
pana1990
a87c55ff97
fix camelCase syntax
10 years ago
pana1990
05263692e5
Fixes #5938 : add sentence method in Arrayhelper for convert the array to a comma-separated sentence
10 years ago
Vasiliy Baukin
ba68986df0
Update BaseArrayHelper.php
...
Recursive method call must have the same parameters as the first call.
10 years ago
Artem Belov
bcd2392673
ArrayHelper::toArray() now uses $properties parameter in recursive calls for descending objects
10 years ago
Michael Härtl
bf97adbf64
Expand abnormally used ternary operator to if
10 years ago
Alexander Makarov
36e4930dcd
Fixes #3669 : added note about using ArrayHelper::getValue with objects
10 years ago
Alexander Makarov
44273f0790
Revert "Merge pull request #3445 from Alex-Code/getValue"
...
This reverts commit a5846fa269
, reversing
changes made to 2a6e064aca
.
10 years ago
Alex-Code
274828839b
Check if property is set
...
```getValue``` didn't check if the property on an object exists so wouldn't return the default value.
11 years ago
Yeung Song
5ea81a91c9
Fixed document for multisort in BaseArrayHelper
...
Fixed
11 years ago
Carsten Brandt
3c400dbca8
fixed file PHPdoc
...
issue #3026
11 years ago