Commit Graph

66 Commits

Author SHA1 Message Date
SilverFire - Dmitry Naumenko
3fcc26996b Fixed #11973: yii\helpers\BaseHtml::getAttributeValue() fixed to work with items[] notation correctly 2016-08-05 15:08:51 +03:00
Robert Korulczyk
993f2aef28 Fixes #11275: Added possibility of unset or force replace former value in ArrayHelper::merge() 2016-08-03 22:49:49 +03:00
Klimov Paul
acfe21b400 Fixed yii\helpers\Json::encode() encodes empty array returned by JsonSerializable::jsonSerialize() as object 2016-08-01 10:31:10 +03:00
Carsten Brandt
7076b38ea9 added a test for #11925 2016-07-11 12:09:54 +02:00
Carsten Brandt
062895111f fixed php 7.1 test breaks that depend on ICU data version 2016-07-04 11:52:33 +02:00
Viktor Pikaev
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
Alexander Makarov
16e4cab8f1 Fixes #11865: Fixed setting selected for dropdown list using options 2016-07-03 01:43:50 +03:00
AnikanovD
b45e5fbaf2 Unit test for #11549 2016-06-19 15:22:12 +03:00
AnikanovD
239d7814eb Fixes #11739: Fixed ArrayHelper::index() losing precision for float keys 2016-06-19 15:00:46 +03:00
AnikanovD
b39a0a1e5a Fixes #11774: Fixed incorrect recusuive symlinks check in FileHelper 2016-06-18 17:34:25 +03:00
Carsten Brandt
b211e6bf69 added failing test for #11686
test BaseArrayHelper::isIn() in strict mode
2016-06-09 13:08:26 +02:00
Sam
2ebccf0e73 Skip filehelper tests (and mark them as incomplete) when runtime is not a local file system. (#11713) 2016-06-07 12:58:35 +02:00
mdmunir
7dc9d07bcd Changable default flavor for Markdown helper
close #11438
2016-05-03 11:14:05 +02:00
Vladimir Khramov
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
Alexander Makarov
4f4fa6fdf0 Fixes #10710: yii\helpers\FileHelper::copyDirectory() is now throwing exception when trying to copy a directory to itself or a subdirectory 2016-04-23 01:58:33 +03:00
Mikk Tendermann
2f9395bbd6 fix #11299 2016-04-07 10:52:43 +03:00
SilverFire - Dmitry Naumenko
499ee6de9e Added CH test sentence to InflectorTest 2016-03-31 11:53:51 +03:00
Alexander Makarov
cfbe50e96d Fixes #11026: Fixed StringHelper::truncateWords() to count words properly for non-English text 2016-03-30 00:26:56 +03:00
Damian Zajkowski
3fb85fb84e Fixing VarDumper for throwing PHP Fatal when dumping __PHP_Incomplete_Class. #11196 issue. 2016-03-25 15:54:15 +01:00
Alexander Makarov
c17f887583 Added StringHelper::countWords() that given a string returns number of words in it 2016-03-16 01:41:57 +03:00
SilverFire - Dmitry Naumenko
976b9fe357 Updated ArrayHelperTest to test exceptions of ArrayHelper::isIn() and ::isSubset() 2016-03-10 16:39:21 +02:00
Ni-san
77599dc179 fixes #11040: make copyDirectory method work correctly with parameter 'recursive' 2016-03-08 00:45:52 +06:00
SilverFire - Dmitry Naumenko
b641cb7dea Updated ArrayHelperTest::testIsTraversable() 2016-02-25 12:02:48 +02:00
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`
2016-02-24 23:49:05 +02:00
SilverFire - Dmitry Naumenko
d66659e329 ArrayHelperTest - groupBy tests moved to a separate method 2016-02-24 23:08:59 +02:00
SilverFire - Dmitry Naumenko
54c0d9a31c Merge branch 'helper_indexbydimensions' of https://github.com/quantum13/yii2 into quantum13-helper_indexbydimensions 2016-02-24 21:35:51 +02:00
Daniel Gomez Pan
3bf3c20710 Merge remote-tracking branch 'upstream/master' into 10764-enh-options-tag
# Conflicts:
#	framework/CHANGELOG.md
2016-02-15 17:37:40 +01:00
Vladimir Khramov
ef8b0a2be0 parameter dimensions in ArrayHelper::index 2016-02-15 17:47:44 +10:00
Daniel Gomez Pan
295bb3e173 WIP #10764: adjusted Html::beginTag and Html::endTag methods to be consistent 2016-02-09 18:13:32 +01:00
Carsten Brandt
0f30b0843b added test for SORT_DESC
for #8348 and #10607
2016-02-07 20:50:25 +01:00
Andrew Nester
78de315794 Fixed processing nested objects multisort in BaseArrayHelper
fixes #8348
close #10607
2016-02-07 20:20:32 +01:00
Daniel Gomez Pan
cd7039e97c WIP #10764 2016-02-07 16:39:41 +01:00
Andrew Nester
6acab778da 10629 - BaseStringHelper::truncateHtml fix - should not add suffix if words count less than needed #10629 2016-01-21 10:55:52 +03:00
Andrew Nester
ed23b97baf #10574 - Fix for BaseArrayHelper to work with invalid characters in proper way 2016-01-16 09:37:36 +03:00
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.
2016-01-15 16:19:24 +01:00
Carsten Brandt
8897723c2a added test to verify #10486 2016-01-01 17:33:53 +01:00
SilverFire - Dmitry Naumenko
469206d8d0 HtmlTest - added tests to checkboxList and listBox 2015-12-23 23:38:47 +02:00
cohen
85c6a903dc Enh #10390: Added ability to disable outer tag for \yii\helpers\BaseHtml::radiolist(), ::checkboxList 2015-12-21 18:04:49 +02:00
Carsten Brandt
5ffcd7b577 added nested array test to vardumper
issue #10376
2015-12-12 03:24:39 +01:00
Klimov Paul
170c376648 yii\helpers\VarDumper::dump() now respects PHP magic method __debugInfo() 2015-12-05 11:21:49 +02:00
LAV45
a2bf2598ce Release fix from SilverFire 2015-11-29 01:24:43 +03:00
LAV45
1028152aac Unexpected behavior for \SimpleXMLElement and Json::encode() #10278 2015-11-29 00:58:32 +03:00
Carsten Brandt
d1812d2081 fixed arrayhelper test, renamed test methods according to FW change 2015-11-22 17:07:48 +01:00
Sam Mousa
22d9997281 Implemented support of traversable objects in RangeValidator::ranges, added ArrayHelper::in() and ArrayHelper::subset() 2015-11-18 16:41:56 +02:00
Mehdi Achour
cca500083e Implement #10078: Allow disabling csrf hidden input generation on a form 2015-11-18 10:22:31 +01:00
SilverFire - Dima Naumenko
a7f102fa94 Enh #10061: yii\helpers\BaseInflector::transliterate() is now public 2015-11-05 16:07:33 +02:00
freezy
7bea7b65fd Fixes #9282: Improved JSON error handling to support PHP 5.5 error codes 2015-11-04 12:59:37 +03:00
Vadim
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
SilverFire - Dima Naumenko
c128d008d3 Added more tests for StringHelper::explode 2015-10-14 12:50:14 +03:00
SilverFire - Dima Naumenko
a46ae82f6a Fixes #9906, #9907 FormatConverterTest updated to pass on different ICU data versions 2015-10-14 00:54:43 +03:00