db
ClassDescription Class Reference

Public Member Functions

 __construct (DBConnectionCommon $dbConnection, $className)
 
 getClassName ()
 
 getTableName ()
 
 getPropertiesToColumnsTranslation ()
 
 getIdPropertyName ()
 
 getIdColumnName ()
 
 getColumnName ($propertyName)
 
 getPropertyValue ($object, $propertyName)
 
 setPropertyValue ($object, $propertyName, $propertyValue)
 
 getQueryString ($qureyFactory, $methodName, $parametersCount, $queryHelpers)
 
 getCustomQueryString ($qureyFactory, $methodName, array $parameters, array $queryTypeParameters, $queryHelpers)
 
 getPropertyDescription ($propertyName)
 
 isPropertyFile ($propertyName)
 

Protected Member Functions

 initProperities ($className)
 
 getCommentDataType ($property)
 
 getPropertyDescriptions ($propertyDefinitions, $propertyTypes)
 
 getDocReader ()
 

Protected Attributes

 $dbConnection
 
 $namingStrategy
 
 $className
 
 $classReflectionClass
 
 $reflectionProperties
 
 $tableName
 
 $propertyDescriptions = []
 
 $propertiesToColumnsTranslation = []
 
 $idPropertyName = "id"
 
 $log = NULL
 

Static Protected Attributes

static $docReader = NULL
 
static $scalarTypes
 

Detailed Description

Obsahuje popis tridy potrebny pro vytvoreni dotazu a spetne naplneni objektu a podobjedku a kolekci

Constructor & Destructor Documentation

◆ __construct()

__construct ( DBConnectionCommon  $dbConnection,
  $className 
)
Parameters
DBConnectionCommon$dbConnection
DBObject$className
Exceptions
Exception

Member Function Documentation

◆ getClassName()

getClassName ( )

◆ getColumnName()

getColumnName (   $propertyName)

◆ getCommentDataType()

getCommentDataType (   $property)
protected

vytahne datovy typ z komentare u property v mapovane tride

Parameters
type$property
Returns
type

◆ getCustomQueryString()

getCustomQueryString (   $qureyFactory,
  $methodName,
array  $parameters,
array  $queryTypeParameters,
  $queryHelpers 
)

pro danou metodu vrati retezec sql dotazu

Parameters
type$methodName
type$parametersCount
type$queryHelpers
Returns
type
Exceptions

◆ getDocReader()

getDocReader ( )
protected

◆ getIdColumnName()

getIdColumnName ( )

nazev sloupce, ktery obsahuje id

Returns
type

◆ getIdPropertyName()

getIdPropertyName ( )

nazev property, ktera obsahuje id objektu

Returns
type

◆ getPropertiesToColumnsTranslation()

getPropertiesToColumnsTranslation ( )

vrati preklad vsech poperit objektu na jmena sloupcu

Returns
array

◆ getPropertyDescription()

getPropertyDescription (   $propertyName)
Parameters
type$propertyName
Returns
AbstractPropertyDescription
Exceptions
Exception

◆ getPropertyDescriptions()

getPropertyDescriptions (   $propertyDefinitions,
  $propertyTypes 
)
protected
Parameters
AbstractDefinition$propertyDefinition
class | string$propertyType

◆ getPropertyValue()

getPropertyValue (   $object,
  $propertyName 
)

returns value of property with name $propertyName from $object

Parameters
object$object
string$propertyName
Returns
mixed Description

◆ getQueryString()

getQueryString (   $qureyFactory,
  $methodName,
  $parametersCount,
  $queryHelpers 
)

pro danou metodu vrati retezec sql dotazu

Parameters
type$methodName
type$parametersCount
type$queryHelpers
Returns
type
Exceptions

◆ getTableName()

getTableName ( )

vrati nazev tabulky pro dany objekt

Returns
type

◆ initProperities()

initProperities (   $className)
protected

zpracuje pojmenovani properit

Parameters
class$className

◆ isPropertyFile()

isPropertyFile (   $propertyName)
Parameters
string$classNameDescription
string$propertyName
Returns
true if property is filek

◆ setPropertyValue()

setPropertyValue (   $object,
  $propertyName,
  $propertyValue 
)
Parameters
mixed$objectobject property to be set to
strinc$propertyNamename of the property to be set
mixed$propertyValuevalue of property to be set

Member Data Documentation

◆ $className

$className
protected

◆ $classReflectionClass

$classReflectionClass
protected

◆ $dbConnection

$dbConnection
protected

◆ $docReader

$docReader = NULL
staticprotected

◆ $idPropertyName

$idPropertyName = "id"
protected

◆ $log

$log = NULL
protected

◆ $namingStrategy

$namingStrategy
protected

◆ $propertiesToColumnsTranslation

$propertiesToColumnsTranslation = []
protected

◆ $propertyDescriptions

$propertyDescriptions = []
protected

◆ $reflectionProperties

$reflectionProperties
protected

◆ $scalarTypes

$scalarTypes
staticprotected
Initial value:
= array(
'bool',
'boolean',
'string',
'int',
'integer',
'float',
'double',
'number'
)

◆ $tableName

$tableName
protected

The documentation for this class was generated from the following file: