public function getResourceNames($type, $schema = '')
    {
        switch ($type) {
            case DbResourceTypes::TYPE_SCHEMA:
                return $this->getSchemas();
            case DbResourceTypes::TYPE_TABLE:
                return $this->getTableNames($schema);
            case DbResourceTypes::TYPE_VIEW:
                return $this->getViewNames($schema);
            case DbResourceTypes::TYPE_TABLE_CONSTRAINT:
                return $this->getTableConstraints($schema);
            case DbResourceTypes::TYPE_PROCEDURE:
                return $this->getProcedureNames($schema);
            case DbResourceTypes::TYPE_FUNCTION:
                return $this->getFunctionNames($schema);
            default:
                return [];
        }
    }
public function getResourceNames($type, $schema = '')
    {
        switch ($type) {
            case DbResourceTypes::TYPE_SCHEMA:
                return $this->getSchemas();
            case DbResourceTypes::TYPE_TABLE:
                return $this->getTableNames($schema);
            case DbResourceTypes::TYPE_VIEW:
                return $this->getViewNames($schema);
            case DbResourceTypes::TYPE_TABLE_CONSTRAINT:
                return $this->getTableConstraints($schema);
            case DbResourceTypes::TYPE_PROCEDURE:
                return $this->getProcedureNames($schema);
            case DbResourceTypes::TYPE_FUNCTION:
                return $this->getFunctionNames($schema);
            default:
                return [];
        }
    }
public function getResourceNames ( $ type , $ schema = '' ) { switch ( $ type ) { case DbResourceTypes :: TYPE_SCHEMA : return $ this -> getSchemas ( ) ; case DbResourceTypes :: TYPE_TABLE : return $ this -> getTableNames ( $ schema ) ; case DbResourceTypes :: TYPE_VIEW : return $ this -> getViewNames ( $ schema ) ; case DbResourceTypes :: TYPE_TABLE_CONSTRAINT : return $ this -> getTableConstraints ( $ schema ) ; case DbResourceTypes :: TYPE_PROCEDURE : return $ this -> getProcedureNames ( $ schema ) ; case DbResourceTypes :: TYPE_FUNCTION : return $ this -> getFunctionNames ( $ schema ) ; default : return [ ] ; } }
Return an array of names of a particular type of resource.

@param string $type   Resource type
@param string $schema Schema name if any specific requested

@return array
@throws \Exception
Return an array of names of a particular type of resource .