Commit Graph

442 Commits

Author SHA1 Message Date
SilverFire - Dmitry Naumenko
438e5cfb5d BaseArrayHelper::isTraversable() PHPDoc update 2016-02-24 23:51:19 +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
Alexander Makarov
80e9331fe0 Spelling fixes, BaseArrayHelper::index() parameter groupBy renamed to groups 2016-02-24 23:43:09 +02:00
SilverFire - Dmitry Naumenko
d56d2d7a31 BaseArrayHelper::index() - 3rd parameter renamed from dimensions to groupBy
PHPDoc updated
2016-02-24 23:07:37 +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
Alexander Makarov
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
Daniel Gomez Pan
8b0f28f780 Add @since [skip ci] 2016-02-15 23:06:58 +01:00
Alexander Makarov
1ec972fbf7 Fixes #10610: Added BaseUrl::$urlManager to be able to set URL manager used for creating URLs 2016-02-15 22:35:58 +03: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
Carsten Brandt
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
Daniel Gomez Pan
cc7628e5d2 WIP #10764: update docs [skip ci] 2016-02-10 00:50:52 +01: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
Andrew Nester
78de315794 Fixed processing nested objects multisort in BaseArrayHelper
fixes #8348
close #10607
2016-02-07 20:20:32 +01:00
Carsten Brandt
f620f4de90 phpdoc fixes 2016-02-07 19:48:13 +01:00
Carsten Brandt
ef5ce2d4c1 missing @since annotations in helpers 2016-02-07 17:46:12 +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
SilverFire - Dmitry Naumenko
f72e9d5bcf Revert "#9915: changed behavior of ArrayHelper::getValue() according to @azureru suggestion"
This reverts commit 4b511fb9bc.
2016-01-15 16:03:46 +02:00
Alexander Makarov
4b511fb9bc #9915: changed behavior of ArrayHelper::getValue() according to @azureru suggestion 2016-01-15 15:21:08 +03:00
youmad
77b0d30bf8 Divide by zero prevention in console progress bar
close #10541
2016-01-14 12:21:32 +01:00
SilverFire - Dmitry Naumenko
dcda2a2466 BaseHtml::checkboxList minor update 2015-12-21 18:09:44 +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
Dmitry Naumenko
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
SilverFire - Dmitry Naumenko
8c86310003 BaseInflaector: PHPDoc updated 2015-12-15 09:49:09 +02:00
Klimov Paul
170c376648 yii\helpers\VarDumper::dump() now respects PHP magic method __debugInfo() 2015-12-05 11:21:49 +02:00
SilverFire - Dmitry Naumenko
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
Angel Guevara
2d05b11f68 remove PHP_EOL 2015-12-02 04:21:45 -06:00
Angel Guevara
ec43f4c370 add separator around the items in ul() 2015-12-01 08:00:39 -06:00
Angel Guevara
d0ffb58efb syntax error 2015-12-01 07:34:40 -06:00
Angel Guevara
7a2bbabbbd add separator special option to ul and listBox 2015-12-01 07:28:09 -06:00
Angel Guevara
7618e4ee13 changes suggested by review. 2015-12-01 00:18:50 -06:00
Angel Guevara
5b67bc1822 use ArrayHelper::remove() 2015-11-30 19:32:41 -06: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
e5ed256959 rename ArrayHelper::in() and ArrayHelper::subset()
22d9997281 (commitcomment-14527757)
2015-11-22 17:05:09 +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
ac36016c7f Expanded strcasecmp() condition for clarity 2015-11-18 11:32:06 +01:00
Mehdi Achour
f632f4d41f Fix docs as per @SilverFire suggestions [ci skip] 2015-11-18 10:51:55 +01:00
Mehdi Achour
0b2bbb2e99 Merge 2015-11-18 10:24:33 +01: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
a6e1ba2cf6 Fixed mb_ functions calls to use UTF-8 or app charset 2015-11-17 09:02:22 +02:00
Carsten Brandt
c3bfa5c77e fixed Html::activeFileInput() to set correct name for hidden input field
fixes #9689
2015-11-15 13:39:07 +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
ccd20793d4 Fixed #9911 - StringHelper::explode with skip_empty option removed item eq to 0 2015-10-14 00:15:22 +03:00
Klimov Paul
8cbcbdded7 Default Cache.SerializerPermissions configuration option for HTMLPurifier is set to 0775 2015-10-13 13:19:49 +03:00