driver for jDaoCompiler
It is called by jDaoCompiler
| package |
jelix |
|---|---|
| subpackage |
db_driver |
__construct(\jSelectorDao $selector, \jDbTools $tools, \jDaoParser $daoParser)
_captureAll( &$field)
_captureBinaryField( &$field)
_captureFieldToUpdate( &$field)
_captureFieldToUpdateOnUpdate( &$field)
_capturePrimaryFieldsExcludeAutoIncrement( &$field)
_capturePrimaryFieldsExcludePk( &$field)
_capturePrimaryTable( &$field)
_encloseName( $name)
_getPrimaryFieldsList()
_preparePHPCallbackExpr( $field)
_preparePHPExpr( $expr, $field, $checknull = true, $forCondition = '')
_prepareValues( $fieldList, $pattern = '', $prefixfield = '')
_writeFieldNamesWith( $start = '', $end = '', $beetween = '', $using = null)
_writeFieldsInfoWith(string $info, string $start = '', string $end = '', string $beetween = '', array<mixed,\jDaoProperty> $using = null) : string
ex: give 'name' as $info, it will output the result of $field->name
| see | \jDaoProperty |
|---|
stringproperty to get from objects in $using
stringstring to add before the info
stringstring to add after the info
stringstring to add between each info
stringlist of field names seperated by the $between character
buildClasses()
buildCountUserQuery( $method, &$src, &$allField)
buildDeleteUserQuery( $method, &$src, &$primaryFields)
buildEndOfClass()
buildFromWhereClause()
buildInsertMethod( $pkFields) : string
stringthe source of the method
buildOuterJoins( &$tables, $primaryTableName) : array
array[0]=> the part of the FROM clause, [1]=> the part to add to the WHERE clause when needed
buildSelectClause( $distinct = false) : string
stringthe select clause.
buildSelectPattern( $pattern, $table, $fieldname, $propname)
buildSelectUserQuery( $method, &$src, &$allField)
buildUpdateAutoIncrementPK( $pkai)
buildUpdateMethod( $pkFields) : string
stringthe source of the method
buildUpdateUserQuery( $method, &$src, &$primaryFields)
buildUserMethods() : string
stringthe source of the methods
getAutoIncrementPKField( $using = null)
parseSQLFunction( $expression)
propertiesListForInsert :
_DaoRecordClassName : string
| var |
|---|
string
_DaoClassName : string
| var |
|---|
string
aliasWord :
_daoId :
_daoPath :
_dbType :
tableRealName :
tableRealNameEsc :
sqlWhereClause :
sqlFromClause :
sqlSelectClause :