Commit 8b79293f by Carsten Brandt

added missing `@since` annotations

parent 7b20bdee
...@@ -765,6 +765,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab ...@@ -765,6 +765,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
* supplied by end user. * supplied by end user.
* @param string $formName the form name to be used for loading the data into the models. * @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`. * 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. * @return boolean whether at least one of the models is successfully populated.
*/ */
public static function loadMultiple($models, $data, $formName = null) public static function loadMultiple($models, $data, $formName = null)
......
...@@ -313,6 +313,7 @@ class MessageController extends Controller ...@@ -313,6 +313,7 @@ class MessageController extends Controller
* @param array|string $a * @param array|string $a
* @param array|string $b * @param array|string $b
* @return boolean * @return boolean
* @since 2.0.1
*/ */
protected function tokensEqual($a, $b) protected function tokensEqual($a, $b)
{ {
...@@ -329,6 +330,7 @@ class MessageController extends Controller ...@@ -329,6 +330,7 @@ class MessageController extends Controller
* *
* @param array $tokens * @param array $tokens
* @return int|string * @return int|string
* @since 2.0.1
*/ */
protected function getLine($tokens) protected function getLine($tokens)
{ {
......
...@@ -182,6 +182,7 @@ class MigrateController extends BaseMigrateController ...@@ -182,6 +182,7 @@ class MigrateController extends BaseMigrateController
/** /**
* @inheritdoc * @inheritdoc
* @since 2.0.1
*/ */
protected function refreshSchema() protected function refreshSchema()
{ {
......
...@@ -784,6 +784,7 @@ class Command extends Component ...@@ -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. * for valid fetch modes. If this parameter is null, the value set in [[fetchMode]] will be used.
* @return mixed the method execution result * @return mixed the method execution result
* @throws Exception if the query causes any problem * @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) protected function queryInternal($method, $fetchMode = null)
{ {
......
...@@ -515,6 +515,7 @@ class BaseInflector ...@@ -515,6 +515,7 @@ class BaseInflector
* @param string $connector the string connecting words other than those connected by * @param string $connector the string connecting words other than those connected by
* $lastWordConnector and $twoWordsConnector * $lastWordConnector and $twoWordsConnector
* @return string the generated sentence * @return string the generated sentence
* @since 2.0.1
*/ */
public static function sentence(array $words, $twoWordsConnector = ' and ', $lastWordConnector = null, $connector = ', ') public static function sentence(array $words, $twoWordsConnector = ' and ', $lastWordConnector = null, $connector = ', ')
{ {
......
...@@ -98,7 +98,8 @@ class BaseStringHelper ...@@ -98,7 +98,8 @@ class BaseStringHelper
* @param integer $length How many characters from original string to include into truncated string. * @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 $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 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. * @return string the truncated string.
*/ */
public static function truncate($string, $length, $suffix = '...', $encoding = null, $asHtml = false) public static function truncate($string, $length, $suffix = '...', $encoding = null, $asHtml = false)
...@@ -120,7 +121,8 @@ class BaseStringHelper ...@@ -120,7 +121,8 @@ class BaseStringHelper
* @param string $string The string to truncate. * @param string $string The string to truncate.
* @param integer $count How many words from original string to include into truncated string. * @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 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. * @return string the truncated string.
*/ */
public static function truncateWords($string, $count, $suffix = '...', $asHtml = false) public static function truncateWords($string, $count, $suffix = '...', $asHtml = false)
...@@ -145,6 +147,7 @@ class BaseStringHelper ...@@ -145,6 +147,7 @@ class BaseStringHelper
* @param string $suffix String to append to the end of the truncated string. * @param string $suffix String to append to the end of the truncated string.
* @param string|boolean $encoding * @param string|boolean $encoding
* @return string * @return string
* @since 2.0.1
*/ */
protected static function truncateHtml($string, $count, $suffix, $encoding = false) protected static function truncateHtml($string, $count, $suffix, $encoding = false)
{ {
......
...@@ -18,7 +18,7 @@ namespace yii\i18n; ...@@ -18,7 +18,7 @@ namespace yii\i18n;
* Use the original PHP [DateTime](http://php.net/manual/en/class.datetime.php) class instead. * Use the original PHP [DateTime](http://php.net/manual/en/class.datetime.php) class instead.
* *
* @author Carsten Brandt <mail@cebe.cc> * @author Carsten Brandt <mail@cebe.cc>
* @since 2.0 * @since 2.0.1
*/ */
class DateTimeExtended extends \DateTime class DateTimeExtended extends \DateTime
{ {
......
...@@ -82,6 +82,8 @@ class Formatter extends Component ...@@ -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. * 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. * 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'; public $defaultTimeZone = 'UTC';
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment