public function getMainDB()
    {
        if ($this->main_database === null &&
            ($this->isOperationModeCLI() || $this->isOperationModeStandalone())
        ) {
            $this->registerMainDatabase();
        }
        return $this->main_database;
    }
public function getMainDB()
    {
        if ($this->main_database === null &&
            ($this->isOperationModeCLI() || $this->isOperationModeStandalone())
        ) {
            $this->registerMainDatabase();
        }
        return $this->main_database;
    }
public function getMainDB ( ) { if ( $ this -> main_database === null && ( $ this -> isOperationModeCLI ( ) || $ this -> isOperationModeStandalone ( ) ) ) { $ this -> registerMainDatabase ( ) ; } return $ this -> main_database ; }
Get main database connection.
@return INabuDBConnector Returns the database connector instance if active or null if not
Get main database connection .