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
Qiang Xue
0e143338d7
Finished refactoring find() .
11 years ago
Qiang Xue
b7d6f6141a
Added `isAssociative()` and `isIndexed()` to `yii\helpers\ArrayHelper`
11 years ago
Carsten Brandt
d774e7f127
fixed recursive call of ArrayHelper::toArray()
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
9beba31fc0
rest WIP
11 years ago
Carsten Brandt
d2d94ab358
fixed arrayHelper::toArray() recursive call
...
added a missing argument
11 years ago
Alexander Kochetov
6051253e6e
BaseArrayHelper updated
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
9e66e08bc7
Fixes #802 : Added support for retrieving sub-array element or child object property through `ArrayHelper::getValue()`
11 years ago
Qiang Xue
7a5a29c767
Added ArrayHelper::keyExists().
11 years ago
Qiang Xue
53457a0a3f
Simplified ArrayHelper::multisort().
11 years ago
Qiang Xue
7d9639ea49
Fixed test break.
11 years ago
Qiang Xue
3959b8dbda
Fixed test break.
11 years ago
Alexander Makarov
1af4ffd21a
Fixes #1056 : removed 5.3 compatibiltiy code from ArrayHelper::multisort, fixed phpdoc
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Alexander Makarov
b873f9f242
Fixes #915 : helper classes renamed again
11 years ago
Alexander Makarov
76cab3ea64
Renamed base helper classes
11 years ago
Carsten Brandt
7fa81949bf
various documentation changes
11 years ago
Alexander Makarov
6c1ef346aa
fixed typos in ArrayHelperBase phpdoc
11 years ago
Qiang Xue
a6cd7b72bb
refactored helper organization.
11 years ago