305 Commits

Author SHA1 Message Date
95586f243c Fixed docblock for htmlEncode and htmlDecode [skip ci] 2014-12-01 11:47:39 +01:00
8b79293ff2 added missing @since annotations 2014-11-27 18:11:14 +01:00
87c002d5b3 Fixes #6207: Added support for truncating HTML strings using StringHelper::truncate() and StringHelper::truncateWords() 2014-11-25 07:29:27 -05:00
562417c572 truncate and truncateWords can now preserve HTML
new private method `truncateHtml` now used by `truncate` and `truncateWords`
2014-11-25 07:19:43 -05:00
0afd13f0da Update BaseHtml.php
Some Annotation Typos

close #6029
2014-11-13 14:27:24 +01:00
cf0c8c37dd Fixes #5983: Added Inflector::sentence() 2014-11-10 15:07:36 -05:00
a61c869256 fix docs 2014-11-10 13:51:39 -05:00
eddbb6bedb dropped locale option 2014-11-10 13:51:38 -05:00
a87c55ff97 fix camelCase syntax 2014-11-10 13:51:37 -05:00
05263692e5 Fixes #5938: add sentence method in Arrayhelper for convert the array to a comma-separated sentence 2014-11-10 13:51:37 -05:00
ba68986df0 Update BaseArrayHelper.php
Recursive method call must have the same parameters as the first call.
2014-11-05 10:59:26 -05:00
bcd2392673 ArrayHelper::toArray() now uses $properties parameter in recursive calls for descending objects 2014-11-03 23:12:04 +03:00
e923a13ccd Readme on "uncheck" parameter in activeCheckbox
Just a readme update.
"If you do not want any hidden input, you should explicitly set this option as null."

close #5823
2014-10-30 15:54:35 +01:00
f9fba181d6 Fixes #5806: Allow Html::encode() to be used when the application is not started 2014-10-29 10:50:00 -04:00
899b778994 Correct type declarations 2014-10-25 16:35:50 +03:00
64b4d6dca1 Correct order of property declaration 2014-10-25 16:28:36 +03:00
bb8550886e PHP type casting 2014-10-25 15:30:03 +03:00
49961c4896 change Console::confirm() output to use stdout 2014-10-22 23:21:39 +02:00
b560c9bc90 Fixes #4457: Added support for using noscript for css files registered through asset bundles and Html helper 2014-10-19 19:30:38 +04:00
48ec791e4a Fixes #5587: json_encode is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE where it makes sense, also it is now default for Json::encode() 2014-10-19 18:50:46 +04:00
be2828d593 Fixes #5484: Fixed potential string suffix detection failure on 5.5.11 2014-10-11 09:35:55 -04:00
3e3948d8ea fix breaking changes in markdown for console and API
API is not finished.

issue #5082
2014-10-10 19:40:53 +02:00
03b88dd618 Fixes #5424: Html::addCssStyle() wasn't correctly setting style passed in array 2014-10-08 14:39:13 +04:00
ef127f6855 Fixes #5316: Added startsWith() and endsWith() to yii\helpers\StringHelper. Methods are binary-safe, multibyte-safe and optionally case-insensitive 2014-10-05 13:58:56 +04:00
bf97adbf64 Expand abnormally used ternary operator to if 2014-10-01 12:25:08 +02:00
2eda2725d0 Fixes #5164: Added Inlfector::$transliterator that can be used to customize intl transliteration 2014-09-24 23:55:55 +04:00
93496bf8fd Fixes #5058: yii\helpers\Html::activeCheckbox() and activeRadio() will generate labels by default using the corresponding attribute labels 2014-09-18 12:15:54 -04:00
ef2f6a0887 Merge pull request #5027 from yiisoft/date-format-convert
[WIP] extracted date format converting to a helper class
2014-09-17 18:42:35 +02:00
074c1f6c53 Merge branch 'master' into new-asset
Conflicts:
	apps/basic/composer.json
	composer.json
2014-09-16 20:03:53 -04:00
3ff548a442 Refactored DateValidator to support ICU format 2014-09-16 22:53:12 +02:00
be655d4f39 extracted date format converting to a helper class
adding and reworking the conversion of:
- ICU to PHP
- PHP to ICU
- ICU to JUI
- PHP to JUI
2014-09-16 19:48:52 +02:00
443779d693 Merge commit '81c3c48c53d5087be681fc5472a837bc4660ca12' into console-gii
Conflicts:
	framework/console/controllers/HelpController.php
2014-09-14 14:22:43 -04:00
6a9b3c7774 Finished console Gii. 2014-09-14 14:15:16 -04:00
b835422479 Fixes #4897: Added `yii\helpers\FileHelper::mimeMagicFile 2014-09-10 14:17:16 -04:00
ed251d8993 Html::button() type is button by default 2014-09-09 23:32:00 +04:00
fadfdf690a Refactored help system. [skip ci] 2014-09-04 19:47:52 -04:00
61284ed405 Fixes #3910: Removed the container option from Html::checkbox() and Html::radio() 2014-09-04 14:36:30 -04:00
f51a263570 new asset management WIP 2014-08-27 16:44:00 -04:00
3786440288 Fixes #4762: Reverted automatic ID fix. 2014-08-25 17:05:14 -04:00
0bf16497af Convert 'caseless' option into 'caseSensitive' option at yii\helpers\BaseFileHelper::findFiles() 2014-08-19 17:33:11 +03:00
6461523aca Added 'caseless' option to yii\helpers\BaseFileHelper::findFiles() 2014-08-19 14:52:56 +03:00
9b6f84ca58 BaseHtmlPurifier config can now be a closure
`$config` can now be a closure that will have the `$configInstance` passed as the first param.

updated docs.

close #4656
2014-08-12 00:33:29 +02:00
7728274ce6 Fixes #4122: Html::error() and Html::errorSummary() are now accepting encode option. If set to false it prevents encoding of error messages 2014-08-12 02:13:34 +04:00
1c3e61ec26 Fixes #4591: yii\helpers\Url::to() will no longer prefix relative URLs with the base URL 2014-08-05 11:06:54 -04:00
91e0a3c8ee fix typo in define $flavors['gfm-comment']
fix typo Markdown->GithubMarkdown in $flavors['gfm-comment']
2014-08-03 21:42:38 +04:00
7af92173b1 length arg of byteSubstr is now optional 2014-07-30 13:29:01 +02:00
cde71f4318 Added encoding to StringHelper::byteSubst() fallback 2014-07-30 15:11:20 +04:00
94dc27a30e Fixes #4497: Bad Request, Unable to verify your data submission 2014-07-30 09:37:03 +02:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
1c414caace Improved checks where substr_compare is used, replaced more substr + comapre cases with substr_compare 2014-07-30 02:15:08 +04:00