db\Schema getTableNames()

getTableNames() public method

Returns all table names in the database.

public string[] getTableNames ( $schema = '', $refresh = false )
$schema string

The schema of the tables. Defaults to empty string, meaning the current or default schema name. If not empty, the returned table names will be prefixed with the schema name.

$refresh boolean

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

return string[]

All table names in the database.

doc_Yii
2016-10-30 16:59:40
Comments
Leave a Comment

Please login to continue.