Commit Graph

130 Commits

Author SHA1 Message Date
Alexander Makarov
02e3746013 Fixed Inflector::slug to work properly with numbers 2014-06-22 02:03:55 +04:00
Alexander Makarov
c3de3450a7 Fixes #3939: \yii\Inflector::slug() improvements:
- Added protected `\yii\Inflector::transliterate()` that could be replaced with custom translit implementation.
- Added proper tests for both intl-based slug and PHP fallback.
- Removed character maps for non-latin languages.
- Improved overall slug results.
- Added note about the fact that intl is required for non-latin languages to requirements checker.
2014-06-19 20:33:52 +04:00
Alexander Makarov
a8423bbaed Removed commented code 2014-06-18 12:51:52 +04:00
Qiang Xue
24257e76c8 Fixes #3909: Html::to() should not prefix base URL to URLs that already contain scheme 2014-06-17 15:41:01 -04:00
Alexander Makarov
f8e05fbf4f Improved yii\helpers\Inflector::slug to support more cases for Russian, Hebrew and special characters 2014-06-08 05:44:31 +04:00
Klimov Paul
f19a97e308 Fix yii\helpers\FileHelper::copyDirectory() pattern not working 2014-05-30 14:50:11 +03:00
Alexander Makarov
d7a251bbec Removed unused imports, added missing phpdoc 2014-05-30 11:55:17 +06:00
Carsten Brandt
873b2b04db fixed test breaks after #3614 2014-05-28 17:20:24 +02:00
Carsten Brandt
4de6e8c6b2 fix #3501 replace . when generating input ids 2014-05-25 18:51:06 +02:00
Qiang Xue
96feeb894c Fixed test break of Html. 2014-05-22 09:51:49 -04:00
Carsten Brandt
1a848453a1 tried to fix tests for #3472 2014-05-22 13:09:42 +02:00
Scott Tester
390004a899 Fixed path in unit test to use the directory separator variable. 2014-05-22 09:34:10 +10:00
Scott Tester
be89ff97d3 fixed normalizePath to keep a '.' path when necessary. 2014-05-21 20:55:52 +10:00
DaSourcerer
be164e45db Handle invalid code sequences in Html::encode() 2014-05-20 15:44:23 +02:00
Klimov Paul
8d0fb916c0 VarDumper::exportAsString() removed 2014-05-19 18:33:49 +03:00
Paul Klimov
e11ecad1ce Object handling at BaseVarDumper::export() reworked 2014-05-09 15:32:09 +03:00
Paul Klimov
7c69c9141c BaseVarDumper::export() added 2014-05-09 14:47:57 +03:00
Alexander Makarov
a4c644d3a3 Fixes #3325: fixed generated markup for conditional comments
No changelog line since feature was introduced after beta
2014-05-02 15:29:26 +04:00
Alexander Makarov
a620342315 Adjusted phpdoc, tests and changelog for StringHelper::truncate and StringHelper::truncateWords 2014-04-29 18:23:48 +04:00
Alexander Makarov
8d18d722b2 Merge branch 'stringhelper-truncate' of github.com:Alex-Code/yii2 into Alex-Code-stringhelper-truncate
Conflicts:
	framework/CHANGELOG.md
2014-04-29 18:03:44 +04:00
Qiang Xue
4fcd5003de Fixes #2906: Added support for using conditional comments for js and css files registered through asset bundles and Html helper 2014-04-26 20:25:48 -04:00
Carsten Brandt
78a8694eb5 file helper did not preserve relative paths 2014-04-25 04:06:07 +02:00
Qiang Xue
ab218addda Fixes #2563: Theming is not working if the path map of the theme contains ".." or "." in the paths 2014-04-18 15:13:50 -04:00
Alexander Makarov
7295540c72 Code style and phpdoc fixes 2014-04-17 15:33:07 +04:00
Qiang Xue
0e143338d7 Finished refactoring find() . 2014-04-07 16:29:12 -04:00
Qiang Xue
b7d6f6141a Added isAssociative() and isIndexed() to yii\helpers\ArrayHelper 2014-04-07 16:02:55 -04:00
lubosdz
612d3ed27d removed redundant whitespace 2014-04-04 15:18:58 +02:00
lubosdz
164459f90a Fixed test break and JSON MIME type. Fixes issue #2978. 2014-04-04 13:54:04 +02:00
Alex-Code
1c80b9d2cc Test case for new truncate methods.
Test case for new truncate methods.
2014-04-02 08:51:02 +01:00
Qiang Xue
6e8c460273 Fixes #2724: consistent use of absolute and relative routes. 2014-03-22 20:17:31 -04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Carsten Brandt
5d309c2075 added unit tests for boolean attributes
fixes #1022
2014-03-13 02:50:09 +01:00
Alexander Makarov
2ceab799e2 Removed unneeded config from tests 2014-03-11 02:12:53 +04:00
Alexander Makarov
842e7eb573 Added tests, final Url helper adjustments 2014-03-11 02:12:13 +04:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
Carsten Brandt
1b7e1cd027 Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
* 'feature' of https://github.com/mongosoft/yii2:
  returned back formatting language files
  code style. WHILE
  code style. FOR
  code style. FOREACH
  code style. operator IF
  @param, @var, @property and @return must declare types as boolean, integer, string, array or null
  short echo tags
  short array syntax

