Overview

Namespaces

  • MOC
    • Adapter
    • Core
      • Changelog
      • Depending
      • Drive
        • Directory
        • File
      • Error
        • Register
        • Type
      • Journal
      • Proxy
      • Template
      • Xml
    • Extension
      • Excel
      • Flot
      • Mail
      • Pdf
      • Word
      • Xml
      • YUICompressor
      • Zip
    • Generic
      • Common
      • Device
        • Extension
        • Widget
    • Module
      • Database
        • Driver
      • Drive
      • Image
        • Font
      • Installer
      • Network
        • Ftp
          • Directory
          • File
          • Transport
        • Http
        • ParcelTracker
          • Carrier
      • Office
        • Chart
          • Axis
        • Document
          • Excel
            • Cell
              • Format
              • Style
                • Border
                  • Bottom
                  • Left
                  • Right
                  • Top
                • Font
            • Close
            • Page
            • Worksheet
          • Pdf
            • Close
            • Font
            • Page
              • Margin
              • Position
            • Text
          • Xml
            • Close
        • Image
        • Mail
          • Address
          • Content
      • Packer
        • Yui
        • Zip
      • Template
    • Plugin
      • Gateway
      • Repository
      • Shared
  • PHP

Classes

  • Configuration
  • Constant
  • Driver
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class Driver

MOC\Module\Database\Constant
Extended by MOC\Module\Database\Configuration
Extended by MOC\Module\Database\Driver

Direct known subclasses

MOC\Module\Database\Driver\Mysql, MOC\Module\Database\Driver\Odbc

Indirect known subclasses

MOC\Module\Database\Driver\OdbcMssql, MOC\Module\Database\Driver\OdbcOracle
Abstract
Namespace: MOC\Module\Database
Located at Module/Database/Driver.php
Methods summary
abstract public boolean
# Open( string $Host, string $User, string $Password, null|string $Database = null )

Parameters

$Host
string
$Host
$User
string
$User
$Password
string
$Password
$Database
null|string
$Database

Returns

boolean
abstract public boolean
# Close( )

Returns

boolean
public MOC\Module\Database\Driver
# Statement( string $SqlTemplate )

Parameters

$SqlTemplate
string
$SqlTemplate

Returns

MOC\Module\Database\Driver
public MOC\Module\Database\Driver
# Parameter( mixed $Value, null|string $Key = null, integer $Type = Driver::PARAM_TYPE_NONE )

Parameters

$Value
mixed
$Value
$Key
null|string
$Key
$Type
integer
$Type

Returns

MOC\Module\Database\Driver
abstract public array
# Execute( integer $FETCH_AS = Driver::RESULT_AS_ARRAY_ASSOC )

Parameters

$FETCH_AS
integer
$FETCH_AS

Returns

array
abstract public
# TransactionStart( )
abstract public
# TransactionCommit( )
abstract public
# TransactionRollback( )
abstract protected array
# FetchAsArray( resource $Result )

Parameters

$Result
resource
$Result

Returns

array
abstract protected array
# FetchAsArrayAssoc( resource $Result )

Parameters

$Result
resource
$Result

Returns

array
final protected MOC\Module\Database\Driver
# SetStatement( string $SqlTemplate )

Parameters

$SqlTemplate
string
$SqlTemplate

Returns

MOC\Module\Database\Driver
final protected MOC\Module\Database\Driver
# SetParameter( mixed $Value, null|string $Key = null, integer $Type = Driver::PARAM_TYPE_NONE )

Parameters

$Value
mixed
$Value
$Key
null|string
$Key
$Type
integer
$Type

Returns

MOC\Module\Database\Driver
final protected boolean|string
# GetQuery( )

Returns

boolean|string
final protected
# SetResource( null|resource $Resource )

Parameters

$Resource
null|resource
$Resource
final protected null|resource
# GetResource( )

Returns

null|resource
final private string
# RegExpEncode( string $String )

Parameters

$String
string
$String

Returns

string
final public
# EnableDebug( integer $Type = Driver::DEBUG_HTML )

Parameters

$Type
integer
$Type
final protected
# DebugError( mixed $Content )
final protected
# DebugMessage( mixed $Content )
final private
# DebugAsHtml( mixed $Content )
final private
# DebugErrorAsHtml( mixed $Content )
Methods inherited from MOC\Module\Database\Configuration
OptionDateTimeFormat(), OptionEscapeQuoteWith(), OptionQuote()
Constants inherited from MOC\Module\Database\Constant
DEBUG_HTML, PARAM_KEY_UNDEFINED, PARAM_TYPE_DATETIME, PARAM_TYPE_INTEGER, PARAM_TYPE_NONE, PARAM_TYPE_STRING, PARAM_TYPE_STRING_LIST, RESULT_AS_ARRAY, RESULT_AS_ARRAY_ASSOC
Properties summary
private null|resource $Resource null
#

$Resource

$Resource

private array $Statement array()
#

$Statement

$Statement

private integer $StatementCount 0
#

$StatementCount

$StatementCount

private array $Parameter array()
#

$Parameter

$Parameter

private boolean $Debug false
#
API documentation generated by ApiGen 2.8.0