Model/Abstract.php
- package
- Model
- Classes
- Kwf_Model_Abstract
Description
\Kwf_Model_Abstract
- Implements
- \Kwf_Model_Interface
- package
- Model
- Properties
- $_columnMappings
- $_default
- $_dependentModels
- $_exprs
- $_filters
- $_hasDeletedFlag
- $_proxyContainerModels
- $_referenceMap
- $_rowClass
- $_rows
- $_rowsetClass
- $_siblingModels
- $_supportedImportExportFormats
- $_toStringField
- Methods
- __construct
- __destruct
- _afterDeleteRows
- _afterImport
- _createDependentModel
- _createRow
- _getOwnColumns
- _init
- _optimalImportExportFormat
- _setupFilters
- addProxyContainerModel
- callMultiple
- childModelRowUpdated
- clearAllRows
- clearInstances
- clearRows
- convertValueToType
- copyDataFromModel
- countRows
- createRow
- deleteRows
- dependentModelRowUpdated
- evaluateExpr
- export
- fetchAll
- fetchColumnByPrimaryId
- fetchColumnsByPrimaryId
- fetchCount
- find
- freeMemory
- getColumnMapping
- getColumnMappings
- getColumnType
- getColumns
- getDefault
- getDependentModel
- getDependentModelWithDependentOf
- getDependentModels
- getDependentRuleByModelClass
- getDependentRulesByModelClass
- getEventSubscribers
- getExpr
- getExprColumns
- getExprValue
- getFactoryConfig
- getFactoryId
- getFilters
- getIds
- getInstance
- getOwnColumns
- getProxyContainerModels
- getReference
- getReferenceByModelClass
- getReferenceRuleByModelClass
- getReferenceRulesByModelClass
- getReferencedModel
- getReferences
- getRow
- getRowsetClass
- getSiblingModels
- getSupportedImportExportFormats
- getToStringField
- getUniqueIdentifier
- hasColumn
- hasColumnMappings
- hasDeletedFlag
- import
- insertRow
- isEqual
- select
- setDefault
- setFactoryConfig
- toDebug
- transformColumnName
- updateRow
- updateRows
- writeBuffer
Description
Properties
$_columnMappings
$_columnMappings = 'array'
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
$_default
$_default = 'array'
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
$_dependentModels
$_dependentModels = 'array'
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
$_exprs
$_exprs = 'array'
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
$_filters
$_filters = 'array'
Row-Filters für automatisch befüllte Spalten
Anwendungsbeispiele: _filters = 'filename' //verwendet autom. Kwf_Filter_Ascii _filters = array('filename') //verwendet autom. Kwf_Filter_Ascii _filters = array('pos') //Kwf_Filter_Row_Numberize _filters = array('pos' => 'MyFilter') _filters = array('pos' => new MyFilter($settings))
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
$_hasDeletedFlag
$_hasDeletedFlag = 'false'
Details
- visibility
- protected
- default
- false
- final
- false
- static
- false
$_proxyContainerModels
$_proxyContainerModels = 'array'
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
$_referenceMap
$_referenceMap = 'array'
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
$_rowClass
$_rowClass = 'Kwf_Model_Row_Abstract'
Details
- visibility
- protected
- default
- Kwf_Model_Row_Abstract
- final
- false
- static
- false
$_rows
$_rows = 'array'
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
$_rowsetClass
$_rowsetClass = 'Kwf_Model_Rowset_Abstract'
Details
- visibility
- protected
- default
- Kwf_Model_Rowset_Abstract
- final
- false
- static
- false
$_siblingModels
$_siblingModels = 'array'
Details
- visibility
- protected
- default
- array
- 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
$_toStringField
$_toStringField = ''
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
_afterDeleteRows
_afterDeleteRows(
$where
)
:
Arguments
- $where
Details
- visibility
- protected
- final
- false
- static
- false
_afterImport
_afterImport(
$format, $data, $options
)
:
Arguments
- $format
- $data
- $options
Details
- visibility
- protected
- final
- false
- static
- false
_createDependentModel
_createDependentModel(
$rule
)
:
Arguments
- $rule
Details
- visibility
- protected
- final
- false
- static
- false
_createRow
_createRow(
$data
=
array, $rowConfig
=
array
)
:
Arguments
- $data
- $rowConfig
Details
- visibility
- protected
- final
- false
- static
- false
_getOwnColumns
_getOwnColumns(
)
:
Details
- visibility
- protected
- final
- false
- static
- false
_init
_init(
)
:
Details
- visibility
- protected
- final
- false
- static
- false
_optimalImportExportFormat
_optimalImportExportFormat(
$model1, $model2
)
:
Arguments
- $model1
- $model2
Details
- visibility
- public
- final
- true
- static
- true
_setupFilters
_setupFilters(
)
:
Details
- visibility
- protected
- final
- false
- static
- false
addProxyContainerModel
addProxyContainerModel(
$m
)
:
Arguments
- $m
Details
- visibility
- public
- final
- false
- static
- false
callMultiple
callMultiple(
$call
)
:
Arguments
- $call
Details
- visibility
- public
- final
- false
- static
- false
childModelRowUpdated
childModelRowUpdated(
$row, $action
)
:
Arguments
- $row
- $action
Details
- visibility
- public
- final
- false
- static
- false
- internal
clearAllRows
clearAllRows(
)
:
Details
- visibility
- public
- final
- false
- static
- true
clearInstances
clearInstances(
)
:
Details
- visibility
- public
- final
- false
- static
- true
clearRows
clearRows(
)
:
Kann zum Speicher-Sparen aufgerufen werden
Details
- visibility
- public
- final
- false
- static
- false
- deprecated
- internal
convertValueToType
convertValueToType(
$value, $type
)
:
Arguments
- $value
- $type
Details
- visibility
- public
- final
- false
- static
- true
copyDataFromModel
copyDataFromModel(
$sourceModel, $select
=
null, $importOptions
=
array
)
:
Arguments
- $sourceModel
- $select
- $importOptions
Details
- visibility
- public
- final
- false
- static
- false
countRows
countRows(
$select
=
array
)
:
Arguments
- $select
Details
- visibility
- public
- final
- false
- static
- false
createRow
createRow(
$data
=
array
)
:
\Kwf_Model_Row_Interface
Arguments
- $data
Output
Details
- visibility
- public
- final
- false
- static
- false
deleteRows
deleteRows(
$where
)
:
Arguments
- $where
Details
- visibility
- public
- final
- false
- static
- false
dependentModelRowUpdated
dependentModelRowUpdated(
$row, $action
)
:
Arguments
- $row
- $action
Details
- visibility
- public
- final
- false
- static
- false
- internal
evaluateExpr
evaluateExpr(
$expr, $select
=
null
)
:
Arguments
- $expr
- $select
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
fetchAll
fetchAll(
$where
=
null, $order
=
null, $limit
=
null, $start
=
null
)
:
Arguments
- $where
- $order
- $limit
- $start
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
fetchCount
fetchCount(
$where
=
array
)
:
Arguments
- $where
Details
- visibility
- public
- final
- false
- static
- false
find
find(
$id
)
:
Arguments
- $id
Details
- visibility
- public
- final
- false
- static
- false
freeMemory
freeMemory(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getColumnMapping
getColumnMapping(
$mapping, $column
)
:
Arguments
- $mapping
- $column
Details
- visibility
- public
- final
- false
- static
- false
getColumnMappings
getColumnMappings(
$mapping
)
:
Arguments
- $mapping
Details
- visibility
- public
- final
- false
- static
- false
getColumnType
getColumnType(
$col
)
:
Arguments
- $col
Details
- visibility
- public
- final
- false
- static
- false
getColumns
getColumns(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getDefault
getDefault(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getDependentModel
getDependentModel(
$rule
)
:
Arguments
- $rule
Details
- visibility
- public
- final
- false
- static
- false
getDependentModelWithDependentOf
getDependentModelWithDependentOf(
$rule
)
:
Arguments
- $rule
Details
- visibility
- public
- final
- false
- static
- false
getDependentModels
getDependentModels(
)
:
Details
- visibility
- public
- final
- false
- static
- false
- internal
- return value will change, don't use it
getDependentRuleByModelClass
getDependentRuleByModelClass(
$modelClassName
)
:
Arguments
- $modelClassName
Details
- visibility
- public
- final
- false
- static
- false
getDependentRulesByModelClass
getDependentRulesByModelClass(
$modelClassName
)
:
Arguments
- $modelClassName
Details
- visibility
- public
- final
- false
- static
- false
getEventSubscribers
getEventSubscribers(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getExpr
getExpr(
$name
)
:
Arguments
- $name
Details
- visibility
- public
- final
- false
- static
- false
- internal
getExprColumns
getExprColumns(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getExprValue
getExprValue(
$row, $name
)
:
Arguments
- $row
- $name
Details
- visibility
- public
- final
- false
- static
- false
getFactoryConfig
getFactoryConfig(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getFactoryId
getFactoryId(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getFilters
getFilters(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getIds
getIds(
$where
=
null, $order
=
null, $limit
=
null, $start
=
null
)
:
Arguments
- $where
- $order
- $limit
- $start
Details
- visibility
- public
- final
- false
- static
- false
getInstance
getInstance(
\Kwf_Model_Abstract|string $modelName
)
:
\Kwf_Model_Interface
Arguments
- $modelName
- \Kwf_Model_Abstractstring
wenn string: entweder aus config (models.modelName) oder Klassenname von Model
Output
Details
- visibility
- public
- final
- false
- static
- true
getOwnColumns
getOwnColumns(
)
:
Details
- visibility
- public
- final
- true
- static
- false
getProxyContainerModels
getProxyContainerModels(
)
:
Details
- visibility
- public
- final
- false
- static
- false
- internal
getReference
getReference(
$rule
)
:
Arguments
- $rule
Details
- visibility
- public
- final
- false
- static
- false
getReferenceByModelClass
getReferenceByModelClass(
$modelClassName, $rule
)
:
Arguments
- $modelClassName
- $rule
Details
- visibility
- public
- final
- false
- static
- false
getReferenceRuleByModelClass
getReferenceRuleByModelClass(
$modelClassName
)
:
Arguments
- $modelClassName
Details
- visibility
- public
- final
- false
- static
- false
getReferenceRulesByModelClass
getReferenceRulesByModelClass(
$modelClassName
)
:
Arguments
- $modelClassName
Details
- visibility
- public
- final
- false
- static
- false
getReferencedModel
getReferencedModel(
$rule
)
:
Arguments
- $rule
Details
- visibility
- public
- final
- false
- static
- false
getReferences
getReferences(
)
:
Namen der verfügbaren References
Details zu einer Reference über getReferencedModel() bzw. getReference() holen
Details
- visibility
- public
- final
- false
- static
- false
getRow
getRow(
$select
)
:
\Kwf_Model_Row_Interface
Arguments
- $select
Output
Details
- visibility
- public
- final
- false
- static
- false
getRowsetClass
getRowsetClass(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getSiblingModels
getSiblingModels(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getSupportedImportExportFormats
getSupportedImportExportFormats(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getToStringField
getToStringField(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getUniqueIdentifier
getUniqueIdentifier(
)
:
string
Output
- string
Details
- visibility
- public
- final
- false
- static
- false
hasColumn
hasColumn(
$col
)
:
Arguments
- $col
Details
- visibility
- public
- final
- false
- static
- false
hasColumnMappings
hasColumnMappings(
$mapping
)
:
Arguments
- $mapping
Details
- visibility
- public
- final
- false
- static
- false
hasDeletedFlag
hasDeletedFlag(
)
:
Details
- visibility
- public
- final
- false
- static
- false
import
import(
$format, $data, $options
=
array
)
:
Arguments
- $format
- $data
- $options
Details
- visibility
- public
- final
- false
- static
- false
insertRow
insertRow(
$data
)
:
Arguments
- $data
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
Output
Details
- visibility
- public
- final
- false
- static
- false
setDefault
setDefault(
$default
)
:
Arguments
- $default
Details
- visibility
- public
- final
- false
- static
- false
setFactoryConfig
setFactoryConfig(
$factoryConfig
)
:
Arguments
- $factoryConfig
Details
- visibility
- public
- final
- false
- static
- false
toDebug
toDebug(
)
:
Details
- visibility
- public
- final
- false
- static
- false
transformColumnName
transformColumnName(
$c
)
:
Arguments
- $c
Details
- visibility
- public
- final
- false
- static
- false
updateRow
updateRow(
$data
)
:
Arguments
- $data
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