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.
Class Reference
| Class | Description |
|---|---|
| Yii | Yii is a helper class serving common framework functionalities. |
| YiiRequirementChecker | YiiRequirementChecker allows checking, if current system meets the requirements for running the Yii application. |
| yii\ |
BaseYii is the core helper class for the Yii framework. |
| yii\ |
Action is the base class for all controller action classes. |
| yii\ |
ActionEvent represents the event parameter used for an action event. |
| yii\ |
ActionFilter is the base class for action filters. |
| yii\ |
Application is the base class for all application classes. |
| yii\ |
ArrayAccessTrait provides the implementation for IteratorAggregate, ArrayAccess and Countable. |
| yii\ |
Arrayable is the interface that should be implemented by classes who want to support customizable representation of their instances. |
| yii\ |
ArrayableTrait provides a common implementation of the yii\ |
| yii\ |
BaseObject is the base class that implements the property feature. |
| yii\ |
Behavior is the base class for all behavior classes. |
| yii\ |
BootstrapInterface is the interface that should be implemented by classes who want to participate in the application bootstrap process. |
| yii\ |
Component is the base class that implements the property, event and behavior features. |
| yii\ |
Configurable is the interface that should be implemented by classes who support configuring its properties through the last parameter to its constructor. |
| yii\ |
Controller is the base class for classes containing controller logic. |
| yii\ |
DynamicContentAwareInterface is the interface that should be implemented by classes
which support a yii\ |
| yii\ |
DynamicContentAwareTrait implements common methods for classes
which support a yii\ |
| yii\ |
DynamicModel is a model class that supports defining attributes at run-time (the so-called "dynamic attributes") using its constructor or defineAttribute(). DynamicModel can be used to support ad hoc data validation. |
| yii\ |
ErrorException represents a PHP error. |
| yii\ |
ErrorHandler handles uncaught PHP errors and exceptions. |
| yii\ |
Event is the base class for all event classes. |
| yii\ |
Exception represents a generic exception for all purposes. |
| yii\ |
ExitException represents a normal termination of an application. |
| yii\ |
InlineAction represents an action that is defined as a controller method. |
| yii\ |
InvalidArgumentException represents an exception caused by invalid arguments passed to a method. |
| yii\ |
InvalidCallException represents an exception caused by calling a method in a wrong way. |
| yii\ |
InvalidConfigException represents an exception caused by incorrect object configuration. |
| yii\ |
InvalidParamException represents an exception caused by invalid parameters passed to a method. |
| yii\ |
InvalidRouteException represents an exception caused by an invalid route. |
| yii\ |
InvalidValueException represents an exception caused by a function returning a value of unexpected type. |
| yii\ |
Model is the base class for data models. |
| yii\ |
ModelEvent represents the parameter needed by yii\ |
| yii\ |
Module is the base class for module and application classes. |
| yii\ |
NotSupportedException represents an exception caused by accessing features that are not supported. |
| yii\ |
Request represents a request that is handled by an yii\ |
| yii\ |
Response represents the response of an yii\ |
| yii\ |
Security provides a set of methods to handle common security-related tasks. |
| yii\ |
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\ |
StaticInstanceTrait provides methods to satisfy yii\ |
| yii\ |
Theme represents an application theme. |
| yii\ |
UnknownClassException represents an exception caused by using an unknown class. |
| yii\ |
UnknownMethodException represents an exception caused by accessing an unknown object method. |
| yii\ |
UnknownPropertyException represents an exception caused by accessing unknown object properties. |
| yii\ |
UserException is the base class for exceptions that are meant to be shown to end users. |
| yii\ |
View represents a view object in the MVC pattern. |
| yii\ |
ViewContextInterface is the interface that should implemented by classes who want to support relative view names. |
| yii\ |
ViewEvent represents events triggered by the yii\ |
| yii\ |
ViewNotFoundException represents an exception caused by view file not found. |
| yii\ |
ViewRenderer is the base class for view renderer classes. |
| yii\ |
Widget is the base class for widgets. |
| yii\ |
WidgetEvent represents the event parameter used for a widget event. |
| yii\ |
AttributeBehavior automatically assigns a specified value to one or multiple attributes of an ActiveRecord object when certain events happen. |
| yii\ |
AttributeTypecastBehavior provides an ability of automatic model attribute typecasting. |
| yii\ |
AttributesBehavior automatically assigns values specified to one or multiple attributes of an ActiveRecord object when certain events happen. |
| yii\ |
BlameableBehavior automatically fills the specified attributes with the current user ID. |
| yii\ |
Cacheable widget behavior automatically caches widget contents according to duration and dependencies specified. |
| yii\ |
OptimisticLockBehavior automatically upgrades a model's lock version using the column name returned by optimisticLock(). |
| yii\ |
SluggableBehavior automatically fills the specified attribute with a value that can be used a slug in a URL. |
| yii\ |
TimestampBehavior automatically fills the specified attributes with the current timestamp. |
| yii\ |
ApcCache provides APC caching in terms of an application component. |
| yii\ |
ArrayCache provides caching for the current request only by storing the values in an array. |
| yii\ |
Cache is the base class for cache classes supporting different cache storage implementations. |
| yii\ |
CacheInterface is the base interface for cache. |
| yii\ |
CallbackDependency represents a dependency based on the result of a callback function. |
| yii\ |
ChainedDependency represents a dependency which is composed of a list of other dependencies. |
| yii\ |
DbCache implements a cache application component by storing cached data in a database. |
| yii\ |
DbDependency represents a dependency based on the query result of a SQL statement. |
| yii\ |
DbQueryDependency represents a dependency based on the query result of an yii\ |
| yii\ |
Dependency is the base class for cache dependency classes. |
| yii\ |
DummyCache is a placeholder cache component. |
| yii\ |
ExpressionDependency represents a dependency based on the result of a PHP expression. |
| yii\ |
FileCache implements a cache component using files. |
| yii\ |
FileDependency represents a dependency based on a file's last modification time. |
| yii\ |
MemCache implements a cache application component based on memcache and memcached. |
| yii\ |
MemCacheServer represents the configuration data for a single memcache or memcached server. |
| yii\ |
TagDependency associates a cached data item with one or multiple $tags. |
| yii\ |
WinCache provides Windows Cache caching in terms of an application component. |
| yii\ |
Captcha renders a CAPTCHA image and an input field that takes user-entered verification code. |
| yii\ |
CaptchaAction renders a CAPTCHA image. |
| yii\ |
This asset bundle provides the javascript files needed for the yii\ |
| yii\ |
CaptchaValidator validates that the attribute value is the same as the verification code displayed in the CAPTCHA. |
| yii\ |
Application represents a console application. |
| yii\ |
Controller is the base class of console command classes. |
| yii\ |
ErrorHandler handles uncaught PHP errors and exceptions. |
| yii\ |
Exception represents an exception caused by incorrect usage of a console command. |
| yii\ |
This class provides constants for defining console command exit codes. |
| yii\ |
A Markdown parser that enhances markdown for reading in console environments. |
| yii\ |
The console Request represents the environment information for a console application. |
| yii\ |
The console Response represents the result of a console application. |
| yii\ |
UnknownCommandException represents an exception caused by incorrect usage of a console command. |
| yii\ |
Allows you to combine and compress your JavaScript and CSS files. |
| yii\ |
BaseMigrateController is the base class for migrate controllers. |
| yii\ |
Allows you to flush cache. |
| yii\ |
Manages fixture data loading and unloading. |
| yii\ |
Provides help information about console commands. |
| yii\ |
Extracts messages to be translated from source files. |
| yii\ |
Manages application migrations. |
| yii\ |
Runs PHP built-in web server. |
| yii\ |
Table class displays a table in console. |
| yii\ |
ActiveDataFilter allows composing a filtering condition in a format suitable for yii\ |
| yii\ |
ActiveDataProvider implements a data provider based on yii\ |
| yii\ |
ArrayDataProvider implements a data provider based on a data array. |
| yii\ |
BaseDataProvider provides a base class that implements the yii\ |
| yii\ |
DataFilter is a special yii\ |
| yii\ |
DataProviderInterface is the interface that must be implemented by data provider classes. |
| yii\ |
Pagination represents information relevant to pagination of data items. |
| yii\ |
Sort represents information relevant to sorting. |
| yii\ |
SqlDataProvider implements a data provider based on a plain SQL statement. |
| yii\ |
ActiveQuery represents a DB query associated with an Active Record class. |
| yii\ |
ActiveQueryInterface defines the common interface to be implemented by active record query classes. |
| yii\ |
ActiveQueryTrait implements the common methods and properties for active record query classes. |
| yii\ |
ActiveRecord is the base class for classes representing relational data in terms of objects. |
| yii\ |
ActiveRecordInterface. |
| yii\ |
ActiveRelationTrait implements the common methods and properties for active record relational queries. |
| yii\ |
AfterSaveEvent represents the information available in yii\ |
| yii\ |
Class ArrayExpression represents an array SQL expression. |
| yii\ |
ActiveRecord is the base class for classes representing relational data in terms of objects. |
| yii\ |
BatchQueryResult represents a batch query from which you can retrieve data in batches. |
| yii\ |
CheckConstraint represents the metadata of a table CHECK constraint. |
| yii\ |
ColumnSchema class describes the metadata of a column in a database table. |
| yii\ |
ColumnSchemaBuilder helps to define database schema types using a PHP interface. |
| yii\ |
Command represents a SQL statement to be executed against a database. |
| yii\ |
Connection represents a connection to a database via PDO. |
| yii\ |
Constraint represents the metadata of a table constraint. |
| yii\ |
ConstraintFinderInterface defines methods for getting a table constraint information. |
| yii\ |
ConstraintFinderTrait provides methods for getting a table constraint information. |
| yii\ |
DataReader represents a forward-only stream of rows from a query result set. |
| yii\ |
DefaultValueConstraint represents the metadata of a table DEFAULT constraint. |
| yii\ |
Exception represents an exception that is caused by some DB-related operations. |
| yii\ |
Expression represents a DB expression that does not need escaping or quoting. |
| yii\ |
Class ExpressionBuilder builds objects of yii\ |
| yii\ |
Interface ExpressionBuilderInterface is designed to build raw SQL from specific expression
objects that implement yii\ |
| yii\ |
Trait ExpressionBuilderTrait provides common constructor for classes that
should implement yii\ |
| yii\ |
Interface ExpressionInterface should be used to mark classes, that should be built in a special way. |
| yii\ |
ForeignKeyConstraint represents the metadata of a table FOREIGN KEY constraint. |
| yii\ |
IndexConstraint represents the metadata of a table INDEX constraint. |
| yii\ |
Exception represents an exception that is caused by violation of DB constraints. |
| yii\ |
Class JsonExpression represents data that should be encoded to JSON. |
| yii\ |
Migration is the base class for representing a database migration. |
| yii\ |
The MigrationInterface defines the minimum set of methods to be implemented by a database migration. |
| yii\ |
Class PdoValue represents a $value that should be bound to PDO with exact $type. |
| yii\ |
Class PdoValueBuilder builds object of the yii\ |
| yii\ |
Query represents a SELECT SQL statement in a way that is independent of DBMS. |
| yii\ |
QueryBuilder builds a SELECT SQL statement based on the specification given as a yii\ |
| yii\ |
Class QueryExpressionBuilder is used internally to build yii\ |
| yii\ |
The QueryInterface defines the minimum set of methods to be implemented by a database query. |
| yii\ |
The BaseQuery trait represents the minimum method set of a database Query. |
| yii\ |
Schema is the base class for concrete DBMS-specific schema classes. |
| yii\ |
SchemaBuilderTrait contains shortcut methods to create instances of yii\ |
| yii\ |
SqlToken represents SQL tokens produced by yii\ |
| yii\ |
SqlTokenizer splits an SQL query into individual SQL tokens. |
| yii\ |
|
| yii\ |
TableSchema represents the metadata of a database table. |
| yii\ |
Transaction represents a DB transaction. |
| yii\ |
ViewFinderTrait implements the method getViewNames for finding views in a database. |
| yii\ |
Condition that connects two or more SQL expressions with the AND operator. |
| yii\ |
Class BetweenColumnCondition represents a BETWEEN condition where
values is between two columns. For example: |
| yii\ |
Class BetweenColumnsConditionBuilder builds objects of yii\ |
| yii\ |
Class BetweenCondition represents a BETWEEN condition. |
| yii\ |
Class BetweenConditionBuilder builds objects of yii\ |
| yii\ |
Interface ConditionInterface should be implemented by classes that represent a condition in DBAL of framework. |
| yii\ |
Class ConjunctionCondition |
| yii\ |
Class ConjunctionConditionBuilder builds objects of abstract class yii\ |
| yii\ |
Condition that represents EXISTS operator. |
| yii\ |
Class ExistsConditionBuilder builds objects of yii\ |
| yii\ |
Condition based on column-value pairs. |
| yii\ |
Class HashConditionBuilder builds objects of yii\ |
| yii\ |
Class InCondition represents IN condition. |
| yii\ |
Class InConditionBuilder builds objects of yii\ |
| yii\ |
Class LikeCondition represents a LIKE condition. |
| yii\ |
Class LikeConditionBuilder builds objects of yii\ |
| yii\ |
Condition that inverts passed condition. |
| yii\ |
Class NotConditionBuilder builds objects of yii\ |
| yii\ |
Condition that connects two or more SQL expressions with the AND operator. |
| yii\ |
Class SimpleCondition represents a simple condition like "column" operator value. |
| yii\ |
Class NotConditionBuilder builds objects of yii\ |
| yii\ |
ColumnSchemaBuilder is the schema builder for Cubrid databases. |
| yii\ |
QueryBuilder is the query builder for CUBRID databases (version 9.3.x and higher). |
| yii\ |
Schema is the class for retrieving metadata from a CUBRID database (version 9.3.x and higher). |
| yii\ |
Class LikeConditionBuilder builds objects of yii\ |
| yii\ |
Class ColumnSchema for MSSQL database |
| yii\ |
ColumnSchemaBuilder is the schema builder for MSSQL databases. |
| yii\ |
This is an extension of the default PDO class of DBLIB drivers. |
| yii\ |
This is an extension of the default PDO class of MSSQL and DBLIB drivers. |
| yii\ |
QueryBuilder is the query builder for MS SQL Server databases (version 2008 and above). |
| yii\ |
Schema is the class for retrieving metadata from MS SQL Server databases (version 2008 and above). |
| yii\ |
This is an extension of the default PDO class of SQLSRV driver. |
| yii\ |
TableSchema represents the metadata of a database table. |
| yii\ |
Class InConditionBuilder builds objects of yii\ |
| yii\ |
Class LikeConditionBuilder builds objects of yii\ |
| yii\ |
Class ColumnSchema for MySQL database |
| yii\ |
ColumnSchemaBuilder is the schema builder for MySQL databases. |
| yii\ |
Class JsonExpressionBuilder builds yii\ |
| yii\ |
QueryBuilder is the query builder for MySQL databases. |
| yii\ |
Schema is the class for retrieving metadata from a MySQL database (version 4.1.x and 5.x). |
| yii\ |
ColumnSchemaBuilder is the schema builder for Oracle databases. |
| yii\ |
Command represents an Oracle SQL statement to be executed against a database. |
| yii\ |
QueryBuilder is the query builder for Oracle databases. |
| yii\ |
Schema is the class for retrieving metadata from an Oracle database. |
| yii\ |
Class InConditionBuilder builds objects of yii\ |
| yii\ |
Class LikeConditionBuilder builds objects of yii\ |
| yii\ |
Class ArrayExpressionBuilder builds yii\ |
| yii\ |
The class converts PostgreSQL array representation to PHP array |
| yii\ |
Class ColumnSchema for PostgreSQL database. |
| yii\ |
Class JsonExpressionBuilder builds yii\ |
| yii\ |
QueryBuilder is the query builder for PostgreSQL databases. |
| yii\ |
Schema is the class for retrieving metadata from a PostgreSQL database (version 9.x and above). |
| yii\ |
ColumnSchemaBuilder is the schema builder for Sqlite databases. |
| yii\ |
Command represents an SQLite's SQL statement to be executed against a database. |
| yii\ |
QueryBuilder is the query builder for SQLite databases. |
| yii\ |
Schema is the class for retrieving metadata from a SQLite (2/3) database. |
| yii\ |
SqlTokenizer splits SQLite query into individual SQL tokens. |
| yii\ |
Class InConditionBuilder builds objects of yii\ |
| yii\ |
Class LikeConditionBuilder builds objects of yii\ |
| yii\ |
Container implements a dependency injection container. |
| yii\ |
Instance represents a reference to a named object in a dependency injection (DI) container or a service locator. |
| yii\ |
NotInstantiableException represents an exception caused by incorrect dependency injection container configuration or usage. |
| yii\ |
ServiceLocator implements a service locator. |
| yii\ |
AccessControl provides simple access control based on a set of rules. |
| yii\ |
This class represents an access rule defined by the yii\ |
| yii\ |
AjaxFilter allow to limit access only for ajax requests. |
| yii\ |
ContentNegotiator supports response format negotiation and application language negotiation. |
| yii\ |
Cors filter implements Cross Origin Resource Sharing. |
| yii\ |
HostControl provides simple control over requested host name. |
| yii\ |
HttpCache implements client-side caching by utilizing the Last-Modified and ETag HTTP headers. |
| yii\ |
PageCache implements server-side caching of whole pages. |
| yii\ |
RateLimitInterface is the interface that may be implemented by an identity object to enforce rate limiting. |
| yii\ |
RateLimiter implements a rate limiting algorithm based on the leaky bucket algorithm. |
| yii\ |
VerbFilter is an action filter that filters by HTTP request methods. |
| yii\ |
AuthInterface is the interface that should be implemented by auth method classes. |
| yii\ |
AuthMethod is a base class implementing the yii\ |
| yii\ |
CompositeAuth is an action filter that supports multiple authentication methods at the same time. |
| yii\ |
HttpBasicAuth is an action filter that supports the HTTP Basic authentication method. |
| yii\ |
HttpBearerAuth is an action filter that supports the authentication method based on HTTP Bearer token. |
| yii\ |
HttpHeaderAuth is an action filter that supports HTTP authentication through HTTP Headers. |
| yii\ |
QueryParamAuth is an action filter that supports the authentication based on the access token passed through a query parameter. |
| yii\ |
ActionColumn is a column for the yii\ |
| yii\ |
CheckboxColumn displays a column of checkboxes in a grid view. |
| yii\ |
Column is the base class of all yii\ |
| yii\ |
DataColumn is the default column type for the yii\ |
| yii\ |
The GridView widget is used to display data in a grid. |
| yii\ |
This asset bundle provides the javascript files for the yii\ |
| yii\ |
RadioButtonColumn displays a column of radio buttons in a grid view. |
| yii\ |
SerialColumn displays a column of row numbers (1-based). |
| yii\ |
ArrayHelper provides additional array functionality that you can use in your application. |
| yii\ |
BaseArrayHelper provides concrete implementation for yii\ |
| yii\ |
BaseConsole provides concrete implementation for yii\ |
| yii\ |
BaseFileHelper provides concrete implementation for yii\ |
| yii\ |
BaseFormatConverter provides concrete implementation for yii\ |
| yii\ |
BaseHtml provides concrete implementation for yii\ |
| yii\ |
BaseHtmlPurifier provides concrete implementation for yii\ |
| yii\ |
BaseInflector provides concrete implementation for yii\ |
| yii\ |
Class BaseIpHelper provides concrete implementation for yii\ |
| yii\ |
BaseJson provides concrete implementation for yii\ |
| yii\ |
BaseMarkdown provides concrete implementation for yii\ |
| yii\ |
BaseStringHelper provides concrete implementation for yii\ |
| yii\ |
BaseUrl provides concrete implementation for yii\ |
| yii\ |
BaseVarDumper provides concrete implementation for yii\ |
| yii\ |
Console helper provides useful methods for command line related tasks such as getting input or formatting and coloring output. |
| yii\ |
File system helper. |
| yii\ |
FormatConverter provides functionality to convert between different formatting pattern formats. |
| yii\ |
Html provides a set of static methods for generating commonly used HTML tags. |
| yii\ |
HtmlPurifier provides an ability to clean up HTML from any harmful code. |
| yii\ |
Inflector pluralizes and singularizes English nouns. It also contains some other useful methods. |
| yii\ |
Class IpHelper provides a set of IP-related static methods. |
| yii\ |
Json is a helper class providing JSON data encoding and decoding. |
| yii\ |
Markdown provides an ability to transform markdown into HTML. |
| yii\ |
Object that represents the replacement of array value while performing yii\ |
| yii\ |
StringHelper. |
| yii\ |
Object that represents the removal of array value while performing yii\ |
| yii\ |
Url provides a set of static methods for managing URLs. |
| yii\ |
VarDumper is intended to replace the buggy PHP function var_dump and print_r. |
| yii\ |
DbMessageSource extends yii\ |
| yii\ |
Formatter provides a set of commonly used data formatting methods. |
| yii\ |
GettextFile is the base class for representing a Gettext message file. |
| yii\ |
GettextMessageSource represents a message source that is based on GNU Gettext. |
| yii\ |
GettextMoFile represents an MO Gettext message file. |
| yii\ |
GettextPoFile represents a PO Gettext message file. |
| yii\ |
I18N provides features related with internationalization (I18N) and localization (L10N). |
| yii\ |
Locale provides various locale information via convenient methods. |
| yii\ |
MessageFormatter allows formatting messages via ICU message format. |
| yii\ |
MessageSource is the base class for message translation repository classes. |
| yii\ |
MissingTranslationEvent represents the parameter for the yii\ |
| yii\ |
PhpMessageSource represents a message source that stores translated messages in PHP scripts. |
| yii\ |
DbTarget stores log messages in a database table. |
| yii\ |
Dispatcher manages a set of log targets. |
| yii\ |
EmailTarget sends selected log messages to the specified email addresses. |
| yii\ |
FileTarget records log messages in a file. |
| yii\ |
LogRuntimeException represents an exception caused by problems with log delivery. |
| yii\ |
Logger records logged messages in memory and sends them to different targets if $dispatcher is set. |
| yii\ |
SyslogTarget writes log to syslog. |
| yii\ |
Target is the base class for all log target classes. |
| yii\ |
BaseMailer serves as a base class that implements the basic functions required by yii\ |
| yii\ |
BaseMessage serves as a base class that implements the send() method required by yii\ |
| yii\ |
MailEvent represents the event parameter used for events triggered by yii\ |
| yii\ |
MailerInterface is the interface that should be implemented by mailer classes. |
| yii\ |
MessageInterface is the interface that should be implemented by mail message classes. |
| yii\ |
DbMutex is the base class for classes, which relies on database while implementing mutex "lock" mechanism. |
| yii\ |
FileMutex implements mutex "lock" mechanism via local file system files. |
| yii\ |
The Mutex component allows mutual execution of concurrent processes in order to prevent "race conditions". |
| yii\ |
MysqlMutex implements mutex "lock" mechanism via MySQL locks. |
| yii\ |
OracleMutex implements mutex "lock" mechanism via Oracle locks. |
| yii\ |
PgsqlMutex implements mutex "lock" mechanism via PgSQL locks. |
| yii\ |
Trait RetryAcquireTrait. |
| yii\ |
Assignment represents an assignment of a role to a user. |
| yii\ |
BaseManager is a base class implementing yii\ |
| yii\ |
For more details and usage information on CheckAccessInterface, see the guide article on security authorization. |
| yii\ |
DbManager represents an authorization manager that stores authorization information in database. |
| yii\ |
For more details and usage information on Item, see the guide article on security authorization. |
| yii\ |
For more details and usage information on ManagerInterface, see the guide article on security authorization. |
| yii\ |
For more details and usage information on Permission, see the guide article on security authorization. |
| yii\ |
PhpManager represents an authorization manager that stores authorization information in terms of a PHP script file. |
| yii\ |
For more details and usage information on Role, see the guide article on security authorization. |
| yii\ |
Rule represents a business constraint that may be associated with a role, permission or assignment. |
| yii\ |
Action is the base class for action classes that implement RESTful API. |
| yii\ |
ActiveController implements a common set of actions for supporting RESTful access to ActiveRecord. |
| yii\ |
Controller is the base class for RESTful API controller classes. |
| yii\ |
CreateAction implements the API endpoint for creating a new model from the given data. |
| yii\ |
DeleteAction implements the API endpoint for deleting a model. |
| yii\ |
IndexAction implements the API endpoint for listing multiple models. |
| yii\ |
OptionsAction responds to the OPTIONS request by sending back an Allow header. |
| yii\ |
Serializer converts resource objects and collections into array representation. |
| yii\ |
UpdateAction implements the API endpoint for updating a model. |
| yii\ |
UrlRule is provided to simplify the creation of URL rules for RESTful API support. |
| yii\ |
ViewAction implements the API endpoint for returning the detailed information about a model. |
| yii\ |
ActiveFixture represents a fixture backed up by a ActiveRecord class or a database table. |
| yii\ |
ArrayFixture represents arbitrary fixture that can be loaded from PHP files. |
| yii\ |
BaseActiveFixture is the base class for fixture classes that support accessing fixture data as ActiveRecord objects. |
| yii\ |
DbFixture is the base class for DB-related fixtures. |
| yii\ |
FileFixtureTrait provides functionalities for loading data fixture from file. |
| yii\ |
Fixture represents a fixed state of a test environment. |
| yii\ |
FixtureTrait provides functionalities for loading, unloading and accessing fixtures for a test case. |
| yii\ |
InitDbFixture represents the initial state needed for DB-related tests. |
| yii\ |
BooleanValidator checks if the attribute value is a boolean value. |
| yii\ |
CompareValidator compares the specified attribute value with another value. |
| yii\ |
DateValidator verifies if the attribute represents a date, time or datetime in a proper $format. |
| yii\ |
DefaultValueValidator sets the attribute to be the specified default value. |
| yii\ |
EachValidator validates an array by checking each of its elements against an embedded validation rule. |
| yii\ |
EmailValidator validates that the attribute value is a valid email address. |
| yii\ |
ExistValidator validates that the attribute value exists in a table. |
| yii\ |
FileValidator verifies if an attribute is receiving a valid uploaded file. |
| yii\ |
FilterValidator converts the attribute value according to a filter. |
| yii\ |
ImageValidator verifies if an attribute is receiving a valid image. |
| yii\ |
InlineValidator represents a validator which is defined as a method in the object being validated. |
| yii\ |
The validator checks if the attribute value is a valid IPv4/IPv6 address or subnet. |
| yii\ |
NumberValidator validates that the attribute value is a number. |
| yii\ |
This asset bundle provides the javascript files needed for the yii\ |
| yii\ |
RangeValidator validates that the attribute value is among a list of values. |
| yii\ |
RegularExpressionValidator validates that the attribute value matches the specified $pattern. |
| yii\ |
RequiredValidator validates that the specified attribute does not have null or empty value. |
| yii\ |
SafeValidator serves as a dummy validator whose main purpose is to mark the attributes to be safe for massive assignment. |
| yii\ |
StringValidator validates that the attribute value is of certain length. |
| yii\ |
This class converts the attribute value(s) to string(s) and strip characters. |
| yii\ |
UniqueValidator validates that the attribute value is unique in the specified database table. |
| yii\ |
UrlValidator validates that the attribute value is a valid http or https URL. |
| yii\ |
This asset bundle provides the javascript files for client validation. |
| yii\ |
Validator is the base class for all validators. |
| yii\ |
Application is the base class for all web application classes. |
| yii\ |
AssetBundle represents a collection of asset files, such as CSS, JS, images. |
| yii\ |
AssetConverter supports conversion of several popular formats into JS or CSS files. |
| yii\ |
The AssetConverterInterface must be implemented by asset converter classes. |
| yii\ |
AssetManager manages asset bundle configuration and loading. |
| yii\ |
BadRequestHttpException represents a "Bad Request" HTTP exception with status code 400. |
| yii\ |
CacheSession implements a session component using cache as storage medium. |
| yii\ |
CompositeUrlRule is the base class for URL rule classes that consist of multiple simpler rules. |
| yii\ |
ConflictHttpException represents a "Conflict" HTTP exception with status code 409. |
| yii\ |
Controller is the base class of web controllers. |
| yii\ |
Cookie represents information related with a cookie, such as $name, $value, $domain, etc. |
| yii\ |
CookieCollection maintains the cookies available in the current request. |
| yii\ |
DbSession extends yii\ |
| yii\ |
ErrorAction displays application errors using a specified view. |
| yii\ |
ErrorHandler handles uncaught PHP errors and exceptions. |
| yii\ |
ErrorHandlerRenderEvent represents events triggered by yii\ |
| yii\ |
ForbiddenHttpException represents a "Forbidden" HTTP exception with status code 403. |
| yii\ |
GoneHttpException represents a "Gone" HTTP exception with status code 410. |
| yii\ |
GroupUrlRule represents a collection of URL rules sharing the same prefix in their patterns and routes. |
| yii\ |
HeaderCollection is used by yii\ |
| yii\ |
HeadersAlreadySentException represents an exception caused by any headers that were already sent before web response was sent. |
| yii\ |
HtmlResponseFormatter formats the given data into an HTML response content. |
| yii\ |
HttpException represents an exception caused by an improper request of the end-user. |
| yii\ |
IdentityInterface is the interface that should be implemented by a class providing identity information. |
| yii\ |
This asset bundle provides the jQuery JavaScript library. |
| yii\ |
JsExpression marks a string as a JavaScript expression. |
| yii\ |
Parses a raw HTTP request using yii\ |
| yii\ |
JsonResponseFormatter formats the given data into a JSON or JSONP response content. |
| yii\ |
Link represents a link object as defined in JSON Hypermedia API Language. |
| yii\ |
Linkable is the interface that should be implemented by classes that typically represent locatable resources. |
| yii\ |
MethodNotAllowedHttpException represents a "Method Not Allowed" HTTP exception with status code 405. |
| yii\ |
MultiFieldSession is the base class for session storage implementations with multi-field data storage support. |
| yii\ |
MultipartFormDataParser parses content encoded as 'multipart/form-data'. |
| yii\ |
NotAcceptableHttpException represents a "Not Acceptable" HTTP exception with status code 406. |
| yii\ |
NotFoundHttpException represents a "Not Found" HTTP exception with status code 404. |
| yii\ |
RangeNotSatisfiableHttpException represents an exception caused by an improper request of the end-user. |
| yii\ |
The web Request class represents an HTTP request. |
| yii\ |
Interface for classes that parse the raw request body into a parameters array. |
| yii\ |
The web Response class represents an HTTP response. |
| yii\ |
ResponseFormatterInterface specifies the interface needed to format a response before it is sent out. |
| yii\ |
ServerErrorHttpException represents an "Internal Server Error" HTTP exception with status code 500. |
| yii\ |
Session provides session data management and the related configurations. |
| yii\ |
SessionHandler implements an SessionHandlerInterface for handling yii\ |
| yii\ |
SessionIterator implements an iterator for traversing session variables managed by yii\ |
| yii\ |
TooManyRequestsHttpException represents a "Too Many Requests" HTTP exception with status code 429. |
| yii\ |
UnauthorizedHttpException represents an "Unauthorized" HTTP exception with status code 401. |
| yii\ |
UnprocessableEntityHttpException represents an "Unprocessable Entity" HTTP exception with status code 422. |
| yii\ |
UnsupportedMediaTypeHttpException represents an "Unsupported Media Type" HTTP exception with status code 415. |
| yii\ |
UploadedFile represents the information for an uploaded file. |
| yii\ |
UrlManager handles HTTP request parsing and creation of URLs based on a set of rules. |
| yii\ |
UrlNormalizer normalizes URLs for yii\ |
| yii\ |
UrlNormalizerRedirectException represents an information for redirection which should be performed during the URL normalization. |
| yii\ |
UrlRule represents a rule used by yii\ |
| yii\ |
UrlRuleInterface is the interface that should be implemented by URL rule classes. |
| yii\ |
User is the class for the user application component that manages the user authentication status. |
| yii\ |
This event class is used for Events triggered by the yii\ |
| yii\ |
View represents a view object in the MVC pattern. |
| yii\ |
ViewAction represents an action that displays a view according to a user-specified parameter. |
| yii\ |
XmlResponseFormatter formats the given data into an XML response content. |
| yii\ |
This asset bundle provides the base JavaScript files for the Yii Framework. |
| yii\ |
ActiveField represents a form input field within an yii\ |
| yii\ |
ActiveForm is a widget that builds an interactive HTML form for one or multiple data models. |
| yii\ |
The asset bundle for the yii\ |
| yii\ |
BaseListView is a base class for widgets displaying data from data provider such as ListView and GridView. |
| yii\ |
Block records all output between begin() and end() calls and stores it in yii\ |
| yii\ |
Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy. |
| yii\ |
ContentDecorator records all output between begin() and end() calls, passes it to the given view file
as $content and then echoes rendering result. |
| yii\ |
DetailView displays the detail of a single data $model. |
| yii\ |
FragmentCache is used by yii\ |
| yii\ |
InputWidget is the base class for widgets that collect user inputs. |
| yii\ |
LinkPager displays a list of hyperlinks that lead to different pages of target. |
| yii\ |
LinkSorter renders a list of sort links for the given sort definition. |
| yii\ |
The ListView widget is used to display data from data provider. Each data model is rendered using the view specified. |
| yii\ |
MaskedInput generates a masked text input. |
| yii\ |
The asset bundle for the yii\ |
| yii\ |
Menu displays a multi-level menu using nested HTML lists. |
| yii\ |
Pjax is a widget integrating the pjax jQuery plugin. |
| yii\ |
This asset bundle provides the javascript files required by yii\ |
| yii\ |
Spaceless widget removes whitespace characters between HTML tags. Whitespaces within HTML tags or in a plain text are always left untouched. |