diff --git a/framework/base/Model.php b/framework/base/Model.php index e1a2818f56..1d67c3f674 100644 --- a/framework/base/Model.php +++ b/framework/base/Model.php @@ -765,6 +765,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab * supplied by end user. * @param string $formName the form name to be used for loading the data into the models. * If not set, it will use the [[formName()]] value of the first model in `$models`. + * This parameter is available since version 2.0.1. * @return boolean whether at least one of the models is successfully populated. */ public static function loadMultiple($models, $data, $formName = null) diff --git a/framework/console/controllers/MessageController.php b/framework/console/controllers/MessageController.php index 6c64c34fdb..455a2189ff 100644 --- a/framework/console/controllers/MessageController.php +++ b/framework/console/controllers/MessageController.php @@ -313,6 +313,7 @@ class MessageController extends Controller * @param array|string $a * @param array|string $b * @return boolean + * @since 2.0.1 */ protected function tokensEqual($a, $b) { @@ -329,6 +330,7 @@ class MessageController extends Controller * * @param array $tokens * @return int|string + * @since 2.0.1 */ protected function getLine($tokens) { diff --git a/framework/console/controllers/MigrateController.php b/framework/console/controllers/MigrateController.php index a717357f68..2e1bf99aeb 100644 --- a/framework/console/controllers/MigrateController.php +++ b/framework/console/controllers/MigrateController.php @@ -182,6 +182,7 @@ class MigrateController extends BaseMigrateController /** * @inheritdoc + * @since 2.0.1 */ protected function refreshSchema() { diff --git a/framework/db/Command.php b/framework/db/Command.php index 5a3fe2053b..b050b36409 100644 --- a/framework/db/Command.php +++ b/framework/db/Command.php @@ -784,6 +784,7 @@ class Command extends Component * for valid fetch modes. If this parameter is null, the value set in [[fetchMode]] will be used. * @return mixed the method execution result * @throws Exception if the query causes any problem + * @since 2.0.1 this method is protected (was private before). */ protected function queryInternal($method, $fetchMode = null) { diff --git a/framework/helpers/BaseInflector.php b/framework/helpers/BaseInflector.php index 468de8ff6f..74eb685541 100644 --- a/framework/helpers/BaseInflector.php +++ b/framework/helpers/BaseInflector.php @@ -515,6 +515,7 @@ class BaseInflector * @param string $connector the string connecting words other than those connected by * $lastWordConnector and $twoWordsConnector * @return string the generated sentence + * @since 2.0.1 */ public static function sentence(array $words, $twoWordsConnector = ' and ', $lastWordConnector = null, $connector = ', ') { diff --git a/framework/helpers/BaseStringHelper.php b/framework/helpers/BaseStringHelper.php index 1928e48d0c..f9a4607f86 100644 --- a/framework/helpers/BaseStringHelper.php +++ b/framework/helpers/BaseStringHelper.php @@ -98,7 +98,8 @@ class BaseStringHelper * @param integer $length How many characters from original string to include into truncated string. * @param string $suffix String to append to the end of truncated string. * @param string $encoding The charset to use, defaults to charset currently used by application. - * @param boolean $asHtml Whether to treat the string being truncated as HTML and preserve proper HTML tags + * @param boolean $asHtml Whether to treat the string being truncated as HTML and preserve proper HTML tags. + * This parameter is available since version 2.0.1. * @return string the truncated string. */ public static function truncate($string, $length, $suffix = '...', $encoding = null, $asHtml = false) @@ -120,7 +121,8 @@ class BaseStringHelper * @param string $string The string to truncate. * @param integer $count How many words from original string to include into truncated string. * @param string $suffix String to append to the end of truncated string. - * @param boolean $asHtml Whether to treat the string being truncated as HTML and preserve proper HTML tags + * @param boolean $asHtml Whether to treat the string being truncated as HTML and preserve proper HTML tags. + * This parameter is available since version 2.0.1. * @return string the truncated string. */ public static function truncateWords($string, $count, $suffix = '...', $asHtml = false) @@ -145,6 +147,7 @@ class BaseStringHelper * @param string $suffix String to append to the end of the truncated string. * @param string|boolean $encoding * @return string + * @since 2.0.1 */ protected static function truncateHtml($string, $count, $suffix, $encoding = false) { diff --git a/framework/i18n/DateTimeExtended.php b/framework/i18n/DateTimeExtended.php index ecbeb74557..c201d939d9 100644 --- a/framework/i18n/DateTimeExtended.php +++ b/framework/i18n/DateTimeExtended.php @@ -18,7 +18,7 @@ namespace yii\i18n; * Use the original PHP [DateTime](http://php.net/manual/en/class.datetime.php) class instead. * * @author Carsten Brandt - * @since 2.0 + * @since 2.0.1 */ class DateTimeExtended extends \DateTime { diff --git a/framework/i18n/Formatter.php b/framework/i18n/Formatter.php index 79d3bbcf33..76073eb1b8 100644 --- a/framework/i18n/Formatter.php +++ b/framework/i18n/Formatter.php @@ -82,6 +82,8 @@ class Formatter extends Component * Please refer to the [php manual](http://www.php.net/manual/en/timezones.php) for available time zones. * * It defaults to `UTC` so you only have to adjust this value if you store datetime values in another time zone in your database. + * + * @since 2.0.1 */ public $defaultTimeZone = 'UTC'; /**