HumHub Documentation (unofficial)

ViewFinderTrait

ViewFinderTrait implements the method getViewNames for finding views in a database.

Tags
author

Qiang Xue qiang.xue@gmail.com

author

Bob Olde Hampsink b.oldehampsink@nerds.company

since
2.0.12

Table of Contents

Properties

$_viewNames  : array<string|int, mixed>

Methods

getViewNames()  : array<string|int, string>
Returns all view names in the database.
findViewNames()  : array<string|int, mixed>
Returns all views names in the database.

Properties

$_viewNames

private array<string|int, mixed> $_viewNames = []

list of ALL view names in the database

Methods

getViewNames()

Returns all view names in the database.

public getViewNames([string $schema = '' ][, bool $refresh = false ]) : array<string|int, string>
Parameters
$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 : bool = false

whether to fetch the latest available view names. If this is false, view names fetched previously (if available) will be returned.

Return values
array<string|int, string>

all view names in the database.

findViewNames()

Returns all views names in the database.

protected abstract findViewNames([string $schema = '' ]) : array<string|int, mixed>
Parameters
$schema : string = ''

the schema of the views. Defaults to empty string, meaning the current or default schema.

Return values
array<string|int, mixed>

all views names in the database. The names have NO schema name prefix.


        
On this page

Search results