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
40cb98bb
Commit
40cb98bb
authored
Mar 11, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated `@property` annotations
parent
7570afde
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
37 additions
and
14 deletions
+37
-14
ApiController.php
extensions/apidoc/commands/ApiController.php
+4
-3
GuideController.php
extensions/apidoc/commands/GuideController.php
+2
-0
GuideRenderer.php
extensions/apidoc/templates/html/GuideRenderer.php
+2
-0
BootstrapAsset.php
extensions/bootstrap/BootstrapAsset.php
+2
-0
BootstrapPluginAsset.php
extensions/bootstrap/BootstrapPluginAsset.php
+1
-0
BootstrapThemeAsset.php
extensions/bootstrap/BootstrapThemeAsset.php
+1
-1
Generator.php
extensions/gii/generators/extension/Generator.php
+4
-0
Component.php
framework/base/Component.php
+0
-1
Model.php
framework/base/Model.php
+3
-2
Module.php
framework/base/Module.php
+2
-2
Object.php
framework/base/Object.php
+0
-1
View.php
framework/base/View.php
+3
-0
Pagination.php
framework/data/Pagination.php
+3
-0
Request.php
framework/web/Request.php
+7
-2
Session.php
framework/web/Session.php
+1
-0
User.php
framework/web/User.php
+2
-2
No files found.
extensions/apidoc/commands/ApiController.php
View file @
40cb98bb
...
...
@@ -7,7 +7,6 @@
namespace
yii\apidoc\commands
;
use
yii\apidoc\components\BaseController
;
use
yii\apidoc\models\Context
;
use
yii\apidoc\renderers\ApiRenderer
;
...
...
@@ -17,8 +16,10 @@ use yii\helpers\Console;
use
yii\helpers\FileHelper
;
/**
* Generate class API documentation
* Generate class API documentation
.
*
* @author Carsten Brandt <mail@cebe.cc>
* @since 2.0
*/
class
ApiController
extends
BaseController
{
...
...
@@ -158,4 +159,4 @@ class ApiController extends BaseController
{
return
array_merge
(
parent
::
options
(
$id
),
[
'template'
,
'guide'
]);
}
}
}
extensions/apidoc/commands/GuideController.php
View file @
40cb98bb
...
...
@@ -18,6 +18,8 @@ use Yii;
* This command can render documentation stored as markdown files such as the yii guide
* or your own applications documentation setup.
*
* @author Carsten Brandt <mail@cebe.cc>
* @since 2.0
*/
class
GuideController
extends
BaseController
{
...
...
extensions/apidoc/templates/html/GuideRenderer.php
View file @
40cb98bb
...
...
@@ -18,6 +18,8 @@ use yii\web\View;
/**
*
* @property View $view The view instance. This property is read-only.
*
* @author Carsten Brandt <mail@cebe.cc>
* @since 2.0
*/
...
...
extensions/bootstrap/BootstrapAsset.php
View file @
40cb98bb
...
...
@@ -10,6 +10,8 @@ namespace yii\bootstrap;
use
yii\web\AssetBundle
;
/**
* Asset bundle for the Twitter bootstrap css files.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
...
...
extensions/bootstrap/BootstrapPluginAsset.php
View file @
40cb98bb
...
...
@@ -10,6 +10,7 @@ namespace yii\bootstrap;
use
yii\web\AssetBundle
;
/**
* Asset bundle for the Twitter bootstrap javascript files.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
...
...
extensions/bootstrap/BootstrapThemeAsset.php
View file @
40cb98bb
...
...
@@ -10,7 +10,7 @@ namespace yii\bootstrap;
use
yii\web\AssetBundle
;
/**
* Bootstrap 2 theme for Bootstrap 3
* Bootstrap 2 theme for Bootstrap 3
.
*
* @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0
...
...
extensions/gii/generators/extension/Generator.php
View file @
40cb98bb
...
...
@@ -13,6 +13,10 @@ use yii\gii\CodeFile;
/**
* This generator will generate the skeleton files needed by an extension.
*
* @property string $keywordsArrayJson A json encoded array with the given keywords. This property is
* read-only.
* @property boolean $outputPath The directory that contains the module class. This property is read-only.
*
* @author Tobias Munk <schmunk@usrbin.de>
* @since 2.0
*/
...
...
framework/base/Component.php
View file @
40cb98bb
...
...
@@ -69,7 +69,6 @@ use Yii;
* }, $data);
* ~~~
*
*
* A behavior is an instance of [[Behavior]] or its child class. A component can be attached with one or multiple
* behaviors. When a behavior is attached to a component, its public properties and methods can be accessed via the
* component directly, as if the component owns those properties and methods.
...
...
framework/base/Model.php
View file @
40cb98bb
...
...
@@ -41,8 +41,9 @@ use yii\validators\Validator;
* @property array $attributes Attribute values (name => value).
* @property array $errors An array of errors for all attributes. Empty array is returned if no error. The
* result is a two-dimensional array. See [[getErrors()]] for detailed description. This property is read-only.
* @property array $firstErrors The first errors. An empty array will be returned if there is no error. This
* property is read-only.
* @property array $firstErrors The first errors. The array keys are the attribute names, and the array values
* are the corresponding error messages. An empty array will be returned if there is no error. This property is
* read-only.
* @property ArrayIterator $iterator An iterator for traversing the items in the list. This property is
* read-only.
* @property string $scenario The scenario that this model is in. Defaults to [[SCENARIO_DEFAULT]].
...
...
framework/base/Module.php
View file @
40cb98bb
...
...
@@ -25,8 +25,8 @@ use Yii;
* This property is write-only.
* @property string $basePath The root directory of the module.
* @property array $components The components (indexed by their IDs).
* @property string $controllerPath The directory that contains the controller classes
according to [[controllerNamespace]].
*
This property is
read-only.
* @property string $controllerPath The directory that contains the controller classes
. This property is
* read-only.
* @property string $layoutPath The root directory of layout files. Defaults to "[[viewPath]]/layouts".
* @property array $modules The modules (indexed by their IDs).
* @property string $uniqueId The unique ID of the module. This property is read-only.
...
...
framework/base/Object.php
View file @
40cb98bb
...
...
@@ -46,7 +46,6 @@ use Yii;
*
* One can call [[hasProperty()]], [[canGetProperty()]] and/or [[canSetProperty()]] to check the existence of a property.
*
*
* Besides the property feature, Object also introduces an important object initialization life cycle. In particular,
* creating an new instance of Object or its derived class will involve the following life cycles sequentially:
*
...
...
framework/base/View.php
View file @
40cb98bb
...
...
@@ -18,6 +18,9 @@ use yii\widgets\FragmentCache;
*
* View provides a set of methods (e.g. [[render()]]) for rendering purpose.
*
* @property string|boolean $viewFile The view file currently being rendered. False if no view file is being
* rendered. This property is read-only.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
...
...
framework/data/Pagination.php
View file @
40cb98bb
...
...
@@ -59,10 +59,13 @@ use yii\web\Request;
* @property integer $limit The limit of the data. This may be used to set the LIMIT value for a SQL statement
* for fetching the current page of data. Note that if the page size is infinite, a value -1 will be returned.
* This property is read-only.
* @property array $links The links for navigational purpose. The array keys specify the purpose of the links
* (e.g. [[LINK_FIRST]]), and the array values are the corresponding URLs. This property is read-only.
* @property integer $offset The offset of the data. This may be used to set the OFFSET value for a SQL
* statement for fetching the current page of data. This property is read-only.
* @property integer $page The zero-based current page number.
* @property integer $pageCount Number of pages. This property is read-only.
* @property integer $pageSize The number of items per page.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
...
...
framework/web/Request.php
View file @
40cb98bb
...
...
@@ -23,10 +23,15 @@ use yii\helpers\StringHelper;
* You can access that instance via `Yii::$app->request`.
*
* @property string $absoluteUrl The currently requested absolute URL. This property is read-only.
* @property array $acceptableContentTypes The content types ordered by the preference level. The first
* element represents the most preferred content type.
* @property array $acceptableContentTypes The content types ordered by the quality score. Types with the
* highest scores will be returned first. The array keys are the content types, while the array values are the
* corresponding quality score and other parameters as given in the header.
* @property array $acceptableLanguages The languages ordered by the preference level. The first element
* represents the most preferred language.
* @property string $authPassword The password sent via HTTP authentication, null if the password is not
* given. This property is read-only.
* @property string $authUser The username sent via HTTP authentication, null if the username is not given.
* This property is read-only.
* @property string $baseUrl The relative URL for the application.
* @property array $bodyParams The request parameters given in the request body.
* @property string $contentType Request content-type. Null is returned if this information is not available.
...
...
framework/web/Session.php
View file @
40cb98bb
...
...
@@ -54,6 +54,7 @@ use yii\base\InvalidParamException;
* be overwritten by this method. This property is write-only.
* @property float $gCProbability The probability (percentage) that the GC (garbage collection) process is
* started on every session initialization, defaults to 1 meaning 1% chance.
* @property boolean $hasSessionId Whether the current request has sent the session ID.
* @property string $id The current session ID.
* @property boolean $isActive Whether the session has started. This property is read-only.
* @property SessionIterator $iterator An iterator for traversing the session variables. This property is
...
...
framework/web/User.php
View file @
40cb98bb
...
...
@@ -46,8 +46,8 @@ use yii\base\InvalidConfigException;
*
* @property string|integer $id The unique identifier for the user. If null, it means the user is a guest.
* This property is read-only.
* @property IdentityInterface $identity The identity object associated with the currently logged
user. Null
* is returned if the user is not logged in (not authenticated).
* @property IdentityInterface $identity The identity object associated with the currently logged
-in user.
*
Null
is returned if the user is not logged in (not authenticated).
* @property boolean $isGuest Whether the current user is a guest. This property is read-only.
* @property string $returnUrl The URL that the user should be redirected to after login. Note that the type
* of this property differs in getter and setter. See [[getReturnUrl()]] and [[setReturnUrl()]] for details.
...
...
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