Model/Db.php

Classes 
package
Model
Classes
Kwf_Model_Db

Description

\Kwf_Model_Db

Extends from
\Kwf_Model_Abstract
package
Model
Properties
$_db
$_rowClass
$_rowsetClass
$_supportedImportExportFormats
$_table
Methods
__construct
__destruct
__sleep
_applySelect
_createDbSelectWithColumns
_fieldWithTableName
_formatField
_getOwnColumns
_getUniqueId
_init
_updateModelObserver
afterInsert
beforeDelete
convertValueType
countRows
createDbSelect
createRow
deleteRows
evaluateExpr
executeSql
export
fetchColumnByPrimaryId
fetchColumnsByPrimaryId
find
getAdapter
getColumnType
getExprValue
getIds
getPrimaryKey
getRow
getRowByProxiedRow
getRows
getSqlForSelect
getSupportedImportExportFormats
getTable
getTableName
getUniqueIdentifier
import
isEqual
select
updateRows
writeBuffer

Description

Properties

$_db

 $_db = ''

Details

visibility
protected
default
final
false
static
false

$_rowClass

 $_rowClass = 'Kwf_Model_Db_Row'

Details

visibility
protected
default
Kwf_Model_Db_Row
final
false
static
false

$_rowsetClass

 $_rowsetClass = 'Kwf_Model_Db_Rowset'

Details

visibility
protected
default
Kwf_Model_Db_Rowset
final
false
static
false

$_supportedImportExportFormats

 $_supportedImportExportFormats = 'array'

Unterstützte Import / Export Formate

Reihenfolge: Bevorzugtes Format muss als erstes stehen.

Details

visibility
protected
default
array
final
false
static
false

$_table

 $_table = ''

Details

visibility
protected
default
final
false
static
false

Methods

__construct

__construct(  $config = array ) :
Arguments
$config
Details
visibility
public
final
false
static
false

__destruct

__destruct( ) :
Details
visibility
public
final
false
static
false

__sleep

__sleep( ) :
Details
visibility
public
final
false
static
false

_applySelect

_applySelect(  $dbSelect,  $select ) :
Arguments
$dbSelect
$select
Details
visibility
protected
final
false
static
false

_createDbSelectWithColumns

_createDbSelectWithColumns(  $select,  $options ) :
Arguments
$select
$options
Details
visibility
public
final
false
static
false

_fieldWithTableName

_fieldWithTableName(  $field,  $tableNameAlias = null ) :
Arguments
$field
$tableNameAlias
Details
visibility
protected
final
false
static
false

_formatField

_formatField(  $field,  $select = null,  $tableNameAlias = null ) :
Arguments
$field
$select
$tableNameAlias
Details
visibility
public
final
false
static
false

_getOwnColumns

_getOwnColumns( ) :
Details
visibility
protected
final
false
static
false

_getUniqueId

_getUniqueId(  $proxiedRow ) :
Arguments
$proxiedRow
Details
visibility
protected
final
false
static
false

_init

_init( ) :
Details
visibility
protected
final
false
static
false

_updateModelObserver

_updateModelObserver(  $options,  $ids = null ) :
Arguments
$options
$ids
Details
visibility
protected
final
false
static
false

afterInsert

afterInsert(  $row ) :

wird aufgerufen von row

Arguments
$row
Details
visibility
public
final
false
static
false

beforeDelete

beforeDelete(  $row ) :
Arguments
$row
Details
visibility
public
final
false
static
false

convertValueType

convertValueType(  $column,  $value ) :

Arguments
$column
$value
Details
visibility
public
final
false
static
false
internal

countRows

countRows(  $select = array ) :
Arguments
$select
Details
visibility
public
final
false
static
false

createDbSelect

createDbSelect(  $select,  $tableNameAlias = null ) :
Arguments
$select
$tableNameAlias
Details
visibility
public
final
false
static
false

createRow

createRow(  $data = array ) : \Kwf_Model_Row_Interface

Arguments
$data
Details
visibility
public
final
false
static
false

deleteRows

deleteRows(  $where ) :
Arguments
$where
Details
visibility
public
final
false
static
false

evaluateExpr

evaluateExpr(  $expr,  $select = null ) :
Arguments
$expr
$select
Details
visibility
public
final
false
static
false

executeSql

executeSql(  $sql ) :
Arguments
$sql
Details
visibility
public
final
false
static
false

export

export(  $format,  $select = array,  $options = array ) :
Arguments
$format
$select
$options
Details
visibility
public
final
false
static
false

fetchColumnByPrimaryId

fetchColumnByPrimaryId(  $column,  $id ) :
Arguments
$column
$id
Details
visibility
public
final
false
static
false

fetchColumnsByPrimaryId

fetchColumnsByPrimaryId(  $columns,  $id ) :
Arguments
$columns
$id
Details
visibility
public
final
false
static
false

find

find(  $id ) :
Arguments
$id
Details
visibility
public
final
false
static
false

getAdapter

getAdapter( ) :
Details
visibility
public
final
false
static
false

getColumnType

getColumnType(  $col ) :
Arguments
$col
Details
visibility
public
final
false
static
false

getExprValue

getExprValue(  $row,  $name ) :
Arguments
$row
$name
Details
visibility
public
final
false
static
false

getIds

getIds(  $select = array,  $order = null,  $limit = null,  $start = null ) :
Arguments
$select
$order
$limit
$start
Details
visibility
public
final
false
static
false

getPrimaryKey

getPrimaryKey( ) :
Details
visibility
public
final
false
static
false

getRow

getRow(  $select ) : \Kwf_Model_Row_Interface

Arguments
$select
Details
visibility
public
final
false
static
false

getRowByProxiedRow

getRowByProxiedRow(  $proxiedRow ) :
Arguments
$proxiedRow
Details
visibility
public
final
false
static
false

getRows

getRows(  $where = array,  $order = null,  $limit = null,  $start = null ) :
Arguments
$where
$order
$limit
$start
Details
visibility
public
final
false
static
false

getSqlForSelect

getSqlForSelect(  $select ) :
Arguments
$select
Details
visibility
public
final
false
static
false

getSupportedImportExportFormats

getSupportedImportExportFormats( ) :
Details
visibility
public
final
false
static
false

getTable

getTable( ) :
Details
visibility
public
final
false
static
false

getTableName

getTableName( ) :
Details
visibility
public
final
false
static
false

getUniqueIdentifier

getUniqueIdentifier( ) : string

Output
string
Details
visibility
public
final
false
static
false

import

import(  $format,  $data,  $options = array ) :
Arguments
$format
$data
$options
Details
visibility
public
final
false
static
false

isEqual

isEqual(  $other ) :
Arguments
$other
Details
visibility
public
final
false
static
false

select

select(  $where = array,  $order = null,  $limit = null,  $start = null ) : \Kwf_Model_Select

Arguments
$where
$order
$limit
$start
Details
visibility
public
final
false
static
false

updateRows

updateRows(  $data,  $where ) :
Arguments
$data
$where
Details
visibility
public
final
false
static
false

writeBuffer

writeBuffer( ) :
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox 0.12.3.