Conflicts:
	extensions/apidoc/commands/RenderController.php
	extensions/apidoc/models/BaseDoc.php
	extensions/apidoc/models/Context.php
	extensions/apidoc/templates/bootstrap/Renderer.php
	extensions/apidoc/templates/bootstrap/layouts/guide.php
	extensions/apidoc/templates/bootstrap/layouts/main.php
	extensions/apidoc/templates/bootstrap/views/index.php
	extensions/apidoc/templates/html/Renderer.php
	extensions/apidoc/templates/offline/views/index.php
	extensions/apidoc/templates/offline/views/offline.php
	extensions/apidoc/templates/online/views/index.php
	extensions/elasticsearch/Connection.php
	extensions/redis/ActiveQuery.php
	framework/base/ErrorException.php
	framework/helpers/BaseFileHelper.php
	tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
Alexander Makarov
71835d977e More short syntax for arrays 2014-03-07 02:03:23 +04:00
Alexander Mohorev
95ea1c20bb code style. FOREACH 2014-03-03 21:47:47 +03:00
Alexander Mohorev
6e7edfdf5b short array syntax 2014-03-03 20:21:55 +03:00
Qiang Xue
04bf51b01a Fixes #2392: Added addCssStyle(), removeCssStyle(), cssStyleFromArray() and cssStyleToArray() to Html 2014-02-23 19:12:33 -05:00
John Was
b2b10d1685 more unit tests for helpers/FileHelper::findFiles using new wildcard exceptions matching 2014-01-26 15:02:26 +01:00
Qiang Xue
9e66e08bc7 Fixes #802: Added support for retrieving sub-array element or child object property through ArrayHelper::getValue() 2013-12-31 11:30:44 -05:00
Qiang Xue
0b28f290f3 Fixes #1704: Incorrect regexp is used in Inflector::camelize() 2013-12-30 10:07:44 -05:00
Antonio Ramirez
6f932d99ae Merge branch 'upstream' into 364-toAscii
* upstream: (21 commits)
  Fixes #1643: Added default value for `Captcha::options`
  Fixes #1654: Fixed the issue that a new message source object is generated for every new message being translated
  Allow dash char in ActionColumn’s button names.
  Added SecurityTest.
  fixed functional test when enablePrettyUrl is false.
  fixed composer.json
  minor doc fix.
  Fixes #1634: Use masked CSRF tokens to prevent BREACH exploits
  Use better random CSRF token.
  GII unique indexes avoid autoIncrement columns
  updated debug retry params.
  Added sleep().
  Added unit test for ActiveRecord::updateAttributes().
  Fixes #1641: Added `BaseActiveRecord::updateAttributes()`
  Fixed #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled
  Mongo README.md updated.
  Fixes #1611: Added `BaseActiveRecord::markAttributeDirty()`
  Number validator was missing
  Fixes #1638: prevent table names from being enclosed within curly brackets twice.
  Unique indexes rules for single columns into array
  ...
2013-12-27 18:07:42 +01:00
Antonio Ramirez
08aaeda397 refactored inflector's slug and improved fallback char map 2013-12-27 18:06:27 +01:00
Antonio Ramirez
b7904c46aa remove TransliteratorHelper 2013-12-27 18:04:05 +01:00
Qiang Xue
3b1602acc8 Added SecurityTest. 2013-12-27 09:12:58 -05:00
Antonio Ramirez
fc9fb80c21 added TransliteratorHelper class 2013-12-26 20:56:11 +01:00
Florian Fackler
ff7c25ea7b Fixes #1497 (wrong file rendered if language != sourceLanguage) 2013-12-12 22:55:10 +01:00
Alexander Makarov
26767735dc Renamed byte methods, moved path methods back to StringHelper 2013-12-04 14:26:47 +01:00