Commit 40cb98bb by Carsten Brandt

updated `@property` annotations

parent 7570afde
......@@ -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']);
}
}
}
......@@ -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
{
......
......@@ -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
*/
......
......@@ -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
*/
......
......@@ -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
......
......@@ -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
......
......@@ -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
*/
......
......@@ -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.
......
......@@ -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]].
......
......@@ -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.
......
......@@ -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:
*
......
......@@ -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
*/
......
......@@ -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
......
......@@ -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.
......
......@@ -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
......
......@@ -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.
......
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