Slouzi k ulehceni prace pri sestavovani dotazu ve QueryFactory
◆ __construct()
◆ getClassCoumnName()
| getClassCoumnName |
( |
|
$className, |
|
|
|
$propertyName, |
|
|
|
$alias = NULL |
|
) |
| |
vrati nazev sloupce ve tvaru $alias.column_name kde column_name odpovida $propertyName ve tride
- Parameters
-
| type | $class | |
| type | $propertyName | |
| type | $alias | |
◆ getClassProperties()
| getClassProperties |
( |
|
$alias = NULL | ) |
|
vrati cast dotazu po select ve tvaru "$alias.conum_name1 as propertyName1, $alias.conum_name2 as propertyName2, ... "
- Parameters
-
- Returns
- string
◆ getClassPropertyPDODataType()
| getClassPropertyPDODataType |
( |
|
$className, |
|
|
|
$propertyName |
|
) |
| |
◆ getClassTableName()
| getClassTableName |
( |
|
$className, |
|
|
|
$alias = NULL |
|
) |
| |
- Parameters
-
| class | Jmemo tridy pro kterou se ma bratit |
- Returns
- string nazev tabulky
◆ getCoumnName()
| getCoumnName |
( |
|
$propertyName, |
|
|
|
$alias = NULL |
|
) |
| |
vrati nazev sloupce ve tvaru $alias.column_name kde column_name odpovida $propertyName ve tride
- Parameters
-
| type | $propertyName | jmeno property, pro kteru ze ma najit |
| type | $alias | |
◆ getCountAlias()
vraci pod jakym aliasem se vraci pocet radku v count dotazu
- Returns
- string
◆ getInParamersNames()
| getInParamersNames |
( |
|
$index | ) |
|
vrati expandovana jmena pro vlozeni do in casti sql dotazu parametr pro tento dotaz musi byt pole
- Parameters
-
| integer | string | $index | na jakem indexu se parameter |
- Returns
- string parametr, ktery se ma vlozit do sql
◆ getParameterName()
| getParameterName |
( |
|
$index | ) |
|
vrati jmeno pod jakym ma byt zadan parametr v sql dotazu
- Parameters
-
| integer | string | $index | na jakem indexu se parameter u find*, update*, delete jsou indexy cisla u custom to mohou byt i stringy |
- Returns
- string parametr, ktery se ma vlozit do sql
◆ getPropertyPDODataType()
| getPropertyPDODataType |
( |
|
$propertyName | ) |
|
◆ getQueryParameters()
- Returns
- array vraci pole parametru, kde jsou parametry pod klici pod kterymi se maji predat do statementu
◆ getTableName()
| getTableName |
( |
|
$alias = NULL | ) |
|
vraci jmeno tabulku pripadne s aliasem
- Parameters
-
| string | jaky alias se ma pouzit |
- Returns
- string nazev tabulky
◆ $classDescription
◆ $countAlias
◆ $dBConnection
◆ $inExpandedParameters
◆ $parameters
◆ $repetedParameters
The documentation for this class was generated from the following file: