public function getDBConnection($type = 'default')
    {
        switch (strtolower($type)) {
            case "default":
            case "read":
                if (isset($this->databaseAliasNameforRead)) {
                    $dbName = $this->databaseAliasNameforRead;
                } else {
                    $dbName = $this->databaseAliasName;
                }
                break;
            case "write":
                if (isset($this->databaseAliasNameforWrite)) {
                    $dbName = $this->databaseAliasNameforWrite;
                } else {
                    $dbName = $this->databaseAliasName;
                }
                break;
        }
        return Openbizx::$app->getDbConnection($dbName);
    }
public function getDBConnection($type = 'default')
    {
        switch (strtolower($type)) {
            case "default":
            case "read":
                if (isset($this->databaseAliasNameforRead)) {
                    $dbName = $this->databaseAliasNameforRead;
                } else {
                    $dbName = $this->databaseAliasName;
                }
                break;
            case "write":
                if (isset($this->databaseAliasNameforWrite)) {
                    $dbName = $this->databaseAliasNameforWrite;
                } else {
                    $dbName = $this->databaseAliasName;
                }
                break;
        }
        return Openbizx::$app->getDbConnection($dbName);
    }
public function getDBConnection ( $ type = 'default' ) { switch ( strtolower ( $ type ) ) { case "default" : case "read" : if ( isset ( $ this -> databaseAliasNameforRead ) ) { $ dbName = $ this -> databaseAliasNameforRead ; } else { $ dbName = $ this -> databaseAliasName ; } break ; case "write" : if ( isset ( $ this -> databaseAliasNameforWrite ) ) { $ dbName = $ this -> databaseAliasNameforWrite ; } else { $ dbName = $ this -> databaseAliasName ; } break ; } return Openbizx :: $ app -> getDbConnection ( $ dbName ) ; }
Get database connection

@return \Zend_Db_Adapter_Abstract
Get database connection