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 是所有控制器动作类的基类.
yii\base\ActionEvent ActionEvent 表示用于动作事件的事件参数.
yii\base\ActionFilter ActionFilter 是动作过滤器的基类.
yii\base\Application Application 是所有应用程序类的基类.
yii\base\ArrayAccessTrait ArrayAccessTrait 为 IteratorAggregate, ArrayAccessCountable 提供了实现.
yii\base\Arrayable Arrayable 是应该由需要支持其实例的可自定义表示的类实现的接口.
yii\base\ArrayableTrait ArrayableTrait 提供 yii\base\Arrayable 接口的通用实现.
yii\base\BaseObject BaseObject 是实现 属性(property) 特性的基类.
yii\base\Behavior Behavior 是所有行为类的基类.
yii\base\BootstrapInterface BootstrapInterface 是应该由想要参与应用程序(application)引导过程的类实现的接口.
yii\base\Component Component 是实现 属性(property), 事件(event)行为(behavior) 特性的基类.
yii\base\Configurable Configurable 是应该由支持通过构造函数的最后一个参数来配置其属性的类来实现的接口.
yii\base\Controller Controller 是包含控制器逻辑的类的基类.
yii\base\DynamicContentAwareInterface DynamicContentAwareInterface 表示应该由支持 yii\base\View 动态内容功能的类实现的接口.
yii\base\DynamicContentAwareTrait DynamicContentAwareTrait 实现了支持 yii\base\View 动态内容功能的类的常用方法.
yii\base\DynamicModel DynamicModel 是主要用于支持临时数据验证的模型类.
yii\base\ErrorException ErrorException 表示 PHP 错误.
yii\base\ErrorHandler ErrorHandler 处理未捕获的 PHP 错误和异常.
yii\base\Event Event 是所有事件类的基类.
yii\base\Exception Exception 表示所有用途的通用异常.
yii\base\ExitException ExitException 表示应用程序的正常终止.
yii\base\InlineAction InlineAction 表示一个被定义为控制器方法的动作.
yii\base\InvalidArgumentException InvalidArgumentException 表示由传递给方法的无效参数引起的异常.
yii\base\InvalidCallException InvalidCallException 表示由于以错误的方式调用方法而引起的异常.
yii\base\InvalidConfigException InvalidConfigException 表示由不正确的对象配置引起的异常.
yii\base\InvalidParamException InvalidParamException 表示由传递给方法的无效参数引起的异常.
yii\base\InvalidRouteException InvalidRouteException 表示由无效路由引起的异常.
yii\base\InvalidValueException InvalidValueException 表示由返回意外类型值的函数引起的异常.
yii\base\Model Model 是数据模型的基类.
yii\base\ModelEvent ModelEvent 表示 yii\base\Model 事件所需的参数.
yii\base\Module Module 是模块和应用程序类的基类.
yii\base\NotSupportedException NotSupportedException 表示由于访问不支持的功能而导致的异常.
yii\base\Object Object 是实现 属性(property) 特性的基类.
yii\base\Request Request 表示由 yii\base\Application 处理的请求.
yii\base\Response Response 表示应用(yii\base\Application)对请求(yii\base\Request)的响应.
yii\base\Security Security 提供了一组处理常见安全相关任务的方法.
yii\base\StaticInstanceInterface StaticInstanceInterface 是为类提供静态实例的接口, 可用于获取不能用静态方法表示的类元信息(meta).
yii\base\StaticInstanceTrait StaticInstanceTrait 提供了满足 yii\base\StaticInstanceInterface 接口的方法.
yii\base\Theme Theme 代表应用程序主题.
yii\base\UnknownClassException UnknownClassException 表示使用未知类引起的异常.
yii\base\UnknownMethodException UnknownMethodException 表示由于访问未知对象方法而引起的异常.
yii\base\UnknownPropertyException UnknownPropertyException 表示由访问未知对象属性引起的异常.
yii\base\UserException UserException 是意图向最终用户显示的异常的基类.
yii\base\View View 表示 MVC 模式中的视图对象.
yii\base\ViewContextInterface ViewContextInterface 是应该由想要支持相对视图名称的类实现的接口.
yii\base\ViewEvent ViewEvent 表示由 yii\base\View 组件触发的事件.
yii\base\ViewNotFoundException ViewNotFoundException 表示未找到视图文件引起的异常.
yii\base\ViewRenderer ViewRenderer 是视图渲染器类的基类.
yii\base\Widget Widget 是小部件的基类.
yii\base\WidgetEvent WidgetEvent 表示用于小部件事件的事件参数.
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\SluggableBehavior SluggableBehavior 自动填充指定的属性, 其值可以在 URL 中使用.
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 表示一个控制台应用.
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 允许以适合 yii\db\QueryInterface::where() 的格式编写过滤条件.
yii\data\ActiveDataProvider ActiveDataProvider 基于 yii\db\Queryyii\db\ActiveQuery 实现数据提供者.
yii\data\ArrayDataProvider ArrayDataProvider 基于数据数组实现数据提供者.
yii\data\BaseDataProvider BaseDataProvider 提供了一个实现 yii\data\DataProviderInterface 的基类.
yii\data\DataFilter DataFilter 是一个特殊的 yii\base\Model 用于处理查询过滤规范.
yii\data\DataProviderInterface DataProviderInterface 是必须由数据提供者类实现的接口.
yii\data\Pagination Pagination 代表与数据项分页相关的信息.
yii\data\Sort Sort 表示与排序有关的信息.
yii\data\SqlDataProvider SqlDataProvider 基于普通的 SQL 语句实现数据提供者.
yii\db\ActiveQuery ActiveQuery 代表与 Active Record 类关联的数据库查询.
yii\db\ActiveQueryInterface ActiveQueryInterface 定义了由活动记录查询类实现的公共接口.
yii\db\ActiveQueryTrait ActiveQueryTrait 实现活动记录查询类的常用方法和属性.
yii\db\ActiveRecord ActiveRecord 是用对象表示关系数据的类的基类.
yii\db\ActiveRecordInterface ActiveRecordInterface(ActiveRecord 接口)
yii\db\ActiveRelationTrait ActiveRelationTrait 实现活动记录关系查询的通用方法和属性.
yii\db\AfterSaveEvent AfterSaveEvent 表示 yii\db\ActiveRecord::EVENT_AFTER_INSERTyii\db\ActiveRecord::EVENT_AFTER_UPDATE 中可用的信息.
yii\db\ArrayExpression ArrayExpression 类表示一个数组 SQL 表达式.
yii\db\BaseActiveRecord ActiveRecord 是表示关系数据对象的类的基类.
yii\db\BatchQueryResult BatchQueryResult 表示批量查询, 你可以从中批量检索数据.
yii\db\CheckConstraint CheckConstraint 表示数据表CHECK约束的元数据.
yii\db\ColumnSchema ColumnSchema 类描述数据库表中列的元数据.
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 表示通过 PDO 与数据库的连接.
yii\db\Constraint Constraint 表示数据表约束的元数据.
yii\db\ConstraintFinderInterface ConstraintFinderInterface 定义获取表约束信息的方法.
yii\db\ConstraintFinderTrait ConstraintFinderTrait 提供获取表约束信息的方法.
yii\db\DataReader DataReader 表示来自查询结果集的只向前行的流.
yii\db\DefaultValueConstraint DefaultValueConstraint 表示数据表表DEFAULT约束的元数据.
yii\db\Exception Exception 表示由某些与数据库相关的操作引起的异常.
yii\db\Expression Expression 表示不需要转义或引用的 DB 表达式.
yii\db\ExpressionBuilder ExpressionBuilder 类构建 \yii\db\yii\db\Expression 类的对象.
yii\db\ExpressionBuilderInterface 接口 ExpressionBuilderInterface 设计用于从实现 yii\db\ExpressionInterface 的特定表达式对象构建原始 SQL.
yii\db\ExpressionBuilderTrait ExpressionBuilderTrait 特性为应该实现 yii\db\ExpressionBuilderInterface 的类提供公共构造函数.
yii\db\ExpressionInterface 接口 ExpressionInterface 应该用于标记类, 应该以特殊方式构建类.
yii\db\ForeignKeyConstraint ForeignKeyConstraint 表示数据表FOREIGN KEY约束的元数据.
yii\db\IndexConstraint IndexConstraint 表示数据表INDEX约束的元数据.
yii\db\IntegrityException Exception 表示由于违反数据库约束而引起的异常.
yii\db\JsonExpression JsonExpression 类表示应该编码为 JSON 的数据.
yii\db\Migration Migration(迁移) 是表示数据库迁移的基类.
yii\db\MigrationInterface MigrationInterface 定义了要通过数据库迁移实施的最小一组方法.
yii\db\PdoValue PdoValue 类表示应该绑定到具有精确 $type 的 PDO 的 $value.
yii\db\PdoValueBuilder PdoValueBuilder 类构建 yii\db\PdoValue 表达式类的对象.
yii\db\Query Query 以独立于 DBMS 的方式表示 SELECT SQL 语句.
yii\db\QueryBuilder QueryBuilder builds a SELECT SQL statement based on the specification given as a yii\db\Query object.
yii\db\QueryExpressionBuilder QueryExpressionBuilder 类在内部用于使用统一的 yii\db\QueryBuilder 表达式构建接口来构建 yii\db\Query 对象.
yii\db\QueryInterface QueryInterface 定义了由数据库查询实现的最小的一组方法.
yii\db\QueryTrait BaseQuery trait 表示数据库 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 表示由 yii\db\SqlTokenizer 或其子类生成的 SQL 令牌(token).
yii\db\SqlTokenizer SqlTokenizer splits an SQL query into individual SQL tokens.
yii\db\StaleObjectException
yii\db\TableSchema TableSchema 表示数据库表的元数据.
yii\db\Transaction Transaction 表示一个数据库事务.
yii\db\ViewFinderTrait ViewFinderTrait 实现 getViewNames 方法来查找数据库中的视图.
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 {@inheritdoc}
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 {@inheritdoc}
yii\db\mssql\conditions\LikeConditionBuilder {@inheritdoc}
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 {@inheritdoc}
yii\db\oci\conditions\LikeConditionBuilder {@inheritdoc}
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 {@inheritdoc}
yii\db\sqlite\conditions\LikeConditionBuilder {@inheritdoc}
yii\di\Container 容器(Container)实现 依赖注入 容器.
yii\di\Instance 实例(Instance)表示对依赖注入(DI)容器或服务定位器中的命名对象的引用.
yii\di\NotInstantiableException NotInstantiableException 表示由不正确的依赖注入容器配置或使用引起的异常.
yii\di\ServiceLocator ServiceLocator 实现了一个 服务定位器.
yii\filters\AccessControl AccessControl 提供基组规则(rules)的简单的访问控制.
yii\filters\AccessRule 该类表示由 yii\filters\AccessControl 动作筛选器定义的访问规则.
yii\filters\AjaxFilter AjaxFilter 允许仅限于 Ajax 请求的访问.
yii\filters\ContentNegotiator ContentNegotiator 支持响应内容格式处理和应用程序语言处理.
yii\filters\Cors Cors 过滤器实现 跨源资源共享.
yii\filters\HostControl HostControl 提供对请求主机名的简单控制.
yii\filters\HttpCache HttpCache 利用Last-ModifiedETag HTTP 头实现客户端缓存.
yii\filters\PageCache PageCache 实现服务器端整个页面的缓存.
yii\filters\RateLimitInterface RateLimitInterface 是可以由身份对象实施以强制限速的接口.
yii\filters\RateLimiter RateLimiter 实现基于 漏桶算法 的速率限制算法.
yii\filters\VerbFilter VerbFilter 是一个按 HTTP 请求方法进行过滤的动作过滤器.
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 是 yii\grid\GridView 小部件的列, 显示用于查看和操作项目的按钮.
yii\grid\CheckboxColumn CheckboxColumn 在网格视图中显示一列复选框.
yii\grid\Column Column 是所有 yii\grid\GridView 列类的基类.
yii\grid\DataColumn DataColumn 是 yii\grid\GridView 小部件的默认列类型.
yii\grid\GridView GridView 小部件用于在网格中显示数据.
yii\grid\GridViewAsset 该资源包提供 yii\grid\GridView 小部件所需的 JavaScript 文件.
yii\grid\RadioButtonColumn RadioButtonColumn 在网格视图中显示一列单选按钮.
yii\grid\SerialColumn SerialColumn 显示一列行号(从1开始).
yii\helpers\ArrayHelper ArrayHelper 提供了额外的数组功能, 可以在你的应用程序中使用.
yii\helpers\BaseArrayHelper BaseArrayHelper 为 yii\helpers\ArrayHelper 提供了具体的实现.
yii\helpers\BaseConsole BaseConsole provides concrete implementation for 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 provides concrete implementation for yii\helpers\Inflector.
yii\helpers\BaseIpHelper BaseIpHelper 为 yii\helpers\IpHelper 提供了具体的实现.
yii\helpers\BaseJson BaseJson 为 yii\helpers\Json 提供了具体的实现.
yii\helpers\BaseMarkdown BaseMarkdown provides concrete implementation for 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 Console helper provides useful methods for command line related tasks such as getting input or formatting and coloring output.
yii\helpers\FileHelper 文件系统助手类.
yii\helpers\FormatConverter FormatConverter 提供了在不同模式之间转换时间格式的功能.
yii\helpers\Html Html 提供了一组用于生成常用 HTML 标签的静态方法.
yii\helpers\HtmlPurifier HtmlPurifier 提供了从任何有害代码中清除 HTML 的能力.
yii\helpers\Inflector Inflector pluralizes and singularizes English nouns. It also contains some other useful methods.
yii\helpers\IpHelper IpHelper 类提供了一组与 IP 相关的静态方法.
yii\helpers\Json Json 是一个提供 JSON 数据编码和解码的助手类.
yii\helpers\Markdown Markdown provides an ability to transform markdown into HTML.
yii\helpers\ReplaceArrayValue 表示在执行 yii\helpers\ArrayHelper::merge() 时替换数组值的对象.
yii\helpers\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\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 是所有 Web 应用程序类的基类.
yii\web\AssetBundle AssetBundle 表示资源文件的集合, 如样式(CSS), 脚本(JS), 图像(images).
yii\web\AssetConverter AssetConverter 支持将几种流行的脚本格式转换为 JS 或 CSS 脚本.
yii\web\AssetConverterInterface AssetConverterInterface 必须由资源转换器类实现.
yii\web\AssetManager AssetManager 管理资源包的配置和加载.
yii\web\BadRequestHttpException BadRequestHttpException 表示状态码为400的 HTTP "Bad Request"(服务器未能理解请求)异常.
yii\web\CacheSession CacheSession 使用缓存作为存储介质来实现会话(session)组件.
yii\web\CompositeUrlRule CompositeUrlRule 是由多个更简单的规则组成的 URL 规则类的基类.
yii\web\ConflictHttpException ConflictHttpException 表示状态码为409的 HTTP "Conflict"(由于冲突,请求无法被完成)异常.
yii\web\Controller Controller 是 Web 控制器的基类.
yii\web\Cookie Cookie 表示与 cookie 相关的信息, 如 $name, $value, $domain 等.
yii\web\CookieCollection CookieCollection 维护当前请求中可用的 Cookie.
yii\web\DbSession DbSession 通过使用数据库作为会话(session)数据存储来扩展 yii\web\Session.
yii\web\ErrorAction ErrorAction 使用指定的视图显示应用程序错误.
yii\web\ErrorHandler ErrorHandler 处理未捕获的 PHP 错误和异常.
yii\web\ForbiddenHttpException ForbiddenHttpException 表示状态码为403的 HTTP "Forbidden"(对被请求页面的访问被禁止)异常.
yii\web\GoneHttpException GoneHttpException 表示状态码为410的 HTTP "Gone"(被请求的页面不可用)异常.
yii\web\GroupUrlRule GroupUrlRule 表示在模式和路由中共享相同前缀的 URL 规则的集合.
yii\web\HeaderCollection HeaderCollection 由 yii\web\Response 用来维护当前注册的 HTTP 头.
yii\web\HeadersAlreadySentException HeadersAlreadySentException 表示由发送 Web 响应之前已经发送的任何头部引起的异常.
yii\web\HtmlResponseFormatter HtmlResponseFormatter 将给定的数据格式化为 HTML 响应内容.
yii\web\HttpException HttpException 表示由最终用户的不正确请求导致的异常.
yii\web\IdentityInterface IdentityInterface 是应该由提供身份信息的类实现的接口.
yii\web\JqueryAsset 该资源包提供了 jQuery JavaScript 库.
yii\web\JsExpression JsExpression 将一个字符串标记为 JavaScript 表达式.
yii\web\JsonParser 使用 yii\helpers\Json::decode() 解析原始 HTTP 请求.
yii\web\JsonResponseFormatter JsonResponseFormatter 将给定的数据格式化为 JSON 或 JSONP 响应内容.
yii\web\Link Link 代表 JSON Hypermedia API Language 中定义的链接对象.
yii\web\Linkable Linkable 是应该由通常表示可定位资源的类实现的接口.
yii\web\MethodNotAllowedHttpException MethodNotAllowedHttpException 表示状态码为405的 HTTP "Method Not Allowed"(请求中指定的方法不被允许)异常.
yii\web\MultiFieldSession MultiFieldSession 是具有多字段数据存储支持的会话(session)存储实现的基类.
yii\web\MultipartFormDataParser MultipartFormDataParser 分析编码为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 Web Request 类表示一个 HTTP 请求.
yii\web\RequestParserInterface RequestParserInterface 是将原始请求主体解析为参数数组的类的接口.
yii\web\Response Web Response 类表示一个HTTP响应.
yii\web\ResponseFormatterInterface ResponseFormatterInterface 指定在发送响应之前格式化响应所需的接口.
yii\web\ServerErrorHttpException ServerErrorHttpException 表示状态码为500的 HTTP "Internal Server Error"(服务器内部错误,无法完成请求)异常.
yii\web\Session Session 提供会话(session)数据管理和相关配置.
yii\web\SessionIterator SessionIterator 实现了一个遍历由 yii\web\Session 管理的会话(session)变量的 迭代器.
yii\web\TooManyRequestsHttpException TooManyRequestsHttpException 表示状态码为429的 HTTP "Too Many Requests"(太多请求)异常.
yii\web\UnauthorizedHttpException UnauthorizedHttpException 表示状态码为401的 HTTP "Unauthorized"(被请求的页面需要用户名和密码)异常.
yii\web\UnprocessableEntityHttpException UnprocessableEntityHttpException 表示状态码为422的 HTTP "Unprocessable"(请求格式正确,但是由于含有语义错误,无法响应)异常.
yii\web\UnsupportedMediaTypeHttpException UnsupportedMediaTypeHttpException 表示状态码为415的 HTTP "Unsupported Media Type"(由于媒介类型不被支持,服务器不会接受请求)异常.
yii\web\UploadedFile UploadedFile 表示上传文件的信息.
yii\web\UrlManager UrlManager 根据一组规则处理 HTTP 请求解析和 URL 的创建.
yii\web\UrlNormalizer UrlNormalizer 规范 yii\web\UrlManageryii\web\UrlRule 的 URL.
yii\web\UrlNormalizerRedirectException UrlNormalizerRedirectException 表示在 URL 规范化过程中执行的重定向信息.
yii\web\UrlRule UrlRule 表示 yii\web\UrlManager 用于解析和生成 URL 的规则.
yii\web\UrlRuleInterface UrlRuleInterface 是应该由 URL 规则类实现的接口.
yii\web\User User 是管理用户身份验证状态的user应用程序组件的类.
yii\web\UserEvent 此事件类用于由 yii\web\User 类触发的事件.
yii\web\View View 表示 MVC 模式中的视图对象.
yii\web\ViewAction ViewAction 表示根据用户指定的参数显示视图的操作.
yii\web\XmlResponseFormatter XmlResponseFormatter 将给定的数据格式化为 XML 响应内容.
yii\web\YiiAsset 该资源包提供了 Yii 框架的基础脚本(JavaScript)文件.
yii\widgets\ActiveField ActiveField 表示 yii\widgets\ActiveForm 中的表单输入字段.
yii\widgets\ActiveForm ActiveForm 是为一个或多个数据模型构建交互式 HTML 表单的小部件.
yii\widgets\ActiveFormAsset 该资源包提供 yii\widgets\ActiveForm 小部件所需的 JS 文件.
yii\widgets\BaseListView BaseListView 是数据提供者显示数据的小部件(如 ListView 和 GridView )的基类.
yii\widgets\Block Block 记录 begin()end() 之间的所有输出, 并将其存储在 yii\base\View::$blocks 中供以后使用.
yii\widgets\Breadcrumbs Breadcrumbs(面包屑)显示链接列表, 指示当前页面在整个站点层次结构中的位置.
yii\widgets\ContentDecorator ContentDecorator 记录 begin()end() 之间的所有输出, 并将其作为$content传递给给定的视图文件, 然后回显渲染结果.
yii\widgets\DetailView DetailView 显示单个数据 模型 的细节.
yii\widgets\FragmentCache FragmentCache 被 yii\base\View 用来提供页面片段的缓存.
yii\widgets\InputWidget InputWidget 是收集用户输入的小部件的基类.
yii\widgets\LinkPager LinkPager 显示导航到不同页面目标的超链接列表.
yii\widgets\LinkSorter LinkSorter 渲染给定排序定义的排序链接列表.
yii\widgets\ListView ListView 小部件用于显示来自数据提供者的数据. 每个数据模型都使用指定的视图渲染.
yii\widgets\MaskedInput MaskedInput 生成一个掩码文本输入.
yii\widgets\MaskedInputAsset 该资源包提供 yii\widgets\MaskedInput 小部件所需的 JS 文件.
yii\widgets\Menu Menu 使用嵌套的 HTML 列表显示多级菜单.
yii\widgets\Pjax Pjax 是一个集成了 pjax jQuery 插件的小部件.
yii\widgets\PjaxAsset 该资源包提供 yii\widgets\Pjax 小部件所需的 JS 文件.
yii\widgets\Spaceless Spaceless 小部件删除 HTML 标签之间的空格字符. HTML 标签或纯文本中的空白区域始终保持不变.