yii\db\Schema::getSchemaNames PHP 메소드

getSchemaNames() 공개 메소드

Returns all schema names in the database, except system schemas.
부터: 2.0.4
public getSchemaNames ( boolean $refresh = false ) : string[]
$refresh boolean whether to fetch the latest available schema names. If this is false, schema names fetched previously (if available) will be returned.
리턴 string[] all schema names in the database, except system schemas.
    public function getSchemaNames($refresh = false)
    {
        if ($this->_schemaNames === null || $refresh) {
            $this->_schemaNames = $this->findSchemaNames();
        }
        return $this->_schemaNames;
    }

Usage Example

예제 #1
0
파일: Schema.php 프로젝트: janatzend/app
 public function getSchemaNames($refresh = false)
 {
     return parent::getSchemaNames($refresh);
 }