Overview

Namespaces

  • Application
    • Controller
    • Model
      • DAO
        • Impl
      • Service
        • Impl
  • Define
    • Core
    • DBDrivers
    • Exceptions
    • IUtilities
    • Traits
    • Utilities
  • None

Classes

  • DatabaseBean
  • DatabaseFactory
  • MONGODBDriver
  • MSSQLDriver
  • MYSQLDriver
  • MYSQLIDriver
  • ORACLEDriver
  • PDODriver
  • POSTGREDriver
  • SQLITEDriver

Interfaces

  • IDatabase
  • Overview
  • Namespace
  • Class

Class DatabaseFactory

DATABASE FACTORY

Database factory class for retriving the instance of the database driver class.

Namespace: Define\DBDrivers
Package: DBDrivers
Category: Define
Copyright: 2015 Nitesh Apte
License: GNU General Public License v3 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Author: Nitesh Apte me@niteshapte.com
Version: 1.0.0
Since: 1.0.0
Located at lib/define/dbdrivers/DatabaseFactory.php
Methods summary
public static Instance
# create( string $databaseType = 'MYSQLI' )

Returns the instance of type IDatabase and also makes connection.

Returns the instance of type IDatabase and also makes connection.

Parameters

$databaseType

Returns

Instance
of IDatabase

Throws

Define\Exceptions\FrameworkException
API documentation generated by ApiGen