yii\db\pgsql\Schema::getViewNames PHP Method

getViewNames() public method

Returns all view names in the database.
Since: 2.0.9
public getViewNames ( string $schema = '', boolean $refresh = false ) : string[]
$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.
    public function getViewNames($schema = '', $refresh = false)
    {
        if (!isset($this->_viewNames[$schema]) || $refresh) {
            $this->_viewNames[$schema] = $this->findViewNames($schema);
        }
        return $this->_viewNames[$schema];
    }