Yii PHP Framework Version 2

This is the core framework code of Yii 2.

This repository is a read-only git subsplit of https://github.com/yiisoft/yii2. Please submit issue reports and pull requests to the main repository. For license information check the LICENSE-file.

Installation

The preferred way to install the Yii framework is through composer.

Refer to Bower and NPM Assets installation to select an asset installation method.

Either run

composer require yiisoft/yii2

or add

"yiisoft/yii2": "~2.0.0",

to the require section of your composer.json.

类参考

描述
Yii Yii 是一个服务于通用框架功能的助手类.
YiiRequirementChecker YiiRequirementChecker allows checking, if current system meets the requirements for running the Yii application.
yii\BaseYii BaseYii 是 Yii 框架的核心助手类.
yii\base\Action Action is the base class for all controller action classes.
yii\base\ActionEvent ActionEvent represents the event parameter used for an action event.
yii\base\ActionFilter ActionFilter is the base class for action filters.
yii\base\Application Application is the base class for all application classes.
yii\base\ArrayAccessTrait ArrayAccessTrait provides the implementation for IteratorAggregate, ArrayAccess and Countable.
yii\base\Arrayable Arrayable is the interface that should be implemented by classes who want to support customizable representation of their instances.
yii\base\ArrayableTrait ArrayableTrait provides a common implementation of the yii\base\Arrayable interface.
yii\base\BaseObject BaseObject 是实现 属性(property) 特性的基类.
yii\base\Behavior Behavior 是所有行为类的基类.
yii\base\BootstrapInterface BootstrapInterface is the interface that should be implemented by classes who want to participate in the application bootstrap process.
yii\base\Component Component 是实现 属性(property), 事件(event)行为(behavior) 特性的基类.
yii\base\Configurable Configurable is the interface that should be implemented by classes who support configuring its properties through the last parameter to its constructor.
yii\base\Controller Controller is the base class for classes containing controller logic.
yii\base\DynamicContentAwareInterface DynamicContentAwareInterface is the interface that should be implemented by classes which support a yii\base\View dynamic content feature.
yii\base\DynamicContentAwareTrait DynamicContentAwareTrait implements common methods for classes which support a yii\base\View dynamic content feature.
yii\base\DynamicModel DynamicModel is a model class primarily used to support ad hoc data validation.
yii\base\ErrorException ErrorException represents a PHP error.
yii\base\ErrorHandler ErrorHandler handles uncaught PHP errors and exceptions.
yii\base\Event Event is the base class for all event classes.
yii\base\Exception Exception 表示所有用途的通用异常.
yii\base\ExitException ExitException represents a normal termination of an application.
yii\base\InlineAction InlineAction represents an action that is defined as a controller method.
yii\base\InvalidArgumentException InvalidArgumentException represents an exception caused by invalid arguments passed to a method.
yii\base\InvalidCallException InvalidCallException represents an exception caused by calling a method in a wrong way.
yii\base\InvalidConfigException InvalidConfigException 表示由不正确的对象配置导致的异常.
yii\base\InvalidParamException InvalidParamException represents an exception caused by invalid parameters passed to a method.
yii\base\InvalidRouteException InvalidRouteException 表示由无效路由导致的异常.
yii\base\InvalidValueException InvalidValueException represents an exception caused by a function returning a value of unexpected type.
yii\base\Model Model is the base class for data models.
yii\base\ModelEvent ModelEvent represents the parameter needed by yii\base\Model events.
yii\base\Module Module 是模块和应用程序类的基类.
yii\base\NotSupportedException NotSupportedException 表示由于访问不支持的功能而导致的异常.
yii\base\Object Object 是实现 属性(property) 特性的基类.
yii\base\Request Request represents a request that is handled by an yii\base\Application.
yii\base\Response Response represents the response of an yii\base\Application to a yii\base\Request.
yii\base\Security Security provides a set of methods to handle common security-related tasks.
yii\base\StaticInstanceInterface StaticInstanceInterface is the interface for providing static instances to classes, which can be used to obtain class meta information that can not be expressed in static methods.
yii\base\StaticInstanceTrait StaticInstanceTrait provides methods to satisfy yii\base\StaticInstanceInterface interface.
yii\base\Theme Theme represents an application theme.
yii\base\UnknownClassException UnknownClassException 表示由于使用未知类导致的异常.
yii\base\UnknownMethodException UnknownMethodException represents an exception caused by accessing an unknown object method.
yii\base\UnknownPropertyException UnknownPropertyException 表示由于访问未知对象属性导致的异常.
yii\base\UserException UserException 是要向最终用户显示的异常的基类.
yii\base\View View represents a view object in the MVC pattern.
yii\base\ViewContextInterface ViewContextInterface is the interface that should implemented by classes who want to support relative view names.
yii\base\ViewEvent ViewEvent represents events triggered by the yii\base\View component.
yii\base\ViewNotFoundException ViewNotFoundException represents an exception caused by view file not found.
yii\base\ViewRenderer ViewRenderer is the base class for view renderer classes.
yii\base\Widget Widget is the base class for widgets.
yii\base\WidgetEvent WidgetEvent represents the event parameter used for a widget event.
yii\behaviors\AttributeBehavior 当某些事件发生时, AttributeBehavior 会自动将指定的值分配给 ActiveRecord 对象的一个或多个属性.
yii\behaviors\AttributeTypecastBehavior AttributeTypecastBehavior 提供模型属性类型自动转换的功能.
yii\behaviors\AttributesBehavior 当某些事件发生时, AttributesBehavior 会自动将指定的值分配给 ActiveRecord 对象的一个或多个属性.
yii\behaviors\BlameableBehavior BlameableBehavior 使用当前用户ID自动填充指定的属性.
yii\behaviors\CacheableWidgetBehavior 可缓存小部件行为(Cacheable widget behavior)根据指定的持续时间和依赖性自动缓存小部件内容.
yii\behaviors\OptimisticLockBehavior OptimisticLockBehavior 使用 optimisticLock() 返回的列名自动升级模型的锁定版本.
yii\behaviors\SluggableBehavior SluggableBehavior 自动使用可以在 URL 中使用的 slug 值填充指定的属性.
yii\behaviors\TimestampBehavior TimestampBehavior 自动使用当前时间戳填充指定的属性.
yii\caching\ApcCache ApcCache provides APC caching in terms of an application component.
yii\caching\ArrayCache ArrayCache provides caching for the current request only by storing the values in an array.
yii\caching\Cache Cache is the base class for cache classes supporting different cache storage implementations.
yii\caching\CacheInterface CacheInterface is the base interface for cache.
yii\caching\ChainedDependency ChainedDependency represents a dependency which is composed of a list of other dependencies.
yii\caching\DbCache DbCache implements a cache application component by storing cached data in a database.
yii\caching\DbDependency DbDependency represents a dependency based on the query result of a SQL statement.
yii\caching\DbQueryDependency DbQueryDependency represents a dependency based on the query result of an yii\db\QueryInterface instance.
yii\caching\Dependency Dependency is the base class for cache dependency classes.
yii\caching\DummyCache DummyCache is a placeholder cache component.
yii\caching\ExpressionDependency ExpressionDependency represents a dependency based on the result of a PHP expression.
yii\caching\FileCache FileCache implements a cache component using files.
yii\caching\FileDependency FileDependency represents a dependency based on a file's last modification time.
yii\caching\MemCache MemCache implements a cache application component based on memcache and memcached.
yii\caching\MemCacheServer MemCacheServer represents the configuration data for a single memcache or memcached server.
yii\caching\TagDependency TagDependency associates a cached data item with one or multiple $tags.
yii\caching\WinCache WinCache provides Windows Cache caching in terms of an application component.
yii\caching\XCache XCache provides XCache caching in terms of an application component.
yii\caching\ZendDataCache ZendDataCache provides Zend data caching in terms of an application component.
yii\captcha\Captcha Captcha 渲染一个验证码(CAPTCHA)图像和一个用于用户输入验证码的输入字段.
yii\captcha\CaptchaAction CaptchaAction 渲染一个验证码(CAPTCHA)图像.
yii\captcha\CaptchaAsset 该资源包提供 yii\captcha\Captcha 小部件所需的 javascript 文件.
yii\captcha\CaptchaValidator CaptchaValidator 验证属性值与验证码(CAPTCHA)中显示的验证码相同.
yii\console\Application Application represents a console application.
yii\console\Controller Controller is the base class of console command classes.
yii\console\ErrorHandler ErrorHandler handles uncaught PHP errors and exceptions.
yii\console\Exception Exception 表示由于错误的使用控制台命令导致的异常.
yii\console\ExitCode This class provides constants for defining console command exit codes.
yii\console\Markdown A Markdown parser that enhances markdown for reading in console environments.
yii\console\Request The console Request represents the environment information for a console application.
yii\console\Response The console Response represents the result of a console application.
yii\console\UnknownCommandException UnknownCommandException 表示由于错误的使用控制台命令导致的异常.
yii\console\controllers\AssetController Allows you to combine and compress your JavaScript and CSS files.
yii\console\controllers\BaseMigrateController BaseMigrateController is the base class for migrate controllers.
yii\console\controllers\CacheController Allows you to flush cache.
yii\console\controllers\FixtureController Manages fixture data loading and unloading.
yii\console\controllers\HelpController Provides help information about console commands.
yii\console\controllers\MessageController Extracts messages to be translated from source files.
yii\console\controllers\MigrateController Manages application migrations.
yii\console\controllers\ServeController Runs PHP built-in web server.
yii\console\widgets\Table Table class displays a table in console.
yii\data\ActiveDataFilter ActiveDataFilter allows composing a filtering condition in a format suitable for yii\db\QueryInterface::where().
yii\data\ActiveDataProvider ActiveDataProvider implements a data provider based on yii\db\Query and yii\db\ActiveQuery.
yii\data\ArrayDataProvider ArrayDataProvider implements a data provider based on a data array.
yii\data\BaseDataProvider BaseDataProvider provides a base class that implements the yii\data\DataProviderInterface.
yii\data\DataFilter DataFilter is a special yii\base\Model for processing query filtering specification.
yii\data\DataProviderInterface DataProviderInterface is the interface that must be implemented by data provider classes.
yii\data\Pagination Pagination represents information relevant to pagination of data items.
yii\data\Sort Sort represents information relevant to sorting.
yii\data\SqlDataProvider SqlDataProvider implements a data provider based on a plain SQL statement.
yii\db\ActiveQuery ActiveQuery represents a DB query associated with an Active Record class.
yii\db\ActiveQueryInterface ActiveQueryInterface defines the common interface to be implemented by active record query classes.
yii\db\ActiveQueryTrait ActiveQueryTrait implements the common methods and properties for active record query classes.
yii\db\ActiveRecord ActiveRecord is the base class for classes representing relational data in terms of objects.
yii\db\ActiveRecordInterface ActiveRecordInterface.
yii\db\ActiveRelationTrait ActiveRelationTrait implements the common methods and properties for active record relational queries.
yii\db\AfterSaveEvent AfterSaveEvent represents the information available in yii\db\ActiveRecord::EVENT_AFTER_INSERT and yii\db\ActiveRecord::EVENT_AFTER_UPDATE.
yii\db\ArrayExpression Class ArrayExpression represents an array SQL expression.
yii\db\BaseActiveRecord ActiveRecord is the base class for classes representing relational data in terms of objects.
yii\db\BatchQueryResult BatchQueryResult represents a batch query from which you can retrieve data in batches.
yii\db\CheckConstraint CheckConstraint represents the metadata of a table CHECK constraint.
yii\db\ColumnSchema ColumnSchema class describes the metadata of a column in a database table.
yii\db\ColumnSchemaBuilder ColumnSchemaBuilder helps to define database schema types using a PHP interface.
yii\db\Command Command represents a SQL statement to be executed against a database.
yii\db\Connection Connection represents a connection to a database via PDO.
yii\db\Constraint Constraint represents the metadata of a table constraint.
yii\db\ConstraintFinderInterface ConstraintFinderInterface defines methods for getting a table constraint information.
yii\db\ConstraintFinderTrait ConstraintFinderTrait provides methods for getting a table constraint information.
yii\db\DataReader DataReader represents a forward-only stream of rows from a query result set.
yii\db\DefaultValueConstraint DefaultValueConstraint represents the metadata of a table DEFAULT constraint.
yii\db\Exception Exception 表示由于某些与数据库相关的操作导致的异常.
yii\db\Expression Expression represents a DB expression that does not need escaping or quoting.
yii\db\ExpressionBuilder Class ExpressionBuilder builds objects of \yii\db\yii\db\Expression class.
yii\db\ExpressionBuilderInterface Interface ExpressionBuilderInterface is designed to build raw SQL from specific expression objects that implement yii\db\ExpressionInterface.
yii\db\ExpressionBuilderTrait Trait ExpressionBuilderTrait provides common constructor for classes that should implement yii\db\ExpressionBuilderInterface
yii\db\ExpressionInterface Interface ExpressionInterface should be used to mark classes, that should be built in a special way.
yii\db\ForeignKeyConstraint ForeignKeyConstraint represents the metadata of a table FOREIGN KEY constraint.
yii\db\IndexConstraint IndexConstraint represents the metadata of a table INDEX constraint.
yii\db\IntegrityException Exception 表示由于违反数据库约束而导致的异常.
yii\db\JsonExpression Class JsonExpression represents data that should be encoded to JSON.
yii\db\Migration Migration is the base class for representing a database migration.
yii\db\MigrationInterface The MigrationInterface defines the minimum set of methods to be implemented by a database migration.
yii\db\PdoValue Class PdoValue represents a $value that should be bound to PDO with exact $type.
yii\db\PdoValueBuilder Class PdoValueBuilder builds object of the yii\db\PdoValue expression class.
yii\db\Query Query represents a SELECT SQL statement in a way that is independent of DBMS.
yii\db\QueryBuilder QueryBuilder builds a SELECT SQL statement based on the specification given as a yii\db\Query object.
yii\db\QueryExpressionBuilder Class QueryExpressionBuilder is used internally to build yii\db\Query object using unified yii\db\QueryBuilder expression building interface.
yii\db\QueryInterface The QueryInterface defines the minimum set of methods to be implemented by a database query.
yii\db\QueryTrait The BaseQuery trait represents the minimum method set of a database Query.
yii\db\Schema Schema is the base class for concrete DBMS-specific schema classes.
yii\db\SchemaBuilderTrait SchemaBuilderTrait contains shortcut methods to create instances of yii\db\ColumnSchemaBuilder.
yii\db\SqlToken SqlToken represents SQL tokens produced by yii\db\SqlTokenizer or its child classes.
yii\db\SqlTokenizer SqlTokenizer splits an SQL query into individual SQL tokens.
yii\db\StaleObjectException
yii\db\TableSchema TableSchema represents the metadata of a database table.
yii\db\Transaction Transaction represents a DB transaction.
yii\db\ViewFinderTrait ViewFinderTrait implements the method getViewNames for finding views in a database.
yii\db\conditions\AndCondition Condition that connects two or more SQL expressions with the AND operator.
yii\db\conditions\BetweenColumnsCondition Class BetweenColumnCondition represents a BETWEEN condition where values is between two columns. For example:
yii\db\conditions\BetweenColumnsConditionBuilder Class BetweenColumnsConditionBuilder builds objects of yii\db\conditions\BetweenColumnsCondition
yii\db\conditions\BetweenCondition Class BetweenCondition represents a BETWEEN condition.
yii\db\conditions\BetweenConditionBuilder Class BetweenConditionBuilder builds objects of yii\db\conditions\BetweenCondition
yii\db\conditions\ConditionInterface Interface ConditionInterface should be implemented by classes that represent a condition in DBAL of framework.
yii\db\conditions\ConjunctionCondition Class ConjunctionCondition
yii\db\conditions\ConjunctionConditionBuilder Class ConjunctionConditionBuilder builds objects of abstract class yii\db\conditions\ConjunctionCondition
yii\db\conditions\ExistsCondition Condition that represents EXISTS operator.
yii\db\conditions\ExistsConditionBuilder Class ExistsConditionBuilder builds objects of yii\db\conditions\ExistsCondition
yii\db\conditions\HashCondition Condition based on column-value pairs.
yii\db\conditions\HashConditionBuilder Class HashConditionBuilder builds objects of yii\db\conditions\HashCondition
yii\db\conditions\InCondition Class InCondition represents IN condition.
yii\db\conditions\InConditionBuilder Class InConditionBuilder builds objects of yii\db\conditions\InCondition
yii\db\conditions\LikeCondition Class LikeCondition represents a LIKE condition.
yii\db\conditions\LikeConditionBuilder Class LikeConditionBuilder builds objects of yii\db\conditions\LikeCondition
yii\db\conditions\NotCondition Condition that inverts passed \yii\db\conditions\condition.
yii\db\conditions\NotConditionBuilder Class NotConditionBuilder builds objects of yii\db\conditions\NotCondition
yii\db\conditions\OrCondition Condition that connects two or more SQL expressions with the AND operator.
yii\db\conditions\SimpleCondition Class SimpleCondition represents a simple condition like "column" operator value.
yii\db\conditions\SimpleConditionBuilder Class NotConditionBuilder builds objects of yii\db\conditions\SimpleCondition
yii\db\cubrid\ColumnSchemaBuilder ColumnSchemaBuilder is the schema builder for Cubrid databases.
yii\db\cubrid\QueryBuilder QueryBuilder is the query builder for CUBRID databases (version 9.3.x and higher).
yii\db\cubrid\Schema Schema is the class for retrieving metadata from a CUBRID database (version 9.3.x and higher).
yii\db\cubrid\conditions\LikeConditionBuilder
yii\db\mssql\PDO This is an extension of the default PDO class of MSSQL and DBLIB drivers.
yii\db\mssql\QueryBuilder QueryBuilder is the query builder for MS SQL Server databases (version 2008 and above).
yii\db\mssql\Schema Schema is the class for retrieving metadata from MS SQL Server databases (version 2008 and above).
yii\db\mssql\SqlsrvPDO This is an extension of the default PDO class of SQLSRV driver.
yii\db\mssql\TableSchema TableSchema represents the metadata of a database table.
yii\db\mssql\conditions\InConditionBuilder
yii\db\mssql\conditions\LikeConditionBuilder
yii\db\mysql\ColumnSchema Class ColumnSchema for MySQL database
yii\db\mysql\ColumnSchemaBuilder ColumnSchemaBuilder is the schema builder for MySQL databases.
yii\db\mysql\JsonExpressionBuilder Class JsonExpressionBuilder builds yii\db\JsonExpression for MySQL DBMS.
yii\db\mysql\QueryBuilder QueryBuilder is the query builder for MySQL databases.
yii\db\mysql\Schema Schema is the class for retrieving metadata from a MySQL database (version 4.1.x and 5.x).
yii\db\oci\ColumnSchemaBuilder ColumnSchemaBuilder is the schema builder for Oracle databases.
yii\db\oci\QueryBuilder QueryBuilder is the query builder for Oracle databases.
yii\db\oci\Schema Schema is the class for retrieving metadata from an Oracle database.
yii\db\oci\conditions\InConditionBuilder
yii\db\oci\conditions\LikeConditionBuilder
yii\db\pgsql\ArrayExpressionBuilder Class ArrayExpressionBuilder builds yii\db\ArrayExpression for PostgreSQL DBMS.
yii\db\pgsql\ArrayParser The class converts PostgreSQL array representation to PHP array
yii\db\pgsql\ColumnSchema Class ColumnSchema for PostgreSQL database.
yii\db\pgsql\JsonExpressionBuilder Class JsonExpressionBuilder builds yii\db\JsonExpression for PostgreSQL DBMS.
yii\db\pgsql\QueryBuilder QueryBuilder is the query builder for PostgreSQL databases.
yii\db\pgsql\Schema Schema is the class for retrieving metadata from a PostgreSQL database (version 9.x and above).
yii\db\sqlite\ColumnSchemaBuilder ColumnSchemaBuilder is the schema builder for Sqlite databases.
yii\db\sqlite\Command Command represents an SQLite's SQL statement to be executed against a database.
yii\db\sqlite\QueryBuilder QueryBuilder is the query builder for SQLite databases.
yii\db\sqlite\Schema Schema is the class for retrieving metadata from a SQLite (2/3) database.
yii\db\sqlite\SqlTokenizer SqlTokenizer splits SQLite query into individual SQL tokens.
yii\db\sqlite\conditions\InConditionBuilder
yii\db\sqlite\conditions\LikeConditionBuilder
yii\di\Container Container implements a dependency injection container.
yii\di\Instance Instance represents a reference to a named object in a dependency injection (DI) container or a service locator.
yii\di\NotInstantiableException NotInstantiableException 表示由于不正确的依赖注入容器配置或使用导致的异常.
yii\di\ServiceLocator ServiceLocator 实现了一个 服务定位器.
yii\filters\AccessControl AccessControl provides simple access control based on a set of rules.
yii\filters\AccessRule This class represents an access rule defined by the yii\filters\AccessControl action filter.
yii\filters\AjaxFilter AjaxFilter allow to limit access only for ajax requests.
yii\filters\ContentNegotiator ContentNegotiator supports response format negotiation and application language negotiation.
yii\filters\Cors Cors filter implements Cross Origin Resource Sharing.
yii\filters\HostControl HostControl provides simple control over requested host name.
yii\filters\HttpCache HttpCache implements client-side caching by utilizing the Last-Modified and ETag HTTP headers.
yii\filters\PageCache PageCache implements server-side caching of whole pages.
yii\filters\RateLimitInterface RateLimitInterface is the interface that may be implemented by an identity object to enforce rate limiting.
yii\filters\RateLimiter RateLimiter implements a rate limiting algorithm based on the leaky bucket algorithm.
yii\filters\VerbFilter VerbFilter is an action filter that filters by HTTP request methods.
yii\filters\auth\AuthInterface AuthInterface is the interface that should be implemented by auth method classes.
yii\filters\auth\AuthMethod AuthMethod is a base class implementing the yii\filters\auth\AuthInterface interface.
yii\filters\auth\CompositeAuth CompositeAuth is an action filter that supports multiple authentication methods at the same time.
yii\filters\auth\HttpBasicAuth HttpBasicAuth is an action filter that supports the HTTP Basic authentication method.
yii\filters\auth\HttpBearerAuth HttpBearerAuth is an action filter that supports the authentication method based on HTTP Bearer token.
yii\filters\auth\HttpHeaderAuth HttpHeaderAuth is an action filter that supports HTTP authentication through HTTP Headers.
yii\filters\auth\QueryParamAuth QueryParamAuth is an action filter that supports the authentication based on the access token passed through a query parameter.
yii\grid\ActionColumn ActionColumn is a column for the yii\grid\GridView widget that displays buttons for viewing and manipulating the items.
yii\grid\CheckboxColumn CheckboxColumn displays a column of checkboxes in a grid view.
yii\grid\Column Column is the base class of all yii\grid\GridView column classes.
yii\grid\DataColumn DataColumn is the default column type for the yii\grid\GridView widget.
yii\grid\GridView The GridView widget is used to display data in a grid.
yii\grid\GridViewAsset This asset bundle provides the javascript files for the yii\grid\GridView widget.
yii\grid\RadioButtonColumn RadioButtonColumn displays a column of radio buttons in a grid view.
yii\grid\SerialColumn SerialColumn displays a column of row numbers (1-based).
yii\helpers\ArrayHelper ArrayHelper 提供了可以在应用程序中使用的额外的数组功能.
yii\helpers\BaseArrayHelper BaseArrayHelper 为 yii\helpers\ArrayHelper 提供了具体的实现方法.
yii\helpers\BaseConsole BaseConsole 为 yii\helpers\Console 提供了具体的实现方法.
yii\helpers\BaseFileHelper BaseFileHelper 为 yii\helpers\FileHelper 提供了具体的实现方法.
yii\helpers\BaseFormatConverter BaseFormatConverter 为 yii\helpers\FormatConverter 提供了具体的实现方法.
yii\helpers\BaseHtml BaseHtml 为 yii\helpers\Html 提供了具体的实现方法.
yii\helpers\BaseHtmlPurifier BaseHtmlPurifier 为 yii\helpers\HtmlPurifier 提供了具体的实现方法.
yii\helpers\BaseInflector BaseInflector 为 yii\helpers\Inflector 提供了具体的实现方法.
yii\helpers\BaseIpHelper BaseIpHelper 为 yii\helpers\IpHelper 提供了具体的实现方法.
yii\helpers\BaseJson BaseJson 为 yii\helpers\Json 提供了具体的实现方法.
yii\helpers\BaseMarkdown BaseMarkdown 为 yii\helpers\Markdown 提供了具体的实现方法.
yii\helpers\BaseStringHelper BaseStringHelper 为 yii\helpers\StringHelper 提供了具体的实现方法.
yii\helpers\BaseUrl BaseUrl 为 yii\helpers\Url 提供了具体的实现方法.
yii\helpers\BaseVarDumper BaseVarDumper 为 yii\helpers\VarDumper 提供了具体的实现方法.
yii\helpers\Console 控制台助手为命令行相关任务提供了有用的方法, 例如获取输入或格式化/着色输出.
yii\helpers\FileHelper 文件系统助手类.
yii\helpers\FormatConverter FormatConverter 提供了在不同模式之间转换时间格式的功能.
yii\helpers\Html Html 提供了一组用于生成常用 HTML 标签的静态方法.
yii\helpers\HtmlPurifier HtmlPurifier 提供了从任何有害代码中清除 HTML 的功能.
yii\helpers\Inflector Inflector 将英文名词复数化或单一化. 它还包含一些其它有用的方法.
yii\helpers\IpHelper IpHelper 类提供了一组与 IP 相关的静态方法.
yii\helpers\Json Json 是一个提供 JSON 数据编码和解码的助手类.
yii\helpers\Markdown Markdown 提供了将 markdown 转换为 HTML 的功能.
yii\helpers\ReplaceArrayValue 表示在执行 yii\helpers\ArrayHelper::merge() 时替换数组值的对象.
yii\helpers\StringHelper StringHelper 字符串助手类.
yii\helpers\UnsetArrayValue 表示在执行 yii\helpers\ArrayHelper::merge() 时删除数组值的对象.
yii\helpers\Url Url 提供了一组用于管理 URL 的静态方法.
yii\helpers\VarDumper VarDumper 旨在替代有缺陷的 PHP 函数var_dumpprint_r.
yii\i18n\DbMessageSource DbMessageSource extends yii\i18n\MessageSource and represents a message source that stores translated messages in database.
yii\i18n\Formatter Formatter provides a set of commonly used data formatting methods.
yii\i18n\GettextFile GettextFile is the base class for representing a Gettext message file.
yii\i18n\GettextMessageSource GettextMessageSource represents a message source that is based on GNU Gettext.
yii\i18n\GettextMoFile GettextMoFile represents an MO Gettext message file.
yii\i18n\GettextPoFile GettextPoFile represents a PO Gettext message file.
yii\i18n\I18N I18N provides features related with internationalization (I18N) and localization (L10N).
yii\i18n\Locale Locale provides various locale information via convenient methods.
yii\i18n\MessageFormatter MessageFormatter allows formatting messages via ICU message format.
yii\i18n\MessageSource MessageSource is the base class for message translation repository classes.
yii\i18n\MissingTranslationEvent MissingTranslationEvent represents the parameter for the yii\i18n\MessageSource::EVENT_MISSING_TRANSLATION event.
yii\i18n\PhpMessageSource PhpMessageSource represents a message source that stores translated messages in PHP scripts.
yii\log\DbTarget DbTarget stores log messages in a database table.
yii\log\Dispatcher Dispatcher manages a set of log targets.
yii\log\EmailTarget EmailTarget sends selected log messages to the specified email addresses.
yii\log\FileTarget FileTarget records log messages in a file.
yii\log\LogRuntimeException LogRuntimeException 表示由于日志传递问题导致的异常.
yii\log\Logger Logger records logged messages in memory and sends them to different targets if $dispatcher is set.
yii\log\SyslogTarget SyslogTarget writes log to syslog.
yii\log\Target Target is the base class for all log target classes.
yii\mail\BaseMailer BaseMailer serves as a base class that implements the basic functions required by yii\mail\MailerInterface.
yii\mail\BaseMessage BaseMessage serves as a base class that implements the send() method required by yii\mail\MessageInterface.
yii\mail\MailEvent MailEvent represents the event parameter used for events triggered by yii\mail\BaseMailer.
yii\mail\MailerInterface MailerInterface is the interface that should be implemented by mailer classes.
yii\mail\MessageInterface MessageInterface is the interface that should be implemented by mail message classes.
yii\mutex\DbMutex DbMutex is the base class for classes, which relies on database while implementing mutex "lock" mechanism.
yii\mutex\FileMutex FileMutex implements mutex "lock" mechanism via local file system files.
yii\mutex\Mutex The Mutex component allows mutual execution of concurrent processes in order to prevent "race conditions".
yii\mutex\MysqlMutex MysqlMutex implements mutex "lock" mechanism via MySQL locks.
yii\mutex\OracleMutex OracleMutex implements mutex "lock" mechanism via Oracle locks.
yii\mutex\PgsqlMutex PgsqlMutex implements mutex "lock" mechanism via PgSQL locks.
yii\mutex\RetryAcquireTrait Trait RetryAcquireTrait.
yii\rbac\Assignment Assignment represents an assignment of a role to a user.
yii\rbac\BaseManager BaseManager is a base class implementing yii\rbac\ManagerInterface for RBAC management.
yii\rbac\CheckAccessInterface For more details and usage information on CheckAccessInterface, see the guide article on security authorization.
yii\rbac\DbManager DbManager represents an authorization manager that stores authorization information in database.
yii\rbac\Item For more details and usage information on Item, see the guide article on security authorization.
yii\rbac\ManagerInterface For more details and usage information on ManagerInterface, see the guide article on security authorization.
yii\rbac\Permission For more details and usage information on Permission, see the guide article on security authorization.
yii\rbac\PhpManager PhpManager represents an authorization manager that stores authorization information in terms of a PHP script file.
yii\rbac\Role For more details and usage information on Role, see the guide article on security authorization.
yii\rbac\Rule Rule represents a business constraint that may be associated with a role, permission or assignment.
yii\rest\Action Action is the base class for action classes that implement RESTful API.
yii\rest\ActiveController ActiveController implements a common set of actions for supporting RESTful access to ActiveRecord.
yii\rest\Controller Controller is the base class for RESTful API controller classes.
yii\rest\CreateAction CreateAction implements the API endpoint for creating a new model from the given data.
yii\rest\DeleteAction DeleteAction implements the API endpoint for deleting a model.
yii\rest\IndexAction IndexAction implements the API endpoint for listing multiple models.
yii\rest\OptionsAction OptionsAction responds to the OPTIONS request by sending back an Allow header.
yii\rest\Serializer Serializer converts resource objects and collections into array representation.
yii\rest\UpdateAction UpdateAction implements the API endpoint for updating a model.
yii\rest\UrlRule UrlRule is provided to simplify the creation of URL rules for RESTful API support.
yii\rest\ViewAction ViewAction implements the API endpoint for returning the detailed information about a model.
yii\test\ActiveFixture ActiveFixture represents a fixture backed up by a ActiveRecord class or a database table.
yii\test\ArrayFixture ArrayFixture represents arbitrary fixture that can be loaded from PHP files.
yii\test\BaseActiveFixture BaseActiveFixture is the base class for fixture classes that support accessing fixture data as ActiveRecord objects.
yii\test\DbFixture DbFixture is the base class for DB-related fixtures.
yii\test\FileFixtureTrait FileFixtureTrait provides functionalities for loading data fixture from file.
yii\test\Fixture Fixture represents a fixed state of a test environment.
yii\test\FixtureTrait FixtureTrait provides functionalities for loading, unloading and accessing fixtures for a test case.
yii\test\InitDbFixture InitDbFixture represents the initial state needed for DB-related tests.
yii\validators\BooleanValidator BooleanValidator 检查属性值是否为布尔值.
yii\validators\CompareValidator CompareValidator 将指定的属性值与另一个值进行比较.
yii\validators\DateValidator DateValidator 验证属性是否以适当的 格式 表示日期, 时间或日期时间.
yii\validators\DefaultValueValidator DefaultValueValidator 将属性设置为指定的默认值.
yii\validators\EachValidator EachValidator 通过根据嵌入式验证规则检查每个元素来验证数组.
yii\validators\EmailValidator EmailValidator 验证属性值是否是一个有效的电子邮件地址.
yii\validators\ExistValidator ExistValidator 验证表中是否存在属性值.
yii\validators\FileValidator FileValidator 验证属性是否正在接收有效的上传文件.
yii\validators\FilterValidator FilterValidator 根据过滤器转换属性值.
yii\validators\ImageValidator ImageValidator 验证属性是否正在接收有效的图像.
yii\validators\InlineValidator InlineValidator 表示一个验证器, 它被定义为要验证的对象中的方法.
yii\validators\IpValidator 该验证器检查属性值是否是有效的 IPv4/IPv6 地址或子网.
yii\validators\NumberValidator NumberValidator 验证属性值是否为数字.
yii\validators\PunycodeAsset 该资源包提供 yii\validators\EmailValidator 客户端验证所需的 JavaScript 文件.
yii\validators\RangeValidator RangeValidator 验证属性值是否在值列表中.
yii\validators\RegularExpressionValidator RegularExpressionValidator 验证属性值是否与指定的 $pattern 匹配.
yii\validators\RequiredValidator RequiredValidator 验证指定的属性没有null值或空值.
yii\validators\SafeValidator SafeValidator 作为一个虚拟验证器, 其主要目的是将属性标记为对于大规模(批量)分配来说是安全的.
yii\validators\StringValidator StringValidator 验证属性值是否具有一定的长度.
yii\validators\UniqueValidator UniqueValidator 验证属性值在指定的数据库表中是唯一的.
yii\validators\UrlValidator UrlValidator 验证属性值是有效的httphttpsURL.
yii\validators\ValidationAsset 该资源包提供了用于客户端验证的 JavaScript 文件.
yii\validators\Validator Validator 是所有验证器的基类.
yii\web\Application Application is the base class for all web application classes.
yii\web\AssetBundle AssetBundle represents a collection of asset files, such as CSS, JS, images.
yii\web\AssetConverter AssetConverter supports conversion of several popular script formats into JS or CSS scripts.
yii\web\AssetConverterInterface The AssetConverterInterface must be implemented by asset converter classes.
yii\web\AssetManager AssetManager manages asset bundle configuration and loading.
yii\web\BadRequestHttpException BadRequestHttpException 表示状态码为400的 HTTP "Bad Request"(服务器未能理解请求)异常.
yii\web\CacheSession CacheSession implements a session component using cache as storage medium.
yii\web\CompositeUrlRule CompositeUrlRule is the base class for URL rule classes that consist of multiple simpler rules.
yii\web\ConflictHttpException ConflictHttpException 表示状态码为409的 HTTP "Conflict"(由于冲突,请求无法被完成)异常.
yii\web\Controller Controller is the base class of web controllers.
yii\web\Cookie Cookie represents information related with a cookie, such as $name, $value, $domain, etc.
yii\web\CookieCollection CookieCollection maintains the cookies available in the current request.
yii\web\DbSession DbSession extends yii\web\Session by using database as session data storage.
yii\web\ErrorAction ErrorAction displays application errors using a specified view.
yii\web\ErrorHandler ErrorHandler handles uncaught PHP errors and exceptions.
yii\web\ForbiddenHttpException ForbiddenHttpException 表示状态码为403的 HTTP "Forbidden"(对被请求页面的访问被禁止)异常.
yii\web\GoneHttpException GoneHttpException 表示状态码为410的 HTTP "Gone"(被请求的页面不可用)异常.
yii\web\GroupUrlRule GroupUrlRule represents a collection of URL rules sharing the same prefix in their patterns and routes.
yii\web\HeaderCollection HeaderCollection is used by yii\web\Response to maintain the currently registered HTTP headers.
yii\web\HeadersAlreadySentException HeadersAlreadySentException 表示由于发送 Web 响应之前已经发送的任何头部导致的异常.
yii\web\HtmlResponseFormatter HtmlResponseFormatter formats the given data into an HTML response content.
yii\web\HttpException HttpException 表示由最终用户的不正确请求导致的异常.
yii\web\IdentityInterface IdentityInterface is the interface that should be implemented by a class providing identity information.
yii\web\JqueryAsset This asset bundle provides the jQuery JavaScript library.
yii\web\JsExpression JsExpression marks a string as a JavaScript expression.
yii\web\JsonParser Parses a raw HTTP request using yii\helpers\Json::decode().
yii\web\JsonResponseFormatter JsonResponseFormatter formats the given data into a JSON or JSONP response content.
yii\web\Link Link represents a link object as defined in JSON Hypermedia API Language.
yii\web\Linkable Linkable is the interface that should be implemented by classes that typically represent locatable resources.
yii\web\MethodNotAllowedHttpException MethodNotAllowedHttpException 表示状态码为405的 HTTP "Method Not Allowed"(请求中指定的方法不被允许)异常.
yii\web\MultiFieldSession MultiFieldSession is the base class for session storage implementations with multi-field data storage support.
yii\web\MultipartFormDataParser MultipartFormDataParser parses content encoded as 'multipart/form-data'.
yii\web\NotAcceptableHttpException NotAcceptableHttpException 表示状态码为406的 HTTP "Not Acceptable"(服务器生成的响应无法被客户端所接受)异常.
yii\web\NotFoundHttpException NotFoundHttpException 表示状态码为404的 HTTP "Not Found"(服务器无法找到被请求的页面)异常.
yii\web\RangeNotSatisfiableHttpException RangeNotSatisfiableHttpException 表示状态码为416的 HTTP "Range Not Satisfiable"(服务器不能满足客户在请求中指定的 Range 头)异常.
yii\web\Request The web Request class represents an HTTP request.
yii\web\RequestParserInterface Interface for classes that parse the raw request body into a parameters array.
yii\web\Response The web Response class represents an HTTP response.
yii\web\ResponseFormatterInterface ResponseFormatterInterface specifies the interface needed to format a response before it is sent out.
yii\web\ServerErrorHttpException ServerErrorHttpException 表示状态码为500的 HTTP "Internal Server Error"(服务器内部错误,无法完成请求)异常.
yii\web\Session Session provides session data management and the related configurations.
yii\web\SessionIterator SessionIterator implements an iterator for traversing session variables managed by yii\web\Session.
yii\web\TooManyRequestsHttpException TooManyRequestsHttpException 表示状态码为429的 HTTP "Too Many Requests"(太多请求)异常.
yii\web\UnauthorizedHttpException UnauthorizedHttpException 表示状态码为401的 HTTP "Unauthorized"(被请求的页面需要用户名和密码)异常.
yii\web\UnprocessableEntityHttpException UnprocessableEntityHttpException 表示状态码为422的 HTTP "Unprocessable Entity"(请求格式正确,但是由于含有语义错误,无法响应)异常.
yii\web\UnsupportedMediaTypeHttpException UnsupportedMediaTypeHttpException 表示状态码为415的 HTTP "Unsupported Media Type"(由于媒介类型不被支持,服务器不会接受请求)异常.
yii\web\UploadedFile UploadedFile represents the information for an uploaded file.
yii\web\UrlManager UrlManager handles HTTP request parsing and creation of URLs based on a set of rules.
yii\web\UrlNormalizer UrlNormalizer normalizes URLs for yii\web\UrlManager and yii\web\UrlRule.
yii\web\UrlNormalizerRedirectException UrlNormalizerRedirectException 表示在 URL 规范化过程中执行的重定向信息.
yii\web\UrlRule UrlRule represents a rule used by yii\web\UrlManager for parsing and generating URLs.
yii\web\UrlRuleInterface UrlRuleInterface is the interface that should be implemented by URL rule classes.
yii\web\User User is the class for the user application component that manages the user authentication status.
yii\web\UserEvent This event class is used for Events triggered by the yii\web\User class.
yii\web\View View represents a view object in the MVC pattern.
yii\web\ViewAction ViewAction represents an action that displays a view according to a user-specified parameter.
yii\web\XmlResponseFormatter XmlResponseFormatter formats the given data into an XML response content.
yii\web\YiiAsset This asset bundle provides the base JavaScript files for the Yii Framework.
yii\widgets\ActiveField ActiveField represents a form input field within an yii\widgets\ActiveForm.
yii\widgets\ActiveForm ActiveForm is a widget that builds an interactive HTML form for one or multiple data models.
yii\widgets\ActiveFormAsset The asset bundle for the yii\widgets\ActiveForm widget.
yii\widgets\BaseListView BaseListView is a base class for widgets displaying data from data provider such as ListView and GridView.
yii\widgets\Block Block records all output between begin() and end() calls and stores it in yii\base\View::$blocks.
yii\widgets\Breadcrumbs Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.
yii\widgets\ContentDecorator ContentDecorator records all output between begin() and end() calls, passes it to the given view file as $content and then echoes rendering result.
yii\widgets\DetailView DetailView displays the detail of a single data $model.
yii\widgets\FragmentCache FragmentCache is used by yii\base\View to provide caching of page fragments.
yii\widgets\InputWidget InputWidget is the base class for widgets that collect user inputs.
yii\widgets\LinkPager LinkPager displays a list of hyperlinks that lead to different pages of target.
yii\widgets\LinkSorter LinkSorter renders a list of sort links for the given sort definition.
yii\widgets\ListView The ListView widget is used to display data from data provider. Each data model is rendered using the view specified.
yii\widgets\MaskedInput MaskedInput generates a masked text input.
yii\widgets\MaskedInputAsset The asset bundle for the yii\widgets\MaskedInput widget.
yii\widgets\Menu Menu displays a multi-level menu using nested HTML lists.
yii\widgets\Pjax Pjax is a widget integrating the pjax jQuery plugin.
yii\widgets\PjaxAsset This asset bundle provides the javascript files required by yii\widgets\Pjax widget.
yii\widgets\Spaceless Spaceless widget removes whitespace characters between HTML tags. Whitespaces within HTML tags or in a plain text are always left untouched.