Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
8b79293f
Commit
8b79293f
authored
Nov 27, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing `@since` annotations
parent
7b20bdee
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
3 deletions
+14
-3
Model.php
framework/base/Model.php
+1
-0
MessageController.php
framework/console/controllers/MessageController.php
+2
-0
MigrateController.php
framework/console/controllers/MigrateController.php
+1
-0
Command.php
framework/db/Command.php
+1
-0
BaseInflector.php
framework/helpers/BaseInflector.php
+1
-0
BaseStringHelper.php
framework/helpers/BaseStringHelper.php
+5
-2
DateTimeExtended.php
framework/i18n/DateTimeExtended.php
+1
-1
Formatter.php
framework/i18n/Formatter.php
+2
-0
No files found.
framework/base/Model.php
View file @
8b79293f
...
...
@@ -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
)
...
...
framework/console/controllers/MessageController.php
View file @
8b79293f
...
...
@@ -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
)
{
...
...
framework/console/controllers/MigrateController.php
View file @
8b79293f
...
...
@@ -182,6 +182,7 @@ class MigrateController extends BaseMigrateController
/**
* @inheritdoc
* @since 2.0.1
*/
protected
function
refreshSchema
()
{
...
...
framework/db/Command.php
View file @
8b79293f
...
...
@@ -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
)
{
...
...
framework/helpers/BaseInflector.php
View file @
8b79293f
...
...
@@ -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
=
', '
)
{
...
...
framework/helpers/BaseStringHelper.php
View file @
8b79293f
...
...
@@ -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
)
{
...
...
framework/i18n/DateTimeExtended.php
View file @
8b79293f
...
...
@@ -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 <mail@cebe.cc>
* @since 2.0
* @since 2.0
.1
*/
class
DateTimeExtended
extends
\DateTime
{
...
...
framework/i18n/Formatter.php
View file @
8b79293f
...
...
@@ -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'
;
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment