Zend\Db\Adapter\Adapter
Synopsis
class Adapter
implements
AdapterInterface,ProfilerAwareInterface
{
- // constants
- const QUERY_MODE_EXECUTE = 'execute';
- const QUERY_MODE_PREPARE = 'prepare';
- const PREPARE_TYPE_POSITIONAL = 'positional';
- const PREPARE_TYPE_NAMED = 'named';
- const FUNCTION_FORMAT_PARAMETER_NAME = 'formatParameterName';
- const FUNCTION_QUOTE_IDENTIFIER = 'quoteIdentifier';
- const FUNCTION_QUOTE_VALUE = 'quoteValue';
- const VALUE_QUOTE_SEPARATOR = 'quoteSeparator';
- // members
- protected DriverInterface $driver;
- protected PlatformInterface $platform;
- protected ProfilerInterface $profiler;
- protected ResultSetInterface $queryResultSetPrototype;
- protected StatementInterface $lastPreparedStatement;
- // methods
- public void __construct()
- public Adapter setProfiler()
- public ProfilerInterface getProfiler()
- public DriverInterface getDriver()
- public PlatformInterface getPlatform()
- public ResultSetInterface getQueryResultSetPrototype()
- public void getCurrentSchema()
- public ResultSet query()
- public StatementInterface createStatement()
- public void getHelpers()
- public PlatformInterface __get()
- protected DriverInterface createDriver()
- protected PlatformInterface createPlatform()
- protected void createProfiler()
- protected DriverInterface createDriverFromParameters()
- protected PlatformInterface createPlatformFromDriver()
Hierarchy
Constants
Name | Value |
---|---|
QUERY_MODE_EXECUTE | 'execute' |
QUERY_MODE_PREPARE | 'prepare' |
PREPARE_TYPE_POSITIONAL | 'positional' |
PREPARE_TYPE_NAMED | 'named' |
FUNCTION_FORMAT_PARAMETER_NAME | 'formatParameterName' |
FUNCTION_QUOTE_IDENTIFIER | 'quoteIdentifier' |
FUNCTION_QUOTE_VALUE | 'quoteValue' |
VALUE_QUOTE_SEPARATOR | 'quoteSeparator' |
Members
protected
- $driver — Zend\Db\Adapter\Driver\DriverInterface
- $lastPreparedStatement — Zend\Db\Adapter\Driver\StatementInterface
- $platform — Zend\Db\Adapter\Platform\PlatformInterface
- $profiler — Zend\Db\Adapter\Profiler\ProfilerInterface
- $queryResultSetPrototype — Zend\Db\Adapter\ResultSet\ResultSetInterface
Methods
protected
- createDriver()
- createDriverFromParameters()
- createPlatform()
- createPlatformFromDriver()
- createProfiler()
public
- __construct()
- __get()
- createStatement() — Create statement
- getCurrentSchema()
- getDriver() — getDriver()
- getHelpers()
- getPlatform()
- getProfiler()
- getQueryResultSetPrototype()
- query() — query() is a convenience function
- setProfiler()