yii\db\ViewFinderTrait - Yii2 类参考手册
Trait yii\db\ViewFinderTrait
全部
| 方法 Methods
Implemented by | yii\db\mssql\Schema, yii\db\pgsql\Schema |
---|---|
Available since version | 2.0.12 |
ViewFinderTrait implements the method getViewNames for finding views in a database.
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
getViewNames() | Returns all view names in the database. | yii\db\ViewFinderTrait |
Protected Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
findViewNames() | Returns all views names in the database. | yii\db\ViewFinderTrait |
方法详情 Method Details
Returns all views names in the database.
protected abstract array findViewNames ( $schema = '' ) | ||
$schema | string | The schema of the views. Defaults to empty string, meaning the current or default schema. |
return | array | All views names in the database. The names have NO schema name prefix. |
---|
Returns all view names in the database.
public string[] getViewNames ( $schema = '', $refresh = false ) | ||
$schema | string | The schema of the views. Defaults to empty string, meaning the current or default schema name. If not empty, the returned view names will be prefixed with the schema name. |
$refresh | boolean | Whether to fetch the latest available view names. If this is false, view names fetched previously (if available) will be returned. |
return | string[] | All view names in the database. |
---|