Overview

Namespaces

  • None
  • Xmf
    • Database
    • Module
      • Helper
    • Template
  • Xoops
    • Auth
    • Core
      • Cache
      • Database
        • Logging
        • Schema
      • Exception
      • Handler
        • Scheme
      • Kernel
        • Dtype
        • Handlers
        • Model
      • Lists
      • Locale
        • Punic
      • Service
        • Contract
      • Session
      • Text
        • Sanitizer
          • Extensions
      • Theme
        • Plugins
    • Form
    • Html
    • Locale
    • Module
      • Helper
      • Plugin

Classes

  • Connection
  • Factory
  • QueryBuilder
  • Overview
  • Namespace
  • Class
  • Tree

Class Factory

Xoops Database Factory class

PHP version 5.3

Direct known subclasses

XoopsDatabaseFactory
Namespace: Xoops\Core\Database
Package: Factory
Category: Xoops\Class\Database\Factory
Copyright: 2013-2014 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Author: readheadedrod redheadedrod@hotmail.com
Version: Release:2.6
Since: 2.6.0
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Database/Factory.php
Methods summary
public static Xoops\Core\Database\Connection|null
# getConnection( array $options = null )

Get a reference to the only instance of database class and connects to DB

Get a reference to the only instance of database class and connects to DB

if the class has not been instantiated yet, this will also take care of that

Doctrine connection function

NOTE: Persistance connection is not included. XOOPS_DB_PCONNECT is ignored. allowWebChanges also needs to be addressed

Parameters

$options
driverOptions for Doctrine

Returns

Xoops\Core\Database\Connection|null
Reference to the only instance of database class
API documentation generated by ApiGen