Documente Academic
Documente Profesional
Documente Cultură
Doctrine 1.1
Version: api-1.1-2009-05-13
Table of Contents ii
Table of Contents
Doctrine_Parser_YamlSf.................................................................................. 68
Method Summary .................................................................................................... 68
Method Details......................................................................................................... 68
dump................................................................................................................................... 68
load ..................................................................................................................................... 68
Doctrine_Parser_YamlSf_Dumper ................................................................... 69
Method Summary .................................................................................................... 69
Method Details......................................................................................................... 69
dump................................................................................................................................... 69
Doctrine_Parser_YamlSf_Inline....................................................................... 69
Method Summary .................................................................................................... 69
Method Details......................................................................................................... 70
dump................................................................................................................................... 70
load ..................................................................................................................................... 70
evaluateScalar .................................................................................................................... 70
parseSequence ................................................................................................................... 70
parseMapping..................................................................................................................... 71
parseScalar......................................................................................................................... 71
dumpArray.......................................................................................................................... 71
getTimestampRegex ........................................................................................................... 71
parseQuotedScalar ............................................................................................................. 71
Doctrine_Parser_YamlSf_Parser ...................................................................... 72
Method Summary .................................................................................................... 72
Method Details......................................................................................................... 72
getNextEmbedBlock ........................................................................................................... 72
getRealCurrentLineNb ....................................................................................................... 72
parseValue.......................................................................................................................... 73
isCurrentLineEmpty ........................................................................................................... 73
isCurrentLineBlank ............................................................................................................ 73
parse................................................................................................................................... 73
parseFoldedScalar.............................................................................................................. 73
getCurrentLineIndentation ................................................................................................ 74
__construct ......................................................................................................................... 74
isCurrentLineComment ...................................................................................................... 74
isNextLineIndented ............................................................................................................ 74
cleanup ............................................................................................................................... 74
moveToPreviousLine .......................................................................................................... 74
moveToNextLine................................................................................................................. 74
Doctrine .......................................................................................................... 75
Method Summary .................................................................................................... 75
Method Details......................................................................................................... 76
generateSqlFromModels .................................................................................................... 76
dump................................................................................................................................... 76
isValidModelClass .............................................................................................................. 76
generateYamlFromModels ................................................................................................. 77
generateMigrationsFromDb ............................................................................................... 77
getConnectionByTableName .............................................................................................. 77
debug.................................................................................................................................. 77
loadModel ........................................................................................................................... 77
getLoadedModels ............................................................................................................... 77
createDatabases ................................................................................................................. 78
autoload .............................................................................................................................. 78
generateMigrationsFromDiff.............................................................................................. 78
dumpData ........................................................................................................................... 78
initializeModels .................................................................................................................. 78
filterInvalidModels ............................................................................................................. 79
compile ............................................................................................................................... 79
generateMigrationsFromModels........................................................................................ 79
getTable.............................................................................................................................. 79
__construct ......................................................................................................................... 79
getPath ............................................................................................................................... 79
getLoadedModelFiles ......................................................................................................... 80
generateModelsFromYaml ................................................................................................. 80
loadData ............................................................................................................................. 80
dropDatabases.................................................................................................................... 80
generateModelsFromDb..................................................................................................... 80
createTablesFromArray...................................................................................................... 81
generateMigrationClass ..................................................................................................... 81
generateYamlFromDb ........................................................................................................ 81
createTablesFromModels ................................................................................................... 81
migrate ............................................................................................................................... 81
generateSqlFromArray....................................................................................................... 82
loadModels ......................................................................................................................... 82
Doctrine_Access .............................................................................................. 82
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................... 82
Method Details......................................................................................................... 83
__isset ................................................................................................................................. 83
add...................................................................................................................................... 83
offsetUnset ......................................................................................................................... 83
offsetSet ............................................................................................................................. 83
offsetGet ............................................................................................................................. 83
contains .............................................................................................................................. 83
get....................................................................................................................................... 84
offsetExists ......................................................................................................................... 84
__get ................................................................................................................................... 84
__unset................................................................................................................................ 84
setArray .............................................................................................................................. 84
set ....................................................................................................................................... 84
remove................................................................................................................................ 85
__set.................................................................................................................................... 84
Doctrine_Adapter_Db2 .................................................................................... 85
Method Summary .................................................................................................... 85
Method Details......................................................................................................... 86
getQuoteIdentifierSymbol .................................................................................................. 86
_commit .............................................................................................................................. 86
_setExecuteMode................................................................................................................ 86
setFetchMode ..................................................................................................................... 86
_getExecuteMode ............................................................................................................... 86
__construct ......................................................................................................................... 86
prepare ............................................................................................................................... 87
closeConnection ................................................................................................................. 87
_connect.............................................................................................................................. 87
_quote ................................................................................................................................. 87
_beginTransaction .............................................................................................................. 87
_rollBack ............................................................................................................................. 87
Doctrine_Adapter_Interface ............................................................................ 88
Method Summary .................................................................................................... 88
Method Details......................................................................................................... 88
exec .................................................................................................................................... 88
commit................................................................................................................................ 88
beginTransaction................................................................................................................ 88
errorInfo ............................................................................................................................. 88
rollBack .............................................................................................................................. 89
lastInsertId ......................................................................................................................... 89
query................................................................................................................................... 89
errorCode ........................................................................................................................... 89
quote................................................................................................................................... 89
prepare ............................................................................................................................... 89
Doctrine_Adapter_Mock .................................................................................. 89
Method Summary .................................................................................................... 89
Method Details......................................................................................................... 90
pop...................................................................................................................................... 90
exec .................................................................................................................................... 90
getName ............................................................................................................................. 90
getAll .................................................................................................................................. 90
commit................................................................................................................................ 91
beginTransaction................................................................................................................ 91
errorInfo ............................................................................................................................. 91
rollBack .............................................................................................................................. 91
lastInsertId ......................................................................................................................... 91
addQuery ............................................................................................................................ 91
query................................................................................................................................... 91
errorCode ........................................................................................................................... 91
quote................................................................................................................................... 92
sqliteCreateFunction .......................................................................................................... 92
__construct ......................................................................................................................... 92
getAttribute ........................................................................................................................ 92
count................................................................................................................................... 92
prepare ............................................................................................................................... 92
forceLastInsertIdFail.......................................................................................................... 92
forceException.................................................................................................................... 92
setAttribute ........................................................................................................................ 93
Doctrine_Adapter_Mysqli ................................................................................ 93
Method Summary .................................................................................................... 93
Method Details......................................................................................................... 93
_commit .............................................................................................................................. 93
lastInsertId ......................................................................................................................... 94
prepare ............................................................................................................................... 94
closeConnection ................................................................................................................. 94
_connect.............................................................................................................................. 94
_beginTransaction .............................................................................................................. 94
_rollBack ............................................................................................................................. 94
Doctrine_Adapter_Oracle ................................................................................ 95
Method Summary .................................................................................................... 95
Method Details......................................................................................................... 95
exec .................................................................................................................................... 95
commit................................................................................................................................ 95
beginTransaction................................................................................................................ 96
errorInfo ............................................................................................................................. 96
rollBack .............................................................................................................................. 96
lastInsertId ......................................................................................................................... 96
query................................................................................................................................... 96
errorCode ........................................................................................................................... 96
quote................................................................................................................................... 96
__construct ......................................................................................................................... 96
getAttribute ........................................................................................................................ 97
prepare ............................................................................................................................... 97
getConnection .................................................................................................................... 97
setAttribute ........................................................................................................................ 97
Doctrine_Adapter_Statement .......................................................................... 97
Method Summary .................................................................................................... 97
Method Details......................................................................................................... 98
rowCount ............................................................................................................................ 98
errorInfo ............................................................................................................................. 98
setFetchMode ..................................................................................................................... 98
errorCode ........................................................................................................................... 98
fetch.................................................................................................................................... 98
columnCount ...................................................................................................................... 99
execute ............................................................................................................................... 99
bindValue............................................................................................................................ 99
nextRowset ......................................................................................................................... 99
Doctrine_Adapter_Statement_Interface .......................................................... 99
Method Summary .................................................................................................... 99
Method Details....................................................................................................... 100
rowCount .......................................................................................................................... 100
closeCursor....................................................................................................................... 100
fetchColumn ..................................................................................................................... 101
errorInfo ........................................................................................................................... 101
fetchObject ....................................................................................................................... 101
setFetchMode ................................................................................................................... 101
errorCode ......................................................................................................................... 101
fetch.................................................................................................................................. 102
columnCount .................................................................................................................... 102
bindColumn ...................................................................................................................... 102
bindParam ........................................................................................................................ 103
getAttribute ...................................................................................................................... 103
execute ............................................................................................................................. 103
getColumnMeta ................................................................................................................ 104
bindValue.......................................................................................................................... 104
nextRowset ....................................................................................................................... 104
getMaxVersion.................................................................................................................. 117
Doctrine_AuditLog_Listener.......................................................................... 118
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 118
Method Details....................................................................................................... 118
preDelete .......................................................................................................................... 118
_getNextVersion ............................................................................................................... 118
preInsert........................................................................................................................... 118
__construct ....................................................................................................................... 119
postInsert ......................................................................................................................... 119
preUpdate......................................................................................................................... 119
Doctrine_Builder ........................................................................................... 119
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 119
Method Details....................................................................................................... 119
varExport.......................................................................................................................... 119
Doctrine_Cache ............................................................................................. 120
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 120
Method Details....................................................................................................... 121
getOption.......................................................................................................................... 121
pop.................................................................................................................................... 121
isSuccessful ...................................................................................................................... 121
getAll ................................................................................................................................ 121
add.................................................................................................................................... 121
appendStats...................................................................................................................... 121
clean ................................................................................................................................. 122
preFetch ........................................................................................................................... 122
getDriver .......................................................................................................................... 122
__construct ....................................................................................................................... 122
preFetchAll ....................................................................................................................... 122
count................................................................................................................................. 122
preQuery........................................................................................................................... 122
setOption .......................................................................................................................... 123
getIterator ........................................................................................................................ 123
preExecute ....................................................................................................................... 123
reset.................................................................................................................................. 123
readStats .......................................................................................................................... 123
Doctrine_Cache_Apc ...................................................................................... 124
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 124
Method Details....................................................................................................... 124
delete ................................................................................................................................ 124
contains ............................................................................................................................ 124
save................................................................................................................................... 125
fetch.................................................................................................................................. 125
__construct ....................................................................................................................... 125
Doctrine_Cache_Array ................................................................................... 125
Method Summary .................................................................................................. 125
Method Details....................................................................................................... 126
delete ................................................................................................................................ 126
save................................................................................................................................... 146
getSnapshot...................................................................................................................... 146
processDiff........................................................................................................................ 146
setData ............................................................................................................................. 146
takeSnapshot .................................................................................................................... 146
getReference .................................................................................................................... 147
getLast.............................................................................................................................. 147
getTable............................................................................................................................ 147
__construct ....................................................................................................................... 147
setReference..................................................................................................................... 147
search ............................................................................................................................... 147
getDeleteDiff .................................................................................................................... 147
count................................................................................................................................. 147
synchronizeFromArray ..................................................................................................... 148
getFirst ............................................................................................................................. 148
end.................................................................................................................................... 148
getIterator ........................................................................................................................ 148
set ..................................................................................................................................... 148
getData ............................................................................................................................. 148
setKeyColumn................................................................................................................... 148
free ................................................................................................................................... 148
remove.............................................................................................................................. 149
exportTo ........................................................................................................................... 149
getPrimaryKeys ................................................................................................................ 149
fromArray ......................................................................................................................... 149
toArray.............................................................................................................................. 149
unserialize ........................................................................................................................ 149
synchronizeWithArray ...................................................................................................... 149
getKeys ............................................................................................................................. 150
getInsertDiff ..................................................................................................................... 150
Doctrine_Collection_Iterator......................................................................... 150
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 150
Method Details....................................................................................................... 150
key .................................................................................................................................... 150
rewind............................................................................................................................... 151
current.............................................................................................................................. 151
__construct ....................................................................................................................... 151
next................................................................................................................................... 151
Doctrine_Collection_Iterator_Expandable .................................................... 151
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 151
Method Details....................................................................................................... 151
valid .................................................................................................................................. 151
Doctrine_Collection_Iterator_Normal ........................................................... 152
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 152
Method Details....................................................................................................... 152
valid .................................................................................................................................. 152
Doctrine_Collection_Iterator_Offset ............................................................. 152
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 152
addListener....................................................................................................................... 160
getParamNamespaces ...................................................................................................... 160
setAttribute ...................................................................................................................... 160
setEventListener .............................................................................................................. 161
Doctrine_Connection..................................................................................... 161
Inheritance................................................................................................................. 0
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 161
Method Details....................................................................................................... 165
incrementQueryCount ...................................................................................................... 165
getTables .......................................................................................................................... 165
getDriverName ................................................................................................................. 165
update............................................................................................................................... 165
fetchArray......................................................................................................................... 165
getDbh .............................................................................................................................. 165
getOption.......................................................................................................................... 166
exec .................................................................................................................................. 166
getName ........................................................................................................................... 166
generateUniqueIndexName ............................................................................................. 166
getTmpConnection ........................................................................................................... 166
beginInternalTransaction ................................................................................................. 166
getCacheDriver ................................................................................................................ 166
clear.................................................................................................................................. 167
fetchColumn ..................................................................................................................... 167
commit.............................................................................................................................. 167
createQuery...................................................................................................................... 167
fetchBoth .......................................................................................................................... 167
beginTransaction.............................................................................................................. 168
delete ................................................................................................................................ 168
convertBooleans ............................................................................................................... 168
select ................................................................................................................................ 168
setName ........................................................................................................................... 168
errorInfo ........................................................................................................................... 169
getAvailableDrivers .......................................................................................................... 169
getOptions ........................................................................................................................ 169
dropDatabase ................................................................................................................... 169
rollback............................................................................................................................. 169
serialize ............................................................................................................................ 169
rethrowException ............................................................................................................. 169
lastInsertId ....................................................................................................................... 170
getTransactionLevel ......................................................................................................... 170
__toString ......................................................................................................................... 170
query................................................................................................................................. 170
fetchRow........................................................................................................................... 170
close.................................................................................................................................. 171
__get ................................................................................................................................. 171
supports............................................................................................................................ 171
driverName....................................................................................................................... 171
errorCode ......................................................................................................................... 171
standaloneQuery .............................................................................................................. 171
quote................................................................................................................................. 172
modifyLimitSubquery ....................................................................................................... 172
_generateUniqueName..................................................................................................... 172
fetchOne ........................................................................................................................... 172
getManager ...................................................................................................................... 172
quoteIdentifier.................................................................................................................. 172
getTable............................................................................................................................ 173
__construct ....................................................................................................................... 173
getAttribute ...................................................................................................................... 173
addTable ........................................................................................................................... 173
setDateFormat.................................................................................................................. 173
count................................................................................................................................. 173
execute ............................................................................................................................. 174
insert ................................................................................................................................ 174
connect ............................................................................................................................. 174
generateUniqueRelationForeignKeyName....................................................................... 174
modifyLimitQuery............................................................................................................. 174
replace.............................................................................................................................. 174
quoteMultipleIdentifier .................................................................................................... 175
setOption .......................................................................................................................... 175
getIterator ........................................................................................................................ 175
prepare ............................................................................................................................. 175
getQueryCacheDriver....................................................................................................... 176
flush .................................................................................................................................. 176
fetchAssoc ........................................................................................................................ 176
createDatabase................................................................................................................. 176
queryOne .......................................................................................................................... 176
getResultCacheDriver ...................................................................................................... 176
fetchAll ............................................................................................................................. 177
create................................................................................................................................ 177
unserialize ........................................................................................................................ 177
hasTable ........................................................................................................................... 177
setAttribute ...................................................................................................................... 177
evictTables........................................................................................................................ 177
Doctrine_Connection_Common ..................................................................... 178
Inheritance................................................................................................................. 0
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 178
Method Details....................................................................................................... 178
modifyLimitQuery............................................................................................................. 178
Doctrine_Connection_Db2............................................................................. 178
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 178
Method Details....................................................................................................... 179
modifyLimitQuery............................................................................................................. 179
Doctrine_Connection_Exception ................................................................... 179
Method Summary .................................................................................................. 179
Method Details....................................................................................................... 179
processErrorInfo .............................................................................................................. 179
errorMessage ................................................................................................................... 180
getPortableCode ............................................................................................................... 180
getPortableMessage ......................................................................................................... 180
Doctrine_Connection_Firebird ...................................................................... 180
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 180
Method Details....................................................................................................... 181
setCharset ........................................................................................................................ 181
Doctrine_Connection_Statement................................................................... 196
Method Summary .................................................................................................. 196
Method Details....................................................................................................... 197
rowCount .......................................................................................................................... 197
closeCursor....................................................................................................................... 198
fetchColumn ..................................................................................................................... 198
errorInfo ........................................................................................................................... 198
fetchObject ....................................................................................................................... 198
getStatement .................................................................................................................... 199
setFetchMode ................................................................................................................... 199
errorCode ......................................................................................................................... 199
fetch.................................................................................................................................. 199
columnCount .................................................................................................................... 199
bindColumn ...................................................................................................................... 200
bindParam ........................................................................................................................ 200
getQuery........................................................................................................................... 200
__construct ....................................................................................................................... 200
getAttribute ...................................................................................................................... 201
execute ............................................................................................................................. 201
getColumnMeta ................................................................................................................ 201
getConnection .................................................................................................................. 201
bindValue.......................................................................................................................... 201
nextRowset ....................................................................................................................... 202
fetchAll ............................................................................................................................. 202
setAttribute ...................................................................................................................... 202
Doctrine_Connection_UnitOfWork ................................................................ 203
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 203
Method Details....................................................................................................... 204
update............................................................................................................................... 204
saveAll .............................................................................................................................. 204
processSingleInsert .......................................................................................................... 204
saveAssociations............................................................................................................... 204
delete ................................................................................................................................ 204
saveGraph......................................................................................................................... 204
save................................................................................................................................... 205
_cascadeDelete ................................................................................................................. 205
insert ................................................................................................................................ 205
buildFlushTree ................................................................................................................. 205
saveRelated ...................................................................................................................... 205
Doctrine_Data................................................................................................ 206
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 206
Method Details....................................................................................................... 206
getFormats ....................................................................................................................... 206
importData........................................................................................................................ 207
isRelation.......................................................................................................................... 207
getModels ......................................................................................................................... 207
setModels ......................................................................................................................... 207
getFormat ......................................................................................................................... 207
setFormat ......................................................................................................................... 207
exportData ........................................................................................................................ 207
getDirectory ..................................................................................................................... 207
__set.................................................................................................................................. 223
setInvoker......................................................................................................................... 224
skipOperation ................................................................................................................... 224
Doctrine_EventListener................................................................................. 224
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 224
Method Details....................................................................................................... 225
postSavepointRollback ..................................................................................................... 225
postTransactionRollback .................................................................................................. 225
postClose .......................................................................................................................... 225
postSavepointCommit ...................................................................................................... 226
preTransactionBegin ........................................................................................................ 226
preSavepointRollback....................................................................................................... 226
preFetch ........................................................................................................................... 226
postExec ........................................................................................................................... 226
preConnect ....................................................................................................................... 226
preSavepointCreate.......................................................................................................... 226
preTransactionCommit..................................................................................................... 226
preError............................................................................................................................ 226
preStmtExecute................................................................................................................ 226
onCollectionDelete ........................................................................................................... 226
prePrepare........................................................................................................................ 227
postSavepointCreate ........................................................................................................ 227
preFetchAll ....................................................................................................................... 227
preClose............................................................................................................................ 227
preSavepointCommit ........................................................................................................ 227
preQuery........................................................................................................................... 227
postTransactionBegin....................................................................................................... 227
postStmtExecute .............................................................................................................. 227
preTransactionRollback.................................................................................................... 227
postError .......................................................................................................................... 227
postConnect...................................................................................................................... 227
postFetchAll...................................................................................................................... 228
postFetch.......................................................................................................................... 228
onOpen ............................................................................................................................. 228
postPrepare ...................................................................................................................... 228
onPreCollectionDelete...................................................................................................... 228
postTransactionCommit ................................................................................................... 228
preExec............................................................................................................................. 228
postQuery ......................................................................................................................... 228
Doctrine_EventListener_Chain...................................................................... 229
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 229
Method Details....................................................................................................... 230
add.................................................................................................................................... 230
onSleep ............................................................................................................................. 230
postTransactionRollback .................................................................................................. 230
postClose .......................................................................................................................... 230
preTransactionBegin ........................................................................................................ 230
preFetch ........................................................................................................................... 230
postExec ........................................................................................................................... 231
preConnect ....................................................................................................................... 231
get..................................................................................................................................... 231
preTransactionCommit..................................................................................................... 231
dropSequenceSql.............................................................................................................. 271
alterTableSql .................................................................................................................... 271
createSequence ................................................................................................................ 272
createDatabase................................................................................................................. 272
createForeignKey ............................................................................................................. 272
getIndexFieldDeclarationList ........................................................................................... 272
Doctrine_Expression ..................................................................................... 273
Method Summary .................................................................................................. 273
Method Details....................................................................................................... 273
parseExpression ............................................................................................................... 273
setExpression ................................................................................................................... 273
__toString ......................................................................................................................... 273
parseClause ...................................................................................................................... 274
__construct ....................................................................................................................... 274
getSql ............................................................................................................................... 274
getConnection .................................................................................................................. 274
Doctrine_Expression_Driver .......................................................................... 274
Inheritance................................................................................................................. 0
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 274
Method Details....................................................................................................... 277
pi....................................................................................................................................... 277
upper ................................................................................................................................ 277
avg .................................................................................................................................... 278
md5................................................................................................................................... 278
add.................................................................................................................................... 278
between ............................................................................................................................ 278
length................................................................................................................................ 279
ltrim .................................................................................................................................. 279
__call ................................................................................................................................. 279
trim ................................................................................................................................... 279
cos .................................................................................................................................... 279
regexp............................................................................................................................... 279
not..................................................................................................................................... 279
mul.................................................................................................................................... 280
substring........................................................................................................................... 280
rtrim ................................................................................................................................. 280
coalesce ............................................................................................................................ 280
neq.................................................................................................................................... 280
in....................................................................................................................................... 281
mod................................................................................................................................... 281
now ................................................................................................................................... 281
sum ................................................................................................................................... 281
isNull ................................................................................................................................ 281
sub .................................................................................................................................... 282
lte...................................................................................................................................... 282
sin ..................................................................................................................................... 282
gte..................................................................................................................................... 282
count................................................................................................................................. 282
getIdentifiers .................................................................................................................... 283
guid................................................................................................................................... 283
max ................................................................................................................................... 283
eq...................................................................................................................................... 283
getIdentifier...................................................................................................................... 283
regexp............................................................................................................................... 293
random ............................................................................................................................. 293
date_part .......................................................................................................................... 293
substring........................................................................................................................... 293
now ................................................................................................................................... 294
age .................................................................................................................................... 294
to_char.............................................................................................................................. 294
translate ........................................................................................................................... 294
concat ............................................................................................................................... 294
Doctrine_Expression_Sqlite........................................................................... 295
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 295
Method Details....................................................................................................... 295
rtrimImpl .......................................................................................................................... 295
modImpl............................................................................................................................ 295
md5Impl ........................................................................................................................... 296
locateImpl......................................................................................................................... 296
sha1Impl ........................................................................................................................... 296
regexp............................................................................................................................... 296
random ............................................................................................................................. 296
substring........................................................................................................................... 296
now ................................................................................................................................... 297
trimImpl............................................................................................................................ 297
ltrimImpl........................................................................................................................... 297
soundex ............................................................................................................................ 297
concatImpl ........................................................................................................................ 297
Doctrine_File ................................................................................................. 297
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 297
Method Details....................................................................................................... 298
setTableDefinition ............................................................................................................ 298
get..................................................................................................................................... 298
setUp ................................................................................................................................ 298
Doctrine_File_Index....................................................................................... 298
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 298
Method Details....................................................................................................... 298
setTableDefinition ............................................................................................................ 298
setUp ................................................................................................................................ 298
Doctrine_Formatter....................................................................................... 299
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 299
Method Details....................................................................................................... 299
getIndexName .................................................................................................................. 299
fixIndexName ................................................................................................................... 300
convertBooleans ............................................................................................................... 300
getSequenceName............................................................................................................ 300
getTableName .................................................................................................................. 300
escapePattern................................................................................................................... 300
quote................................................................................................................................. 301
quoteIdentifier.................................................................................................................. 301
quoteMultipleIdentifier .................................................................................................... 301
fixSequenceName............................................................................................................. 301
Doctrine_Hook............................................................................................... 302
Method Summary .................................................................................................. 302
Method Details....................................................................................................... 302
setFieldParser .................................................................................................................. 302
hookWhere ....................................................................................................................... 302
hookLimit.......................................................................................................................... 303
hookOrderby..................................................................................................................... 303
getQuery........................................................................................................................... 303
__construct ....................................................................................................................... 303
hookOffset ........................................................................................................................ 303
setTypeParser................................................................................................................... 303
Doctrine_Hook_Equal .................................................................................... 304
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 304
Method Details....................................................................................................... 304
parse................................................................................................................................. 304
Doctrine_Hook_Integer ................................................................................. 305
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 305
Method Details....................................................................................................... 305
parseSingle....................................................................................................................... 305
Doctrine_Hook_Parser................................................................................... 306
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 306
Method Details....................................................................................................... 306
getParams......................................................................................................................... 306
parse................................................................................................................................. 306
getCondition ..................................................................................................................... 306
Doctrine_Hook_Parser_Complex ................................................................... 307
Inheritance................................................................................................................. 0
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 307
Method Details....................................................................................................... 307
parseSingle....................................................................................................................... 307
parse................................................................................................................................. 307
parseClause ...................................................................................................................... 308
__construct ....................................................................................................................... 308
Doctrine_Hook_WordLike ............................................................................. 308
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 308
Method Details....................................................................................................... 308
parseSingle....................................................................................................................... 308
Doctrine_Hydrator......................................................................................... 309
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 309
Method Details....................................................................................................... 309
hydrateResultSet .............................................................................................................. 309
_gatherRowData ............................................................................................................... 309
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 325
Method Details....................................................................................................... 326
listTableViews................................................................................................................... 326
listTableColumns .............................................................................................................. 326
listViews ........................................................................................................................... 326
listUsers............................................................................................................................ 326
listTables .......................................................................................................................... 326
listFunctions ..................................................................................................................... 326
listTableTriggers .............................................................................................................. 327
Doctrine_Import_Mssql ................................................................................. 327
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 327
Method Details....................................................................................................... 327
listTableViews................................................................................................................... 327
listTableIndexes................................................................................................................ 328
listTableColumns .............................................................................................................. 328
listViews ........................................................................................................................... 328
listTables .......................................................................................................................... 328
listTriggers ....................................................................................................................... 328
listTableRelations ............................................................................................................. 328
listSequences.................................................................................................................... 329
listTableTriggers .............................................................................................................. 329
Doctrine_Import_Mysql ................................................................................. 329
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 329
Method Details....................................................................................................... 330
listTableIndexes................................................................................................................ 330
listTableColumns .............................................................................................................. 330
listViews ........................................................................................................................... 330
listTables .......................................................................................................................... 330
listTableConstraints ......................................................................................................... 330
listTableRelations ............................................................................................................. 330
listSequences.................................................................................................................... 331
Doctrine_Import_Oracle ................................................................................ 331
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 331
Method Details....................................................................................................... 332
listTableViews................................................................................................................... 332
listTableIndexes................................................................................................................ 332
listTableColumns .............................................................................................................. 332
listViews ........................................................................................................................... 332
listDatabases .................................................................................................................... 332
listUsers............................................................................................................................ 332
listTables .......................................................................................................................... 332
listFunctions ..................................................................................................................... 333
listTableConstraints ......................................................................................................... 333
listTriggers ....................................................................................................................... 333
listTableRelations ............................................................................................................. 333
listSequences.................................................................................................................... 333
listTableTriggers .............................................................................................................. 333
Doctrine_Import_Pgsql.................................................................................. 334
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 334
Method Details....................................................................................................... 334
listTableViews................................................................................................................... 334
listTableIndexes................................................................................................................ 334
listTableColumns .............................................................................................................. 335
listTables .......................................................................................................................... 335
listTableConstraints ......................................................................................................... 335
listTriggers ....................................................................................................................... 335
listTableRelations ............................................................................................................. 335
listTableTriggers .............................................................................................................. 335
Doctrine_Import_Schema .............................................................................. 336
Method Summary .................................................................................................. 336
Method Details....................................................................................................... 337
getOption.......................................................................................................................... 337
getOptions ........................................................................................................................ 337
_processInheritance ......................................................................................................... 337
setOptions......................................................................................................................... 337
importSchema .................................................................................................................. 337
buildSchema ..................................................................................................................... 337
_fixDuplicateRelations ...................................................................................................... 338
setOption .......................................................................................................................... 338
_autoCompleteOppositeRelations..................................................................................... 338
_validateSchemaElement ................................................................................................. 338
_buildRelationships .......................................................................................................... 338
parseSchema .................................................................................................................... 338
_buildUniqueRelationKey ................................................................................................. 339
_findBaseSuperClass ........................................................................................................ 339
Doctrine_Import_Sqlite ................................................................................. 339
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 339
Method Details....................................................................................................... 340
listTableViews................................................................................................................... 340
listTableIndexes................................................................................................................ 340
listTableColumns .............................................................................................................. 340
listViews ........................................................................................................................... 340
listDatabases .................................................................................................................... 340
listUsers............................................................................................................................ 340
listTables .......................................................................................................................... 340
listFunctions ..................................................................................................................... 341
listTableConstraints ......................................................................................................... 341
listTriggers ....................................................................................................................... 341
listSequences.................................................................................................................... 341
listTableTriggers .............................................................................................................. 341
Doctrine_Inflector ......................................................................................... 342
Method Summary .................................................................................................. 342
Method Details....................................................................................................... 342
classify .............................................................................................................................. 342
seemsUtf8......................................................................................................................... 342
urlize................................................................................................................................. 343
classifyCallback ................................................................................................................ 343
unaccent ........................................................................................................................... 343
tableize ............................................................................................................................. 343
dropForeignKey................................................................................................................ 363
removeIndex ..................................................................................................................... 363
getChanges....................................................................................................................... 364
changeColumn.................................................................................................................. 364
createForeignKey ............................................................................................................. 364
getNumChanges ............................................................................................................... 364
addIndex ........................................................................................................................... 364
createTable....................................................................................................................... 365
index ................................................................................................................................. 365
Doctrine_Migration_Builder ......................................................................... 365
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 365
Method Details....................................................................................................... 366
buildCreateForeignKey .................................................................................................... 366
buildDropForeignKey ....................................................................................................... 366
generateMigrationsFromDb ............................................................................................. 366
setMigrationsPath ............................................................................................................ 366
buildDropTable ................................................................................................................. 366
buildAddIndex .................................................................................................................. 367
buildRemoveIndex ............................................................................................................ 367
generateMigrationsFromDiff............................................................................................ 367
loadTemplate .................................................................................................................... 367
generateMigrationsFromModels...................................................................................... 367
__construct ....................................................................................................................... 367
buildMigrationClass ......................................................................................................... 368
buildRemoveColumn......................................................................................................... 368
getMigrationsPath ............................................................................................................ 368
generateMigrationClass ................................................................................................... 368
buildChangeColumn ......................................................................................................... 368
buildAddColumn ............................................................................................................... 369
buildCreateTable .............................................................................................................. 369
Doctrine_Migration_Diff ............................................................................... 369
Method Summary .................................................................................................. 369
Method Details....................................................................................................... 370
_buildChanges .................................................................................................................. 370
generateChanges.............................................................................................................. 370
__construct ....................................................................................................................... 370
getUniqueId...................................................................................................................... 370
generateMigrationClasses................................................................................................ 370
_generateModels .............................................................................................................. 370
_buildModelInformation ................................................................................................... 371
_diff................................................................................................................................... 371
Doctrine_Migration_Process ......................................................................... 371
Method Summary .................................................................................................. 371
Method Details....................................................................................................... 372
processRenamedTable...................................................................................................... 372
processDroppedTable....................................................................................................... 372
processCreatedTable........................................................................................................ 372
processCreatedIndex........................................................................................................ 372
processDroppedForeignKey ............................................................................................. 372
processCreatedColumn .................................................................................................... 373
processRenamedColumn .................................................................................................. 373
processDroppedIndex....................................................................................................... 373
moveAsFirstChildOf.......................................................................................................... 389
getParent .......................................................................................................................... 389
moveAsNextSiblingOf....................................................................................................... 389
getPath ............................................................................................................................. 389
insertAsPrevSiblingOf ...................................................................................................... 390
getNumberDescendants ................................................................................................... 390
getPrevSibling .................................................................................................................. 390
getSiblings........................................................................................................................ 390
getNumberChildren.......................................................................................................... 390
makeRoot.......................................................................................................................... 390
setRootValue .................................................................................................................... 390
insertAsFirstChildOf......................................................................................................... 390
setRightValue ................................................................................................................... 391
getNextSibling.................................................................................................................. 391
insertAsParentOf .............................................................................................................. 391
isDescendantOf................................................................................................................. 391
getRootValue .................................................................................................................... 391
insertAsLastChildOf ......................................................................................................... 391
isDescendantOfOrEqualTo ............................................................................................... 391
getFirstChild..................................................................................................................... 391
isValidNode ...................................................................................................................... 392
getRightValue ................................................................................................................... 392
Doctrine_Node_NestedSet_PreOrderIterator ................................................ 392
Method Summary .................................................................................................. 392
Method Details....................................................................................................... 392
key .................................................................................................................................... 392
rewind............................................................................................................................... 392
current.............................................................................................................................. 393
valid .................................................................................................................................. 393
__construct ....................................................................................................................... 393
count................................................................................................................................. 393
next................................................................................................................................... 393
Doctrine_Null ................................................................................................ 393
Method Summary .................................................................................................. 393
Method Details....................................................................................................... 394
__toString ......................................................................................................................... 394
exists................................................................................................................................. 394
Doctrine_Overloadable .................................................................................. 394
Method Summary .................................................................................................. 394
Method Details....................................................................................................... 394
__call ................................................................................................................................. 394
Doctrine_Pager.............................................................................................. 395
Method Summary .................................................................................................. 395
Method Details....................................................................................................... 396
getNumResults ................................................................................................................. 396
_adjustOffset..................................................................................................................... 396
getLastIndice.................................................................................................................... 396
haveToPaginate ................................................................................................................ 396
setPage ............................................................................................................................. 397
getRange .......................................................................................................................... 397
getMaxPerPage ................................................................................................................ 397
getExecuted...................................................................................................................... 397
isInRange.......................................................................................................................... 408
_setOptions ....................................................................................................................... 408
getOptions ........................................................................................................................ 408
getPager ........................................................................................................................... 408
__construct ....................................................................................................................... 409
_initialize .......................................................................................................................... 409
setPager............................................................................................................................ 409
Doctrine_Pager_Range_Jumping ................................................................... 409
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 409
Method Details....................................................................................................... 410
rangeAroundPage............................................................................................................. 410
getChunkLength ............................................................................................................... 410
_initialize .......................................................................................................................... 410
_setChunkLength.............................................................................................................. 410
Doctrine_Pager_Range_Sliding ..................................................................... 410
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 410
Method Details....................................................................................................... 411
rangeAroundPage............................................................................................................. 411
getChunkLength ............................................................................................................... 411
_initialize .......................................................................................................................... 411
_setChunkLength.............................................................................................................. 411
Doctrine_Parser............................................................................................. 412
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 412
Method Details....................................................................................................... 412
dump................................................................................................................................. 412
getParser .......................................................................................................................... 412
load ................................................................................................................................... 412
dumpData ......................................................................................................................... 413
loadData ........................................................................................................................... 413
doLoad .............................................................................................................................. 413
doDump ............................................................................................................................ 413
Doctrine_Parser_Json .................................................................................... 413
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 413
Method Details....................................................................................................... 414
dumpData ......................................................................................................................... 414
loadData ........................................................................................................................... 414
Doctrine_Parser_Serialize ............................................................................. 414
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 414
Method Details....................................................................................................... 414
dumpData ......................................................................................................................... 414
loadData ........................................................................................................................... 415
Doctrine_Parser_Xml..................................................................................... 415
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 415
Method Details....................................................................................................... 415
buildInheritanceJoinSql.................................................................................................... 425
createSubquery ................................................................................................................ 425
_buildSqlQueryBase ......................................................................................................... 426
parseFunctionExpression ................................................................................................. 426
_killReference ................................................................................................................... 426
fetchOne ........................................................................................................................... 426
parseClause ...................................................................................................................... 426
_buildSqlFromPart............................................................................................................ 426
parseIdentifierReference.................................................................................................. 427
count................................................................................................................................. 427
getDqlPart ........................................................................................................................ 427
getCountQuery ................................................................................................................. 427
loadRoot ........................................................................................................................... 427
adjustProcessedParam ..................................................................................................... 427
__clone .............................................................................................................................. 427
processPendingFields....................................................................................................... 428
free ................................................................................................................................... 428
reset.................................................................................................................................. 428
parseSelectField ............................................................................................................... 428
parseSelect ....................................................................................................................... 428
_processPendingJoinConditions ....................................................................................... 428
addPendingJoinCondition ................................................................................................. 429
create................................................................................................................................ 429
unserialize ........................................................................................................................ 429
Doctrine_Query_Abstract .............................................................................. 429
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 429
Method Details....................................................................................................... 433
generateSqlTableAlias...................................................................................................... 433
update............................................................................................................................... 433
_getDqlCallback................................................................................................................ 433
getParts ............................................................................................................................ 433
hasAliasDeclaration.......................................................................................................... 434
addOrderBy ...................................................................................................................... 434
expireQueryCache ............................................................................................................ 434
generateTableAlias........................................................................................................... 434
getCacheDriver ................................................................................................................ 434
clear.................................................................................................................................. 435
fixArrayParameterValues ................................................................................................. 435
isLimitSubqueryUsed ....................................................................................................... 435
delete ................................................................................................................................ 435
select ................................................................................................................................ 435
generateNewSqlTableAlias .............................................................................................. 435
distinct.............................................................................................................................. 435
getParams......................................................................................................................... 436
orderBy............................................................................................................................. 436
getDql ............................................................................................................................... 436
calculateQueryCacheHash ............................................................................................... 436
getSqlQuery...................................................................................................................... 436
getInternalParams............................................................................................................ 436
from .................................................................................................................................. 436
_hasDqlQueryPart............................................................................................................. 437
forUpdate ......................................................................................................................... 437
_processWhereIn .............................................................................................................. 437
getSqlTableAlias............................................................................................................... 437
addGroupBy...................................................................................................................... 448
addQueryPart ................................................................................................................... 448
offset................................................................................................................................. 448
getQueryCacheDriver....................................................................................................... 448
getTableAliasSeed ............................................................................................................ 449
removeDqlQueryPart........................................................................................................ 449
andWhereIn ...................................................................................................................... 449
free ................................................................................................................................... 449
getFlattenedParams ......................................................................................................... 449
setParams ......................................................................................................................... 449
useQueryCache................................................................................................................. 450
generateNewTableAlias ................................................................................................... 450
getRootDeclaration........................................................................................................... 450
orWhereIn......................................................................................................................... 450
orWhereNotIn................................................................................................................... 450
getCachedForm ................................................................................................................ 451
_constructQueryFromCache............................................................................................. 451
setView ............................................................................................................................. 451
getResultCacheDriver ...................................................................................................... 451
whereNotIn....................................................................................................................... 451
_execute............................................................................................................................ 444
addTableAlias ................................................................................................................... 452
parseQuery ....................................................................................................................... 452
addWhere ......................................................................................................................... 452
setQueryCacheLifeSpan ................................................................................................... 452
calculateResultCacheHash ............................................................................................... 452
getQueryComponents....................................................................................................... 452
copySubqueryInfo............................................................................................................. 453
addSelect .......................................................................................................................... 453
groupBy ............................................................................................................................ 453
getRootAlias ..................................................................................................................... 453
getResultCacheLifeSpan .................................................................................................. 453
whereIn ............................................................................................................................ 453
expireCache...................................................................................................................... 454
Doctrine_Query_Check .................................................................................. 454
Method Summary .................................................................................................. 454
Method Details....................................................................................................... 454
parseSingle....................................................................................................................... 454
parseFunction................................................................................................................... 454
parse................................................................................................................................. 455
parseClause ...................................................................................................................... 455
getTable............................................................................................................................ 455
__construct ....................................................................................................................... 455
getSql ............................................................................................................................... 455
Doctrine_Query_Condition ............................................................................ 456
Inheritance................................................................................................................. 0
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 456
Method Details....................................................................................................... 456
parse................................................................................................................................. 456
parseLiteralValue ............................................................................................................. 456
Doctrine_Query_Filter ................................................................................... 457
Method Summary .................................................................................................. 457
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 464
Method Details....................................................................................................... 464
parse................................................................................................................................. 464
Doctrine_Query_Orderby ............................................................................... 464
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 464
Method Details....................................................................................................... 464
parse................................................................................................................................. 464
Doctrine_Query_Part ..................................................................................... 465
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 465
Method Details....................................................................................................... 465
getQuery........................................................................................................................... 465
__construct ....................................................................................................................... 465
Doctrine_Query_Registry............................................................................... 466
Method Summary .................................................................................................. 466
Method Details....................................................................................................... 466
has .................................................................................................................................... 466
add.................................................................................................................................... 466
get..................................................................................................................................... 466
Doctrine_Query_Select .................................................................................. 467
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 467
Method Details....................................................................................................... 467
parse................................................................................................................................. 467
Doctrine_Query_Set....................................................................................... 467
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 467
Method Details....................................................................................................... 468
parse................................................................................................................................. 468
_processPossibleAggExpression ....................................................................................... 468
Doctrine_Query_Tokenizer ............................................................................ 468
Method Summary .................................................................................................. 468
Method Details....................................................................................................... 469
bracketTrim ...................................................................................................................... 469
tokenizeQuery .................................................................................................................. 469
quoteExplode.................................................................................................................... 469
bracketExplode................................................................................................................. 469
sqlExplode ........................................................................................................................ 470
clauseExplode................................................................................................................... 470
Doctrine_Query_Where.................................................................................. 470
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 470
Method Details....................................................................................................... 471
parseValue........................................................................................................................ 471
load ................................................................................................................................... 471
_buildWhereInArraySqlPart ............................................................................................. 471
_buildSql ........................................................................................................................... 471
construct........................................................................................................................... 483
contains ............................................................................................................................ 483
get..................................................................................................................................... 479
save................................................................................................................................... 483
validate ............................................................................................................................. 484
postSave ........................................................................................................................... 484
linkInDb ............................................................................................................................ 484
clearMutator..................................................................................................................... 484
getReferences................................................................................................................... 484
clearAccessor ................................................................................................................... 484
getPendingUnlinks ........................................................................................................... 484
getLastModified................................................................................................................ 485
_isValueModified .............................................................................................................. 485
columnCount .................................................................................................................... 485
getLast.............................................................................................................................. 485
getModified ...................................................................................................................... 485
__unset.............................................................................................................................. 485
hasRelation ....................................................................................................................... 486
link.................................................................................................................................... 486
preInsert........................................................................................................................... 486
trySave ............................................................................................................................. 486
preValidate ....................................................................................................................... 486
unlink................................................................................................................................ 487
getTable............................................................................................................................ 487
unshiftFilter...................................................................................................................... 487
__construct ....................................................................................................................... 483
getNode ............................................................................................................................ 487
preHydrate ....................................................................................................................... 487
preDqlDelete .................................................................................................................... 488
exists................................................................................................................................. 488
getOid ............................................................................................................................... 488
count................................................................................................................................. 488
getPendingDeletes ........................................................................................................... 488
postInsert ......................................................................................................................... 488
replace.............................................................................................................................. 489
_resetModified .................................................................................................................. 489
hasMutator ....................................................................................................................... 489
postUnserialize ................................................................................................................. 489
validateOnUpdate............................................................................................................. 489
setRelated......................................................................................................................... 489
assignIdentifier................................................................................................................. 489
getIterator ........................................................................................................................ 490
set ..................................................................................................................................... 490
hasAccessor ...................................................................................................................... 490
assignInheritanceValues .................................................................................................. 490
oid..................................................................................................................................... 490
getData ............................................................................................................................. 490
free ................................................................................................................................... 490
unlinkInDb ........................................................................................................................ 491
getMutator........................................................................................................................ 491
cleanData.......................................................................................................................... 491
hasAccessorMutator ......................................................................................................... 491
exportTo ........................................................................................................................... 491
preUnserialize .................................................................................................................. 491
call .................................................................................................................................... 481
errorStack ........................................................................................................................ 492
Doctrine_Record_Filter_Compound............................................................... 500
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 500
Method Details....................................................................................................... 500
init .................................................................................................................................... 500
__construct ....................................................................................................................... 500
filterGet ............................................................................................................................ 500
filterSet............................................................................................................................. 501
Doctrine_Record_Filter_Standard ................................................................. 501
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 501
Method Details....................................................................................................... 501
filterGet ............................................................................................................................ 501
filterSet............................................................................................................................. 501
Doctrine_Record_Iterator.............................................................................. 502
Method Summary .................................................................................................. 502
Method Details....................................................................................................... 502
initNullObject ................................................................................................................... 502
current.............................................................................................................................. 502
__construct ....................................................................................................................... 502
Doctrine_Record_Listener ............................................................................. 503
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 503
Method Details....................................................................................................... 503
preSave............................................................................................................................. 503
preDqlUpdate ................................................................................................................... 504
getOption.......................................................................................................................... 504
preDelete .......................................................................................................................... 504
postHydrate ...................................................................................................................... 504
postUpdate ....................................................................................................................... 504
postValidate...................................................................................................................... 504
postSave ........................................................................................................................... 504
preInsert........................................................................................................................... 504
preValidate ....................................................................................................................... 504
preHydrate ....................................................................................................................... 504
preDqlDelete .................................................................................................................... 505
postInsert ......................................................................................................................... 505
postUnserialize ................................................................................................................. 505
setOption .......................................................................................................................... 505
preUnserialize .................................................................................................................. 505
postSerialize ..................................................................................................................... 505
preDqlSelect ..................................................................................................................... 505
postDelete......................................................................................................................... 505
preUpdate......................................................................................................................... 505
preSerialize ...................................................................................................................... 505
Doctrine_Record_Listener_Chain .................................................................. 506
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 506
Method Details....................................................................................................... 507
preSave............................................................................................................................. 507
preDqlUpdate ................................................................................................................... 507
getOption.......................................................................................................................... 507
Doctrine_Relation_Parser.............................................................................. 520
Method Summary .................................................................................................. 520
Method Details....................................................................................................... 520
getPendingRelations......................................................................................................... 520
getRelation ....................................................................................................................... 521
getPendingRelation .......................................................................................................... 521
getImpl ............................................................................................................................. 521
bind................................................................................................................................... 521
completeAssocDefinition .................................................................................................. 521
hasRelation ....................................................................................................................... 521
guessColumns................................................................................................................... 521
getTable............................................................................................................................ 522
__construct ....................................................................................................................... 522
unsetPendingRelations ..................................................................................................... 522
completeDefinition ........................................................................................................... 522
getIdentifiers .................................................................................................................... 522
getRelations...................................................................................................................... 522
Doctrine_Search ............................................................................................ 523
Inheritance................................................................................................................. 0
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 523
Method Details....................................................................................................... 523
setTableDefinition ............................................................................................................ 523
batchUpdateIndex ............................................................................................................ 523
analyze.............................................................................................................................. 523
readTableData .................................................................................................................. 523
updateIndex...................................................................................................................... 524
__construct ....................................................................................................................... 524
search ............................................................................................................................... 524
Doctrine_Search_Analyzer............................................................................. 524
Method Summary .................................................................................................. 524
Method Details....................................................................................................... 524
analyze.............................................................................................................................. 524
Doctrine_Search_Analyzer_Interface ............................................................ 525
Method Summary .................................................................................................. 525
Method Details....................................................................................................... 525
analyze.............................................................................................................................. 525
Doctrine_Search_Analyzer_Standard ............................................................ 525
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 525
Method Details....................................................................................................... 525
analyze.............................................................................................................................. 525
Doctrine_Search_Analyzer_Utf8 .................................................................... 526
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 526
Method Details....................................................................................................... 526
analyze.............................................................................................................................. 526
Doctrine_Search_File .................................................................................... 526
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 526
nextId................................................................................................................................ 533
Doctrine_Sequence_Db2................................................................................ 533
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 533
Method Details....................................................................................................... 533
lastInsertId ....................................................................................................................... 533
lastSequenceId ................................................................................................................. 534
nextSequenceId ................................................................................................................ 534
Doctrine_Sequence_Firebird ......................................................................... 534
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 534
Method Details....................................................................................................... 535
lastInsertId ....................................................................................................................... 535
currId................................................................................................................................ 535
nextID ............................................................................................................................... 535
Doctrine_Sequence_Mssql............................................................................. 535
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 535
Method Details....................................................................................................... 536
checkSequence................................................................................................................. 536
lastInsertId ....................................................................................................................... 536
currId................................................................................................................................ 536
nextId................................................................................................................................ 536
Doctrine_Sequence_Mysql............................................................................. 537
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 537
Method Details....................................................................................................... 537
lastInsertId ....................................................................................................................... 537
currId................................................................................................................................ 537
nextId................................................................................................................................ 537
Doctrine_Sequence_Oracle............................................................................ 538
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 538
Method Details....................................................................................................... 538
lastInsertID....................................................................................................................... 538
currID ............................................................................................................................... 538
nextID ............................................................................................................................... 539
Doctrine_Sequence_Pgsql ............................................................................. 539
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 539
Method Details....................................................................................................... 539
lastInsertId ....................................................................................................................... 539
currId................................................................................................................................ 540
nextId................................................................................................................................ 540
Doctrine_Sequence_Sqlite............................................................................. 540
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 540
Method Details....................................................................................................... 540
lastInsertId ....................................................................................................................... 540
currId................................................................................................................................ 541
nextId................................................................................................................................ 541
Doctrine_Parser_Spyc.................................................................................... 541
Method Summary .................................................................................................. 541
Method Details....................................................................................................... 542
dump................................................................................................................................. 542
load ................................................................................................................................... 542
YAMLLoad ........................................................................................................................ 542
_linkRef............................................................................................................................. 543
YAMLDump ...................................................................................................................... 543
Doctrine_Parser_Spyc_YamlNode.................................................................. 543
Method Summary .................................................................................................. 543
Method Details....................................................................................................... 543
__construct ....................................................................................................................... 543
Doctrine_Table .............................................................................................. 544
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 544
Method Details....................................................................................................... 547
getOption.......................................................................................................................... 547
addNamedQuery............................................................................................................... 548
getTemplates .................................................................................................................... 548
hasColumn ........................................................................................................................ 548
find.................................................................................................................................... 548
getColumnNames ............................................................................................................. 548
setColumns ....................................................................................................................... 548
__isset ............................................................................................................................... 549
getRepository ................................................................................................................... 549
getColumns....................................................................................................................... 549
removeColumn ................................................................................................................. 549
clear.................................................................................................................................. 549
getGenerator .................................................................................................................... 549
createQuery...................................................................................................................... 549
isIdentifierComposite ....................................................................................................... 549
setConnection................................................................................................................... 550
getRelation ....................................................................................................................... 550
getDefinitionOf ................................................................................................................. 550
__call ................................................................................................................................. 550
getOptions ........................................................................................................................ 550
getProxy ........................................................................................................................... 550
addCheckConstraint ......................................................................................................... 550
validateUniques................................................................................................................ 551
setTableName................................................................................................................... 551
getRelationParser............................................................................................................. 551
createNamedQuery .......................................................................................................... 551
getIndex............................................................................................................................ 551
bind................................................................................................................................... 551
__toString ......................................................................................................................... 551
construct........................................................................................................................... 551
setOptions......................................................................................................................... 552
removeRecord .................................................................................................................. 552
isInheritedColumn ............................................................................................................ 552
getUniques ....................................................................................................................... 552
unique............................................................................................................................... 552
getColumnCount............................................................................................................... 561
bindQueryParts................................................................................................................. 561
addIndex ........................................................................................................................... 561
findByDql .......................................................................................................................... 561
getFieldValidators ............................................................................................................ 561
initDefinition..................................................................................................................... 562
applyInheritance............................................................................................................... 562
getMethodOwner.............................................................................................................. 562
hasDefaultValues.............................................................................................................. 562
create................................................................................................................................ 562
getColumnName............................................................................................................... 562
getTypeOfColumn............................................................................................................. 563
hasField ............................................................................................................................ 563
addRecord ........................................................................................................................ 563
getFieldLength ................................................................................................................. 563
Doctrine_Table_Exception............................................................................. 563
Method Summary .................................................................................................. 563
Method Details....................................................................................................... 563
__construct ....................................................................................................................... 563
Doctrine_Table_Repository ........................................................................... 564
Method Summary .................................................................................................. 564
Method Details....................................................................................................... 564
evictAll.............................................................................................................................. 564
add.................................................................................................................................... 564
contains ............................................................................................................................ 565
get..................................................................................................................................... 565
evict .................................................................................................................................. 565
getTable............................................................................................................................ 565
__construct ....................................................................................................................... 565
count................................................................................................................................. 565
getIterator ........................................................................................................................ 565
loadAll............................................................................................................................... 565
Doctrine_Task ............................................................................................... 566
Direct Sub-Classes..................................................................................................... 0
Method Summary .................................................................................................. 566
Method Details....................................................................................................... 566
notify................................................................................................................................. 566
getArguments ................................................................................................................... 566
getRequiredArgumentsDescriptions ................................................................................ 567
ask .................................................................................................................................... 567
validate ............................................................................................................................. 567
getTaskName.................................................................................................................... 567
__construct ....................................................................................................................... 567
getOptionalArgumentsDescriptions ................................................................................. 567
getOptionalArguments ..................................................................................................... 567
execute ............................................................................................................................. 567
getArgument..................................................................................................................... 567
setArguments ................................................................................................................... 567
getDescription .................................................................................................................. 568
addArgument .................................................................................................................... 568
getRequiredArguments .................................................................................................... 568
Doctrine_Task_BuildAll ................................................................................. 568
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 568
Method Details....................................................................................................... 568
__construct ....................................................................................................................... 568
execute ............................................................................................................................. 568
Doctrine_Task_BuildAllLoad ......................................................................... 569
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 569
Method Details....................................................................................................... 569
__construct ....................................................................................................................... 569
execute ............................................................................................................................. 569
Doctrine_Task_BuildAllReload...................................................................... 569
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 569
Method Details....................................................................................................... 570
__construct ....................................................................................................................... 570
execute ............................................................................................................................. 570
Doctrine_Task_Compile................................................................................. 570
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 570
Method Details....................................................................................................... 570
execute ............................................................................................................................. 570
Doctrine_Task_CreateDb ............................................................................... 571
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 571
Method Details....................................................................................................... 571
execute ............................................................................................................................. 571
Doctrine_Task_CreateTables ......................................................................... 571
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 571
Method Details....................................................................................................... 571
execute ............................................................................................................................. 571
Doctrine_Task_Dql ........................................................................................ 572
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 572
Method Details....................................................................................................... 572
execute ............................................................................................................................. 572
_printResults..................................................................................................................... 572
Doctrine_Task_DropDb.................................................................................. 572
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 572
Method Details....................................................................................................... 573
execute ............................................................................................................................. 573
Doctrine_Task_DumpData ............................................................................. 573
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 573
Method Details....................................................................................................... 573
execute ............................................................................................................................. 573
add.................................................................................................................................... 616
clear.................................................................................................................................. 617
contains ............................................................................................................................ 617
get..................................................................................................................................... 617
__construct ....................................................................................................................... 617
count................................................................................................................................. 617
getClassname ................................................................................................................... 617
getIterator ........................................................................................................................ 617
set ..................................................................................................................................... 617
getValidators .................................................................................................................... 618
remove.............................................................................................................................. 618
toArray.............................................................................................................................. 618
Doctrine_Validator_Exception ....................................................................... 618
Method Summary .................................................................................................. 618
Method Details....................................................................................................... 618
inspect .............................................................................................................................. 618
__toString ......................................................................................................................... 619
__construct ....................................................................................................................... 619
count................................................................................................................................. 619
getInvalidRecords............................................................................................................. 619
getIterator ........................................................................................................................ 619
Doctrine_Validator_Future ............................................................................ 619
Method Summary .................................................................................................. 619
Method Details....................................................................................................... 619
validate ............................................................................................................................. 619
Doctrine_Validator_HtmlColor ...................................................................... 620
Method Summary .................................................................................................. 620
Method Details....................................................................................................... 620
validate ............................................................................................................................. 620
Doctrine_Validator_Ip ................................................................................... 620
Method Summary .................................................................................................. 620
Method Details....................................................................................................... 621
validate ............................................................................................................................. 621
Doctrine_Validator_Minlength ...................................................................... 621
Method Summary .................................................................................................. 621
Method Details....................................................................................................... 621
validate ............................................................................................................................. 621
Doctrine_Validator_Nospace ......................................................................... 621
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 621
Method Details....................................................................................................... 622
validate ............................................................................................................................. 622
Doctrine_Validator_Notblank ........................................................................ 622
Inheritance................................................................................................................. 0
Method Summary .................................................................................................. 622
Method Details....................................................................................................... 622
validate ............................................................................................................................. 622
Doctrine_Validator_Notnull .......................................................................... 623
Inheritance................................................................................................................. 0
Doctrine_Parser_YamlSf
Method Summary
Returns Name Description
string dump The dump method, when supplied with an array, will do its best to convert
the array into friendly YAML.
array load The load method, when supplied with a YAML stream (string or file), will
do its best to convert YAML in a file into a PHP array. Usage:
Listing
0-1
Method Details
(string) dump($array, $inline = 4)
Parameter Summary
(array) load($input)
Parameter Summary
Doctrine_Parser_YamlSf_Dumper
Method Summary
Returns Name Description
string dump
Method Details
(string) dump($input, $inline, $indent)
Parameter Summary
Doctrine_Parser_YamlSf_Inline
Method Summary
Returns Name Description
string dump
array load
string evaluateScalar
string parseSequence
string parseMapping
string parseScalar
string dumpArray
getTimestampRegex
string parseQuotedScalar
Method Details
(string) dump($value)
Parameter Summary
$value PHP
(array) load($value)
Parameter Summary
$value YAML
(string) evaluateScalar($scalar)
Parameter Summary
Evaluates scalars and replaces magic values.
<strong>returns</strong> YAML
Parameter Summary
Parse sequence to yaml
<strong>returns</strong> YAML
Parameter Summary
Parses mapping.
<strong>returns</strong> YAML
Parameter Summary
(string) dumpArray($value)
Parameter Summary
getTimestampRegex()
Parameter Summary
Parameter Summary
Parses quotes scalar
<strong>returns</strong> YAML
Doctrine_Parser_YamlSf_Parser
Method Summary
Returns Name Description
getNextEmbedBlock
integer getRealCurrentLineNb
mixed parseValue
Boolean isCurrentLineEmpty
Boolean isCurrentLineBlank
mixed parse
string parseFoldedScalar
integer getCurrentLineIndentation
__construct
Boolean isCurrentLineComment
Boolean isNextLineIndented
string cleanup
moveToPreviousLine
moveToNextLine
Method Details
getNextEmbedBlock(0)
Parameter Summary
0 A YAML string
(integer) getRealCurrentLineNb()
Parameter Summary
Returns the current line number (takes the offset into account).
<strong>returns</strong> The current line number
(mixed) parseValue($value)
Parameter Summary
(Boolean) isCurrentLineEmpty()
Parameter Summary
Returns true if the current line is blank or if it is a comment line.
<strong>returns</strong> Returns true if the current line is empty or if it is a comment line,
false otherwise
(Boolean) isCurrentLineBlank()
Parameter Summary
Returns true if the current line is blank.
<strong>returns</strong> Returns true if the current line is blank, false otherwise
(mixed) parse($value)
Parameter Summary
Parameter Summary
$separator The separator that was used to begin this folded scalar (| or >)
$indicator The indicator that was used to begin this folded scalar (+ or -)
$indentation The indentation that was used to begin this folded scalar
(integer) getCurrentLineIndentation()
Parameter Summary
Returns the current line indentation.
<strong>returns</strong> The current line indentation
__construct($offset)
Parameter Summary
$offset The offset of YAML document (used for line numbers in error messages)
Constructor
(Boolean) isCurrentLineComment()
Parameter Summary
Returns true if the current line is a comment line.
<strong>returns</strong> Returns true if the current line is a comment line, false otherwise
(Boolean) isNextLineIndented()
Parameter Summary
Returns true if the next line is indented.
<strong>returns</strong> Returns true if the next line is indented, false otherwise
(string) cleanup($value)
Parameter Summary
moveToPreviousLine()
Parameter Summary
Moves the parser to the previous line.
moveToNextLine()
Parameter Summary
Doctrine
Method Summary
Returns Name Description
string generateSqlFromModels
dump
boolean isValidModelClass
generateYamlFromModels
generateMigrationsFromDb
getConnectionByTableName
debug
loadModel
array getLoadedModels Will filter through an array of classes and return
the Doctrine_Records out of them. If you do not
specify $classes it will return all of the currently
loaded Doctrine_Records
createDatabases
boolean autoload
array generateMigrationsFromDiff
dumpData
array initializeModels This will also inheritently initialize any model
behaviors and add the models generated by
Doctrine generators and add them to the
$models array
array filterInvalidModels This will inflect the class, causing it to be loaded
in to memory.
compile
generateMigrationsFromModels
getTable
__construct
string getPath
array getLoadedModelFiles
generateModelsFromYaml
loadData The output of dumpData can be fed to loadData
dropDatabases
boolean generateModelsFromDb
createTablesFromArray
generateMigrationClass
generateYamlFromDb This should probably be fixed. We should write
something to generate a yaml schema file
directly from the database.
createTablesFromModels
bool migrate
array generateSqlFromArray
loadModels
Method Details
(string) generateSqlFromModels($directory = null)
Parameter Summary
Generate a sql string to create the tables from all loaded models or the models found
in the passed directory.
<strong>returns</strong> String of sql queries. One query per line
Parameter Summary
(boolean) isValidModelClass($class)
Parameter Summary
$class Can be a string named after the class, an instance of the class, or an instance of the
class reflected
generateYamlFromModels($yamlPath, $directory)
Parameter Summary
Generate yaml schema file for the models in the specified directory
generateMigrationsFromDb($migrationsPath)
Parameter Summary
Generate a set of migration classes from an existing database
<strong>throws</strong> new Doctrine_Migration_Exception
getConnectionByTableName($tableName)
Parameter Summary
Get the connection object for a table by the actual table name FIXME: I think this
method is flawed because a individual connections could have the same table name
debug($bool = null)
Parameter Summary
Turn on/off the debugging setting
Parameter Summary
Load an individual model name and path in to the model loading registry
Parameter Summary
Get all the loaded models, you can provide an array of classes or it will use
get_declared_classes()
Will filter through an array of classes and return the Doctrine_Records out of them. If you do
not specify $classes it will return all of the currently loaded Doctrine_Records
createDatabases($specifiedConnections = array())
Parameter Summary
Parameter Summary
simple autoload function returns true if the class was loaded, otherwise false
Parameter Summary
Parameter Summary
(array) initializeModels($models)
Parameter Summary
Initialize all models so everything is present and loaded in to memory
This will also inheritently initialize any model behaviors and add the models generated by
Doctrine generators and add them to the $models array
Parameter Summary
Filter through an array of classes and return all the classes that are valid models.
This will inflect the class, causing it to be loaded in to memory.
Parameter Summary
Method for making a single file of most used doctrine runtime components including
the compiled file instead of multiple files (in worst cases dozens of files) can improve
performance by an order of magnitude
<strong>throws</strong> Doctrine_Exception
Parameter Summary
getTable($componentName)
Parameter Summary
Get the Doctrine_Table object for the passed model
__construct()
Parameter Summary
<strong>throws</strong> Doctrine_Exception
(string) getPath()
Parameter Summary
Get the root path to Doctrine
(array) getLoadedModelFiles()
Parameter Summary
Returns an array of all the loaded models and the path where each of them exists
Parameter Summary
Parameter Summary
dropDatabases($specifiedConnections = array())
Parameter Summary
Parameter Summary
createTablesFromArray($array)
Parameter Summary
generateMigrationClass($className, $migrationsPath)
Parameter Summary
Parameter Summary
Generates models from database to temporary location then uses those models to
generate a yaml schema file.
This should probably be fixed. We should write something to generate a yaml schema file
directly from the database.
createTablesFromModels($directory = null)
Parameter Summary
Parameter Summary
Migrate database to specified $to version. Migrates from current to latest if you do
not specify.
<strong>returns</strong> true
<strong>throws</strong> new Doctrine_Migration_Exception
(array) generateSqlFromArray($array)
Parameter Summary
Generate a array of sql for the passed array of models
Parameter Summary
Doctrine_Access
Method Summary
Returns Name Description
boolean __isset
add
offsetUnset
offsetSet
mixed offsetGet
boolean contains
mixed get
boolean offsetExists
mixed __get
__unset
setArray
set
boolean remove
__set
Method Details
(boolean) __isset($name)
Parameter Summary
Check if key exists in data
<strong>returns</strong> whether or not this object contains $name
add($value)
Parameter Summary
offsetUnset($offset)
Parameter Summary
Unset a given offset
offsetSet($offset, $value)
Parameter Summary
Sets $offset to $value
(mixed) offsetGet($offset)
Parameter Summary
An alias of get()
(boolean) contains($offset)
Parameter Summary
(mixed) get($offset)
Parameter Summary
(boolean) offsetExists($offset)
Parameter Summary
Check if an offset axists
<strong>returns</strong> Whether or not this object contains $offset
(mixed) __get($name)
Parameter Summary
Get key from data
__unset($name)
Parameter Summary
Remove key from data
setArray($array)
Parameter Summary
set($offset, $value)
Parameter Summary
(boolean) remove($offset)
Parameter Summary
Parameter Summary
Set key and value to data
Doctrine_Adapter_Db2
Method Summary
Returns Name Description
string getQuoteIdentifierSymbol
_commit
_setExecuteMode
setFetchMode
int _getExecuteMode
__construct dbname => (string) The name of the
database to user username => (string)
Connect to the database as this
username. password => (string)
Password associated with the
username. host => (string) What host
to conne
Doctrine_Statement_Db2 prepare
closeConnection
_connect
string _quote
_beginTransaction
_rollBack
Method Details
(string) getQuoteIdentifierSymbol()
Parameter Summary
Get the symbol used for identifier quoting
_commit()
Parameter Summary
Commit a transaction.
_setExecuteMode($mode)
Parameter Summary
Set the current execution mode
setFetchMode($mode)
Parameter Summary
Set the fetch mode.
(int) _getExecuteMode()
Parameter Summary
Get the current execution mode
<strong>returns</strong> the execution mode (DB2_AUTOCOMMIT_ON or
DB2_AUTOCOMMIT_OFF)
__construct($config)
Parameter Summary
(Doctrine_Statement_Db2) prepare($sql)
Parameter Summary
closeConnection()
Parameter Summary
Close the connection resource
_connect()
Parameter Summary
Creates the connection resource
(string) _quote($value)
Parameter Summary
_beginTransaction()
Parameter Summary
Begin a transaction.
_rollBack()
Parameter Summary
Rollback a transaction.
Doctrine_Adapter_Interface
Method Summary
Returns Name Description
exec
commit
beginTransaction
errorInfo
rollBack
lastInsertId
query
errorCode
quote
prepare
Method Details
exec($statement)
Parameter Summary
commit()
Parameter Summary
beginTransaction()
Parameter Summary
errorInfo()
Parameter Summary
rollBack()
Parameter Summary
lastInsertId()
Parameter Summary
query($queryString)
Parameter Summary
errorCode()
Parameter Summary
quote($input)
Parameter Summary
prepare($prepareString)
Parameter Summary
Doctrine_Adapter_Mock
Method Summary
Returns Name Description
string pop
exec
string getName
array getAll
commit
beginTransaction
errorInfo
rollBack
integer lastInsertId
addQuery
query
errorCode
string quote
sqliteCreateFunction
__construct
Listing
0-2
getAttribute
integer count
prepare
forceLastInsertIdFail
forceException
setAttribute
Method Details
(string) pop()
Parameter Summary
Pop the last executed query from the array of executed queries and return it
<strong>returns</strong> Last executed sql string
exec($statement)
Parameter Summary
Execute a raw sql statement
(string) getName()
Parameter Summary
Get the name of the dbms used in this instance of the mock adapter
<strong>returns</strong> Name of the dbms
(array) getAll()
Parameter Summary
Get all the executed queries
commit()
Parameter Summary
Commit a transaction
beginTransaction()
Parameter Summary
Begin a transaction
errorInfo()
Parameter Summary
rollBack()
Parameter Summary
Rollback a transaction
(integer) lastInsertId()
Parameter Summary
Get the id of the last inserted record
addQuery($query)
Parameter Summary
Add query to the stack of executed queries
query($query)
Parameter Summary
Fake the execution of query and add it to the stack of executed queries
errorCode()
Parameter Summary
(string) quote($input)
Parameter Summary
Quote a value for the dbms
sqliteCreateFunction()
Parameter Summary
__construct($name = null)
Parameter Summary
Doctrine mock adapter constructor
<pre><code> <![CDATA[ $conn = new Doctrine_Adapter_Mock('mysql');]]> </code></pre>
getAttribute($attribute)
Parameter Summary
(integer) count()
Parameter Summary
Get the number of queries executed
prepare($query)
Parameter Summary
forceLastInsertIdFail($fail = true)
Parameter Summary
Force last insert to be failed
Parameter Summary
setAttribute($attribute, $value)
Parameter Summary
Doctrine_Adapter_Mysqli
Method Summary
Returns Name Description
_commit
integer lastInsertId Gets the last ID generated automatically by
an IDENTITY/AUTOINCREMENT column.
As a convention, on RDBMS brands that
support sequences (e.g. Oracle,
PostgreSQL, DB2), this method forms the
name of a sequence from the arguments
and returns the last id gen
Doctrine_Statement_Mysqli prepare
closeConnection
_connect
_beginTransaction
_rollBack
Method Details
_commit()
Parameter Summary
Commit a transaction.
Parameter Summary
(Doctrine_Statement_Mysqli) prepare($sql)
Parameter Summary
closeConnection()
Parameter Summary
Force the connection to close.
_connect()
Parameter Summary
Creates a connection to the database.
<strong>throws</strong> Doctrine_Adapter_Exception
_beginTransaction()
Parameter Summary
Begin a transaction.
_rollBack()
Parameter Summary
Roll-back a transaction.
Doctrine_Adapter_Oracle
Method Summary
Returns Name Description
exec
commit
boolean beginTransaction
errorInfo
boolean rollBack
integer lastInsertId
query
errorCode
string quote
__construct
'db','username'=>'usr','password'=>'pass'));]]> Listing
0-3
mixed getAttribute
prepare
resource getConnection
boolean setAttribute
Method Details
exec($statement)
Parameter Summary
Execute a raw sql statement
commit()
Parameter Summary
Commit a transaction
(boolean) beginTransaction()
Parameter Summary
Begin a transaction
errorInfo()
Parameter Summary
(boolean) rollBack()
Parameter Summary
Rollback a transaction
(integer) lastInsertId()
Parameter Summary
Get the id of the last inserted record
query($query)
Parameter Summary
Execute query and return results as statement object
errorCode()
Parameter Summary
(string) quote($input)
Parameter Summary
Quote a value for the dbms
Parameter Summary
Doctrine Oracle adapter constructor
<pre><code> <![CDATA[ $conn = new
Doctrine_Adapter_Oracle(array('dbname'=>'db','username'=>'usr','password'=>'pass'));]]>
</code></pre>
(mixed) getAttribute($attribute)
Parameter Summary
Retrieve a statement attribute
<strong>returns</strong> the attribute value
prepare($query)
Parameter Summary
(resource) getConnection()
Parameter Summary
Returns established OCI connection handler
<strong>returns</strong> OCI connection handler
Parameter Summary
Doctrine_Adapter_Statement
Method Summary
Returns Name Description
rowCount
errorInfo
setFetchMode
errorCode
mixed fetch
columnCount
execute
bindValue
nextRowset
Method Details
rowCount()
Parameter Summary
errorInfo()
Parameter Summary
setFetchMode($mode)
Parameter Summary
errorCode()
Parameter Summary
Parameter Summary
$fetchStyle Controls how the next row will be returned to the caller. This value
must be one of the Doctrine::FETCH_* constants, defaulting to
Doctrine::FETCH_BOTH
$cursorOrientation For a PDOStatement object representing a scrollable cursor, this value
determines which row will be returned to the caller. This value must be
one of the Doctrine::FETCH_ORI_* constants, defaultin
$cursorOffset <p> For a Doctrine_Adapter_Statement_Interface object representing a
scrollable cursor for which the $cursorOrientation parameter is set to
Doctrine::FETCH_ORI_ABS, this value specifies
columnCount()
Parameter Summary
execute()
Parameter Summary
execute()
bindValue($no, $value)
Parameter Summary
nextRowset()
Parameter Summary
nextRowSet
Doctrine_Adapter_Statement_Interface
Method Summary
Returns Name Description
integer rowCount If the last SQL statement executed by the associated Statement
object was a SELECT statement, some databases may return the
number of rows returned by that statement. However, this
behaviour is not guaranteed for all databases and should not be
relied
boolean closeCursor
string fetchColumn
array errorInfo
mixed fetchObject Fetches the next row and returns it as an object. This function is
an alternative to Doctrine_Adapter_Statement_Interface->fetch()
with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.
boolean setFetchMode
string errorCode
mixed fetch
integer columnCount
boolean bindColumn
boolean bindParam Most parameters are input parameters, that is, parameters that
are used in a read-only fashion to build up the query. Some
drivers support the invocation of stored procedures that return
data as output parameters, and some also as input/output
paramete
mixed getAttribute
boolean execute If the prepared statement included parameter markers, you must
either: call PDOStatement->bindParam() to bind PHP variables
to the parameter markers: bound variables pass their value as
input and receive the output value, if any, of their associated
array getColumnMeta
boolean bindValue
boolean nextRowset Some database servers support stored procedures that return
more than one rowset (also known as a result set). The
nextRowset() method enables you to access the second and
subsequent rowsets associated with a PDOStatement object.
Each rowset can have a
array fetchAll
boolean setAttribute
Method Details
(integer) rowCount()
Parameter Summary
rowCount() returns the number of rows affected by the last DELETE, INSERT, or
UPDATE statement executed by the corresponding object.
If the last SQL statement executed by the associated Statement object was a SELECT
statement, some databases may return the number of rows returned by that statement.
However, this behaviour is not guaranteed for all databases and should not be relied
<strong>returns</strong> Returns the number of rows.
(boolean) closeCursor()
Parameter Summary
Closes the cursor, enabling the statement to be executed again.
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
(string) fetchColumn($columnIndex)
Parameter Summary
$columnIndex 0-indexed number of the column you wish to retrieve from the row. If no
value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
fetches the first column.
Returns a single column from the next row of a result set or FALSE if there are no
more rows.
<strong>returns</strong> returns a single column in the next row of a result set.
(array) errorInfo()
Parameter Summary
Fetch extended error information associated with the last operation on the
statement handle
<strong>returns</strong> error info array
Parameter Summary
Parameter Summary
(string) errorCode()
Parameter Summary
Fetch the SQLSTATE associated with the last operation on the statement handle
Parameter Summary
$fetchStyle Controls how the next row will be returned to the caller. This value
must be one of the Doctrine::FETCH_* constants, defaulting to
Doctrine::FETCH_BOTH
$cursorOrientation For a PDOStatement object representing a scrollable cursor, this value
determines which row will be returned to the caller. This value must be
one of the Doctrine::FETCH_ORI_* constants, defaultin
$cursorOffset <p> For a Doctrine_Adapter_Statement_Interface object representing a
scrollable cursor for which the $cursorOrientation parameter is set to
Doctrine::FETCH_ORI_ABS, this value specifies
(integer) columnCount()
Parameter Summary
Returns the number of columns in the result set
<strong>returns</strong> Returns the number of columns in the result set represented by
the Doctrine_Adapter_Statement_Interface object. If there is no result set, this method should
return 0.
Parameter Summary
$column Number of the column (1-indexed) or name of the column in the result set. If using
the column name, be aware that the name should match the case of the column, as
returned by the driver.
$param Name of the PHP variable to which the column will be bound.
$type Data type of the parameter, specified by the Doctrine::PARAM_* constants.
Parameter Summary
$type Explicit data type for the parameter using the Doctrine::PARAM_* constants. To
return an INOUT parameter from a stored procedure, use the bitwise OR
operator to set the Doctrine::PARAM_INPUT_OUTPUT bits f
$length Length of the data type. To indicate that a parameter is an OUT parameter from a
stored procedure, you must explicitly set the length.
$param Parameter identifier. For a prepared statement using named placeholders, this
will be a parameter name of the form :name. For a prepared statement using
question mark placeholders, this will be the 1-inde
$variable Name of the PHP variable to bind to the SQL statement parameter.
(mixed) getAttribute($attribute)
Parameter Summary
Retrieve a statement attribute
<strong>returns</strong> the attribute value
Parameter Summary
$params An array of values with as many elements as there are bound parameters in the
SQL statement being executed.
(array) getColumnMeta($column)
Parameter Summary
Parameter Summary
$param Parameter identifier. For a prepared statement using named placeholders, this will
be a parameter name of the form :name. For a prepared statement using question
mark placeholders, this will be the 1-inde
$value The value to bind to the parameter.
$type Explicit data type for the parameter using the Doctrine::PARAM_* constants.
(boolean) nextRowset()
Parameter Summary
Advances to the next rowset in a multi-rowset statement handle
Some database servers support stored procedures that return more than one rowset (also
known as a result set). The nextRowset() method enables you to access the second and
subsequent rowsets associated with a PDOStatement object. Each rowset can have a
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
Parameter Summary
$fetchStyle Controls how the next row will be returned to the caller. This value must be
one of the Doctrine::FETCH_* constants, defaulting to
Doctrine::FETCH_BOTH
$columnIndex Returns the indicated 0-indexed column when the value of $fetchStyle is
Doctrine::FETCH_COLUMN. Defaults to 0.
Parameter Summary
Doctrine_Adapter_Statement_Mock
Method Summary
Returns Name Description
integer rowCount rowCount() returns the number of rows affected by the last
DELETE, INSERT, or UPDATE statement executed by the
corresponding object. If the last SQL statement executed by the
associated Statement object was a SELECT statement, some
databases may return
boolean closeCursor Closes the cursor, enabling the statement to be executed again.
string fetchColumn Returns a single column from the next row of a result set or
FALSE if there are no more rows.
array errorInfo Fetch extended error information associated with the last
operation on the statement handle
mixed fetchObject Fetches the next row and returns it as an object. Fetches the
next row and returns it as an object. This function is an
alternative to Doctrine_Adapter_Statement_Interface->fetch()
with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.
boolean setFetchMode Set the default fetch mode for this statement
string errorCode Fetch the SQLSTATE associated with the last operation on the
statement handle
mixed fetch
integer columnCount Returns the number of columns in the result set
boolean bindColumn Bind a column to a PHP variable
Method Details
(integer) rowCount()
Parameter Summary
rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE
statement executed by the corresponding object. If the last SQL statement executed by the
associated Statement object was a SELECT statement, some databases may return
<strong>returns</strong> Returns the number of rows.
(boolean) closeCursor()
Parameter Summary
Closes the cursor, enabling the statement to be executed again.
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
(string) fetchColumn($columnIndex)
Parameter Summary
$columnIndex 0-indexed number of the column you wish to retrieve from the row. If no
value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
fetches the first column.
Returns a single column from the next row of a result set or FALSE if there are no more rows.
<strong>returns</strong> returns a single column in the next row of a result set.
(array) errorInfo()
Parameter Summary
Fetch extended error information associated with the last operation on the statement handle
<strong>returns</strong> error info array
Parameter Summary
Fetches the next row and returns it as an object. Fetches the next row and returns it as an
object. This function is an alternative to Doctrine_Adapter_Statement_Interface->fetch()
with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.
<strong>returns</strong> an instance of the required class with property names that
correspond to the column names or FALSE in case of an error.
Parameter Summary
(string) errorCode()
Parameter Summary
Fetch the SQLSTATE associated with the last operation on the statement handle
<strong>returns</strong> error code string
Parameter Summary
$fetchStyle Controls how the next row will be returned to the caller. This value
must be one of the Doctrine::FETCH_* constants, defaulting to
Doctrine::FETCH_BOTH
$cursorOrientation For a PDOStatement object representing a scrollable cursor, this value
determines which row will be returned to the caller. This value must be
one of the Doctrine::FETCH_ORI_* constants, defaultin
$cursorOffset <p> For a Doctrine_Adapter_Statement_Interface object representing a
scrollable cursor for which the $cursorOrientation parameter is set to
Doctrine::FETCH_ORI_ABS, this value specifies
(integer) columnCount()
Parameter Summary
Returns the number of columns in the result set
<strong>returns</strong> Returns the number of columns in the result set represented by
the Doctrine_Adapter_Statement_Interface object. If there is no result set, this method should
return 0.
Parameter Summary
$column Number of the column (1-indexed) or name of the column in the result set. If using
the column name, be aware that the name should match the case of the column, as
returned by the driver.
$param Name of the PHP variable to which the column will be bound.
$type Data type of the parameter, specified by the Doctrine::PARAM_* constants.
Parameter Summary
$type Explicit data type for the parameter using the Doctrine::PARAM_* constants. To
return an INOUT parameter from a stored procedure, use the bitwise OR
operator to set the Doctrine::PARAM_INPUT_OUTPUT bits f
$length Length of the data type. To indicate that a parameter is an OUT parameter from a
stored procedure, you must explicitly set the length.
$param Parameter identifier. For a prepared statement using named placeholders, this
will be a parameter name of the form :name. For a prepared statement using
question mark placeholders, this will be the 1-inde
$variable Name of the PHP variable to bind to the SQL statement parameter.
Binds a PHP variable to a corresponding named or question mark placeholder in the SQL
statement that was use to prepare the statement. Unlike
Doctrine_Adapter_Statement_Interface->bindValue(), the variable is bound as a reference
and will only be eva
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
__construct((Doctrine_Adapter_Mock) $mock)
Parameter Summary
Constructor for mock adapter statements. Accepts instance of
Doctrine_Adapter_Mock
(mixed) getAttribute($attribute)
Parameter Summary
Retrieve a statement attribute
<strong>returns</strong> the attribute value
Parameter Summary
$params An array of values with as many elements as there are bound parameters in the
SQL statement being executed.
Executes a prepared statement If the prepared statement included parameter markers, you
must either: call PDOStatement->bindParam() to bind PHP variables to the parameter
markers: bound variables pass their value as input and receive the output value
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
(array) getColumnMeta($column)
Parameter Summary
Parameter Summary
$param Parameter identifier. For a prepared statement using named placeholders, this will
be a parameter name of the form :name. For a prepared statement using question
mark placeholders, this will be the 1-inde
$value The value to bind to the parameter.
$type Explicit data type for the parameter using the Doctrine::PARAM_* constants.
Binds a value to a corresponding named or question mark placeholder in the SQL statement
that was use to prepare the statement.
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
(boolean) nextRowset()
Parameter Summary
Advances to the next rowset in a multi-rowset statement handle Some database servers
support stored procedures that return more than one rowset (also known as a result set). The
nextRowset() method enables you to access the second and subsequent rowsets
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
Parameter Summary
$fetchStyle Controls how the next row will be returned to the caller. This value must be
one of the Doctrine::FETCH_* constants, defaulting to
Doctrine::FETCH_BOTH
$columnIndex Returns the indicated 0-indexed column when the value of $fetchStyle is
Doctrine::FETCH_COLUMN. Defaults to 0.
Parameter Summary
Doctrine_Adapter_Statement_Oracle
Method Summary
Returns Name Description
integer rowCount If the last SQL statement executed by the associated Statement
object was a SELECT statement, some databases may return the
number of rows returned by that statement. However, this
behaviour is not guaranteed for all databases and should not be
relied
boolean closeCursor
string fetchColumn
array errorInfo
mixed fetchObject Fetches the next row and returns it as an object. This function is
an alternative to Doctrine_Adapter_Statement_Interface->fetch()
with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.
boolean setFetchMode
string errorCode
mixed fetch
integer columnCount
boolean bindColumn
boolean bindParam Most parameters are input parameters, that is, parameters that
are used in a read-only fashion to build up the query. Some
drivers support the invocation of stored procedures that return
data as output parameters, and some also as input/output
paramete
__construct
mixed getAttribute
boolean execute If the prepared statement included parameter markers, you must
either: call PDOStatement->bindParam() to bind PHP variables
to the parameter markers: bound variables pass their value as
input and receive the output value, if any, of their associated
array getColumnMeta
boolean bindValue
boolean nextRowset Some database servers support stored procedures that return
more than one rowset (also known as a result set). The
nextRowset() method enables you to access the second and
subsequent rowsets associated with a PDOStatement object.
Each rowset can have a
array fetchAll
boolean setAttribute
Method Details
(integer) rowCount()
Parameter Summary
rowCount() returns the number of rows affected by the last DELETE, INSERT, or
UPDATE statement executed by the corresponding object.
If the last SQL statement executed by the associated Statement object was a SELECT
statement, some databases may return the number of rows returned by that statement.
However, this behaviour is not guaranteed for all databases and should not be relied
<strong>returns</strong> Returns the number of rows.
(boolean) closeCursor()
Parameter Summary
Closes the cursor, enabling the statement to be executed again.
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
(string) fetchColumn($columnIndex)
Parameter Summary
$columnIndex 0-indexed number of the column you wish to retrieve from the row. If no
value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
fetches the first column.
Returns a single column from the next row of a result set or FALSE if there are no
more rows.
<strong>returns</strong> returns a single column in the next row of a result set.
(array) errorInfo()
Parameter Summary
Fetch extended error information associated with the last operation on the
statement handle
<strong>returns</strong> error info array
Parameter Summary
Parameter Summary
(string) errorCode()
Parameter Summary
Fetch the SQLSTATE associated with the last operation on the statement handle
<strong>returns</strong> error code string
Parameter Summary
$fetchStyle Controls how the next row will be returned to the caller. This value
must be one of the Doctrine::FETCH_* constants, defaulting to
Doctrine::FETCH_BOTH
$cursorOrientation For a PDOStatement object representing a scrollable cursor, this value
determines which row will be returned to the caller. This value must be
one of the Doctrine::FETCH_ORI_* constants, defaultin
$cursorOffset <p> For a Doctrine_Adapter_Statement_Interface object representing a
scrollable cursor for which the $cursorOrientation parameter is set to
Doctrine::FETCH_ORI_ABS, this value specifies
(integer) columnCount()
Parameter Summary
Returns the number of columns in the result set
<strong>returns</strong> Returns the number of columns in the result set represented by
the Doctrine_Adapter_Statement_Interface object. If there is no result set, this method should
return 0.
Parameter Summary
$column Number of the column (1-indexed) or name of the column in the result set. If using
the column name, be aware that the name should match the case of the column, as
returned by the driver.
$param Name of the PHP variable to which the column will be bound.
$type Data type of the parameter, specified by the Doctrine::PARAM_* constants.
Parameter Summary
$type Explicit data type for the parameter using the Doctrine::PARAM_* constants. To
return an INOUT parameter from a stored procedure, use the bitwise OR
operator to set the Doctrine::PARAM_INPUT_OUTPUT bits f
$length Length of the data type. To indicate that a parameter is an OUT parameter from a
stored procedure, you must explicitly set the length.
$param Parameter identifier. For a prepared statement using named placeholders, this
will be a parameter name of the form :name. For a prepared statement using
question mark placeholders, this will be the 1-inde
$variable Name of the PHP variable to bind to the SQL statement parameter.
Parameter Summary
the constructor
(mixed) getAttribute($attribute)
Parameter Summary
Retrieve a statement attribute
<strong>returns</strong> the attribute value
Parameter Summary
$params An array of values with as many elements as there are bound parameters in the
SQL statement being executed.
(array) getColumnMeta($column)
Parameter Summary
Parameter Summary
$param Parameter identifier. For a prepared statement using named placeholders, this will
be a parameter name of the form :name. For a prepared statement using question
mark placeholders, this will be the 1-inde
(boolean) nextRowset()
Parameter Summary
Advances to the next rowset in a multi-rowset statement handle
Some database servers support stored procedures that return more than one rowset (also
known as a result set). The nextRowset() method enables you to access the second and
subsequent rowsets associated with a PDOStatement object. Each rowset can have a
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
Parameter Summary
$fetchStyle Controls how the next row will be returned to the caller. This value must be
one of the Doctrine::FETCH_* constants, defaulting to
Doctrine::FETCH_BOTH
$columnIndex Returns the indicated 0-indexed column when the value of $fetchStyle is
Doctrine::FETCH_COLUMN. Defaults to 0.
Parameter Summary
Doctrine_AuditLog
Method Summary
Returns Name Description
setTableDefinition
__construct
array getVersion
Integer getMaxVersion
Method Details
setTableDefinition()
Parameter Summary
Set the table definition for the audit log table
__construct($options = array())
Parameter Summary
Parameter Summary
Get array of information for the passed record and the specified version
<strong>returns</strong> An array with version information
Parameter Summary
Doctrine_AuditLog_Listener
Method Summary
Returns Name Description
preDelete
integer _getNextVersion
preInsert
__construct
postInsert
preUpdate
Method Details
preDelete(( ) $event)
Parameter Summary
Pre delete event hook deletes all related versions This will only delete version
records if the auditLog is enabled
Parameter Summary
Get the next version number for the audit log
preInsert(( ) $event)
Parameter Summary
Pre insert event hook for incrementing version number
__construct(( ) $auditLog)
Parameter Summary
Instantiate AuditLog listener and set the Doctrine_AuditLog instance to the class
postInsert(( ) $event)
Parameter Summary
Post insert event hook which creates the new version record This will only insert a
version record if the auditLog is enabled
preUpdate(( ) $event)
Parameter Summary
Pre update event hook for inserting new version record This will only insert a version
record if the auditLog is enabled
Doctrine_Builder
Method Summary
Returns Name Description
varExport
Method Details
varExport($var)
Parameter Summary
Special function for var_export() The normal code which is returned is malformed
and does not follow Doctrine standards So we do some string replacing to clean it up
Doctrine_Cache
Method Summary
Returns Name Description
mixed getOption
string pop
boolean isSuccessful
array getAll
add
appendStats
clean
array preFetch advances the internal pointer of cached data and returns the
current element
getDriver
__construct
array preFetchAll returns the current cache data array
integer count
boolean preQuery adds the issued query to internal query stack and checks if
cached element exists
boolean setOption
ArrayIterator getIterator
boolean preExecute adds the issued query to internal query stack and checks if
cached element exists
reset
array readStats
Method Details
(mixed) getOption($option)
Parameter Summary
(string) pop()
Parameter Summary
Pops a query from the stack
(boolean) isSuccessful()
Parameter Summary
Check whether or not the last cache opration was successful or not
<strong>returns</strong> whether or not the last cache operation was successful
Parameter Summary
Parameter Summary
appendStats()
Parameter Summary
Append all queries to stats file
clean()
Parameter Summary
Delete all cache
Parameter Summary
Listens the preFetch event of Doctrine_Connection_Statement
advances the internal pointer of cached data and returns the current element
getDriver()
Parameter Summary
Get the current cache driver instance
Parameter Summary
constructor
Parameter Summary
Listens the preFetchAll event of Doctrine_Connection_Statement
returns the current cache data array
(integer) count()
Parameter Summary
Count the number of queries on the stack
<strong>returns</strong> the number of queries in the stack
Parameter Summary
Listens on the Doctrine_Event preQuery event
adds the issued query to internal query stack and checks if cached element exists
Parameter Summary
(ArrayIterator) getIterator()
Parameter Summary
Get queries iterator
<strong>returns</strong> an iterator that iterates through the query stack
Parameter Summary
Listens the preExecute event of Doctrine_Connection_Statement
adds the issued query to internal query stack and checks if cached element exists
reset()
Parameter Summary
Removes all queries from the query stack
(array) readStats()
Parameter Summary
Read stats file from disk
Doctrine_Cache_Apc
Method Summary
Returns Name Description
boolean delete
mixed contains
boolean save Note : $data is always saved as a string
mixed fetch
__construct
Method Details
(boolean) delete($id)
Parameter Summary
$id cache id
(mixed) contains($id)
Parameter Summary
$id cache id
Parameter Summary
$id cache id
$data data to cache
$lifeTime if != false, set a specific lifetime for this cache record (null => infinite
lifeTime)
Parameter Summary
$id cache id
$testCacheValidity if set to false, the cache validity won't be tested
Test if a cache is available for the given id and (if yes) return it (false else).
<strong>returns</strong> The stored variable on success. FALSE on failure.
__construct($options = array())
Parameter Summary
constructor
Doctrine_Cache_Array
Method Summary
Returns Name Description
boolean delete
mixed contains
boolean save Note : $data is always saved as a string
string fetch Note : return value is always "string" (unserialization is done by the
core not by the backend)
integer count
boolean deleteAll
Method Details
(boolean) delete($id)
Parameter Summary
$id cache id
(mixed) contains($id)
Parameter Summary
$id cache id
Parameter Summary
$id cache id
$data data to cache
$lifeTime if != false, set a specific lifetime for this cache record (null => infinite
lifeTime)
Parameter Summary
$id cache id
$testCacheValidity if set to false, the cache validity won't be tested
Test if a cache is available for the given id and (if yes) return it (false else)
Note : return value is always "string" (unserialization is done by the core not by
the backend)
<strong>returns</strong> cached datas (or false)
(integer) count()
Parameter Summary
(boolean) deleteAll()
Parameter Summary
Remove all cache record
<strong>returns</strong> true if no problem
Doctrine_Cache_Db
Method Summary
Returns Name Description
boolean delete
mixed contains
boolean save Note : $data is always saved as a string
string fetch
__construct
integer count
getConnection
deleteAll $return bool true on success, false on failure
createTable
Method Details
(boolean) delete($id)
Parameter Summary
$id cache id
(mixed) contains($id)
Parameter Summary
$id cache id
Parameter Summary
$id cache id
$data data to cache
$lifeTime if != false, set a specific lifetime for this cache record (null => infinite
lifeTime)
Parameter Summary
$id cache id
$testCacheValidity if set to false, the cache validity won't be tested
Test if a cache is available for the given id and (if yes) return it (false else).
__construct($options, $_options)
Parameter Summary
(integer) count()
Parameter Summary
count returns the number of cached elements
getConnection()
Parameter Summary
Get the connection object associated with this cache driver
deleteAll()
Parameter Summary
Removes all cache records
$return bool true on success, false on failure
createTable()
Parameter Summary
Create the cache table
Doctrine_Cache_Driver
Method Summary
Returns Name Description
mixed getOption
__construct
boolean setOption
Method Details
(mixed) getOption($option)
Parameter Summary
__construct($options, $_options)
Parameter Summary
Parameter Summary
Doctrine_Cache_Interface
Method Summary
Returns Name Description
boolean delete
mixed contains
boolean save Note : $data is always saved as a string
string fetch Note : return value is always "string" (unserialization is done by the core
not by the backend)
Method Details
(boolean) delete($id)
Parameter Summary
$id cache id
(mixed) contains($id)
Parameter Summary
$id cache id
Parameter Summary
$id cache id
$data data to cache
$lifeTime if != false, set a specific lifetime for this cache record (null => infinite
lifeTime)
Parameter Summary
$id cache id
$testCacheValidity if set to false, the cache validity won't be tested
Test if a cache is available for the given id and (if yes) return it (false else)
Note : return value is always "string" (unserialization is done by the core not by
the backend)
<strong>returns</strong> cached datas (or false)
Doctrine_Cache_Memcache
Method Summary
Returns Name Description
boolean delete
mixed contains
boolean save Note : $data is always saved as a string
mixed fetch
__construct
Method Details
(boolean) delete($id)
Parameter Summary
$id cache id
(mixed) contains($id)
Parameter Summary
$id cache id
Parameter Summary
$id cache id
$data data to cache
$lifeTime if != false, set a specific lifetime for this cache record (null => infinite
lifeTime)
Parameter Summary
$id cache id
$testCacheValidity if set to false, the cache validity won't be tested
Test if a cache is available for the given id and (if yes) return it (false else)
<strong>returns</strong> The stored variable on success. FALSE on failure.
__construct($options = array())
Parameter Summary
constructor
Doctrine_Cache_Xcache
Method Summary
Returns Name Description
boolean delete
mixed contains
boolean save Note : $data is always saved as a string
string fetch
__construct
Method Details
(boolean) delete($id)
Parameter Summary
$id cache id
(mixed) contains($id)
Parameter Summary
$id cache id
Parameter Summary
$id cache id
$data data to cache
$lifeTime if != false, set a specific lifetime for this cache record (null => infinite
lifeTime)
Parameter Summary
$id cache id
$testCacheValidity if set to false, the cache validity won't be tested
Test if a cache is available for the given id and (if yes) return it (false else).
<strong>returns</strong> cached datas (or false)
__construct($options = array())
Parameter Summary
constructor
Doctrine_Cli
Method Summary
Returns Name Description
notify
printTasks
string _getTaskClassFromArgs
_run
__construct
run
array loadTasks
notifyException
array prepareArgs
array getLoadedTasks
Method Details
notify($notification = null, $style = 'HEADER')
Parameter Summary
Parameter Summary
Prints an index of all the available tasks in the CLI instance
(string) _getTaskClassFromArgs($args)
Parameter Summary
Get the name of the task class based on the first argument which is always the task
name. Do some inflection to determine the class name
<strong>returns</strong> Task class name
_run($args)
Parameter Summary
__construct($config = array())
Parameter Summary
run($args)
Parameter Summary
Public function to run the loaded task with the passed arguments
<strong>throws</strong> new Doctrine_Cli_Exception
Parameter Summary
Load tasks from the passed directory. If no directory is given it looks in the default
Doctrine/Task folder for the core tasks.
<strong>returns</strong> Array of tasks loaded
notifyException((Exception) $exception)
Parameter Summary
Notify the formatter of an exception
(array) prepareArgs($args)
Parameter Summary
Prepare the raw arguments for execution. Combines with the required and optional
argument list in order to determine a complete array of arguments for the task
<strong>returns</strong> Array of prepared arguments
(array) getLoadedTasks()
Parameter Summary
Get array of all the Doctrine_Task child classes that are loaded
Doctrine_Cli_AnsiColorFormatter
Method Summary
Returns Name Description
Boolean supportsColors Colorization is disabled if not supported by the stream:
• windows
• non tty consoles
string excerpt
formatSection
setStyle
string format
Method Details
(Boolean) supportsColors($stream)
Parameter Summary
$stream A stream
Parameter Summary
Truncates a line.
<strong>returns</strong> The truncated string
Parameter Summary
Parameter Summary
Parameter Summary
Doctrine_Cli_Formatter
Method Summary
Returns Name Description
setMaxLineSize
string excerpt
formatSection
__construct
string format
Method Details
setMaxLineSize($size)
Parameter Summary
Parameter Summary
Truncates a line.
<strong>returns</strong> The truncated string
Parameter Summary
__construct($maxLineSize = 65)
Parameter Summary
Parameter Summary
Doctrine_Collection
Method Summary
Returns Name Description
string getKeyColumn
array toKeyValueArray
populateRelated
mixed key
integer compareRecords
boolean add
clear
delete
getRelation
Doctrine_Iterator_Normal getNormalIterator
importFrom
merge
array serialize
initNullObject
boolean loadRelated
string __toString
boolean contains
get There are two special cases:
•
if null is given as a key a new record is
created and attached
Listing </li>
0-4
setReference
search
array getDeleteDiff
integer count
synchronizeFromArray
mixed getFirst
mixed end
object ArrayIterator getIterator
set
array getData
setKeyColumn
free WARNING: After invoking free() the
collection is no longer considered to be
in a useable state. Subsequent usage
may result in unexpected behavior.
boolean remove
exportTo
array getPrimaryKeys
fromArray
toArray
unserialize
synchronizeWithArray it expects an array representation of a
Doctrine_Collection similar to the return
value of the toArray() method. It will
create Dectrine_Records that don't exist
on the collection, update the ones that do
and remove the ones missing in the
$array
array getKeys
array getInsertDiff
Method Details
(string) getKeyColumn()
Parameter Summary
Get the name of the key column
Parameter Summary
Build an array made up of the values from the 2 specified columns
populateRelated($name, ( ) $coll)
Parameter Summary
Populate the relationship $name for all records in the passed collection
(mixed) key()
Parameter Summary
Get the current key
Parameter Summary
Compares two records. To be used on _snapshot diffs using array_udiff
Parameter Summary
clear()
Parameter Summary
Clears the collection.
Parameter Summary
Deletes all records from this collection
getRelation()
Parameter Summary
Returns the relation object
(Doctrine_Iterator_Normal) getNormalIterator()
Parameter Summary
Get normal iterator - an iterator that will not expand this collection
importFrom($type, $data)
Parameter Summary
Import data to a Doctrine_Collection from one of the supported Doctrine_Parser
formats
merge(( ) $coll)
Parameter Summary
Merges collection into $this and returns merged collection
(array) serialize()
Parameter Summary
This method is automatically called when this Doctrine_Collection is serialized
initNullObject(( ) $null)
Parameter Summary
Initializes the null object for this collection
Parameter Summary
Load all relationships or the named relationship passed
(string) __toString()
Parameter Summary
Returns a string representation of this object
(boolean) contains($key)
Parameter Summary
get($key)
Parameter Summary
Parameter Summary
Saves all records of this collection and processes the difference of the last snapshot
and the current data
(array) getSnapshot()
Parameter Summary
Gets the data of the last snapshot
<strong>returns</strong> returns the data in last snapshot
processDiff()
Parameter Summary
Processes the difference of the last snapshot and the current data
an example: Snapshot with the objects 1, 2 and 4 Current data with objects 2, 3 and 5 The
process would remove object 4
setData($data)
Parameter Summary
Set the data for the Doctrin_Collection instance
takeSnapshot()
Parameter Summary
Takes a snapshot from this collection
snapshots are used for diff processing, for example when a fetched collection has three
elements, then two of those are being removed the diff would contain one element
Doctrine_Collection::save() attaches the diff with the help of last snapshot.
getReference()
Parameter Summary
Get reference to Doctrine_Record instance
(mixed) getLast()
Parameter Summary
Get the last record in the collection
getTable()
Parameter Summary
Get the table this collection belongs to
Parameter Summary
constructor
Parameter Summary
Sets a reference pointer
Parameter Summary
Search a Doctrine_Record instance
(array) getDeleteDiff()
Parameter Summary
Perform a delete diff between the last snapshot and the current data
(integer) count()
Parameter Summary
Gets the number of records in this collection This class implements interface
countable
synchronizeFromArray($array)
Parameter Summary
(mixed) getFirst()
Parameter Summary
Get the first record in the collection
(mixed) end()
Parameter Summary
Get the last record in the collection
Parameter Summary
Get collection data iterator
Parameter Summary
Set a Doctrine_Record instance to the collection
(array) getData()
Parameter Summary
Get all the records as an array
setKeyColumn($column)
Parameter Summary
Sets the key column for this collection
free($deep = false)
Parameter Summary
Frees the resources used by the collection.
(boolean) remove($key)
Parameter Summary
Removes a specified collection element
Parameter Summary
Export a Doctrine_Collection to one of the supported Doctrine_Parser formats
(array) getPrimaryKeys()
Parameter Summary
Get array of primary keys for all the records in the collection
<strong>returns</strong> an array containing all primary keys
Parameter Summary
Populate a Doctrine_Collection from an array of data
Parameter Summary
Mimics the result of a $query->execute(array(), Doctrine::HYDRATE_ARRAY);
unserialize($serialized)
Parameter Summary
This method is automatically called everytime a Doctrine_Collection object is
unserialized
synchronizeWithArray($array)
Parameter Summary
(array) getKeys()
Parameter Summary
Get all keys of the data in the collection
(array) getInsertDiff()
Parameter Summary
Perform a insert diff between the last snapshot and the current data
Doctrine_Collection_Iterator
Method Summary
Returns Name Description
integer key
rewind
current
__construct
next
Method Details
(integer) key()
Parameter Summary
returns the current key
rewind()
Parameter Summary
rewinds the iterator
current()
Parameter Summary
returns the current record
__construct($collection)
Parameter Summary
constructor
next()
Parameter Summary
advances the internal pointer
Doctrine_Collection_Iterator_Expandable
Method Summary
Returns Name Description
valid
Method Details
valid()
Parameter Summary
Doctrine_Collection_Iterator_Normal
Method Summary
Returns Name Description
boolean valid
Method Details
(boolean) valid()
Parameter Summary
<strong>returns</strong> whether or not the iteration will continue
Doctrine_Collection_Iterator_Offset
Method Summary
Returns Name Description
valid
Method Details
valid()
Parameter Summary
Doctrine_Collection_Offset
Method Summary
Returns Name Description
__construct
integer getLimit
getIterator
Method Details
__construct(( ) $table)
Parameter Summary
(integer) getLimit()
Parameter Summary
getIterator()
Parameter Summary
Doctrine_Column
Method Summary
Returns Name Description
boolean contains
mixed get
array getDefinition
__construct
integer count
mixed enumValue
mixed enumIndex
array getEnumValues
ArrayIterator getIterator
mixed set
Method Details
(boolean) contains($name)
Parameter Summary
(mixed) get($name)
Parameter Summary
(array) getDefinition()
Parameter Summary
__construct($definition = array())
Parameter Summary
(integer) count()
Parameter Summary
Parameter Summary
Parameter Summary
(array) getEnumValues($field)
Parameter Summary
(ArrayIterator) getIterator()
Parameter Summary
Parameter Summary
Doctrine_Compiler
Method Summary
Returns Name Description
$target compile
Method Details
($target) compile($target = null, $includedDrivers = array())
Parameter Summary
method for making a single file of most used doctrine runtime components including
the compiled file instead of multiple files (in worst cases dozens of files) can improve
performance by an order of magnitude
<strong>returns</strong> Path the compiled file was written to
<strong>throws</strong> Doctrine_Compiler_Exception if something went wrong during the
compile operation
Doctrine_Configurable
Method Summary
Returns Name Description
getAttributeValueFromString Will get the value for an attribute by the string
name Example: -
>getAttributeFromString('portability', 'all') will
return Doctrine::PORTABILITY_ALL
setListener
setParam
mixed addRecordListener
mixed getCharset
getParams
array getAttributes
string getImpl
hasImpl
getParam
getAttributeFromString Will accept the name of an attribute and return the
attribute value Example: -
>getAttributeFromString('portability') will be
converted to Doctrine::ATTR_PORTABILITY and
returned
getParent
setCharset
mixed getAttribute
mixed getCollate
setImpl this method is the base of Doctrine dependency
injection
setRecordListener
setParent
getRecordListener
getListener
setCollate
mixed addListener
getParamNamespaces
setAttribute
setAttribute(Doctrine::ATTR_PORTABILITY, Listing
0-5
Doctrine::PORTABILITY_ALL);
// or
$manager->setAttribute('portability',
Doctrine::PORTABILITY_ALL);
// or
$manager->setAttribute('portability',
'all');]]>
setEventListener
Method Details
getAttributeValueFromString($stringAttributeName,
$stringAttributeValueName)
Parameter Summary
Will get the value for an attribute by the string name Example:
->getAttributeFromString('portability', 'all') will return
Doctrine::PORTABILITY_ALL
setListener((Doctrine_EventListener_Interface|Doctrine_Overloadable)
$listener)
Parameter Summary
<strong>returns</strong> this object
Parameter Summary
(mixed) addRecordListener((Doctrine_EventListener_Interface|Doctrine_Overloadable
$listener, $name = null)
Parameter Summary
<strong>returns</strong> this object
(mixed) getCharset()
Parameter Summary
Get the charset
getParams($namespace = null)
Parameter Summary
(array) getAttributes()
Parameter Summary
getAttributes returns all attributes as an array
(string) getImpl($template)
Parameter Summary
getImpl returns the implementation for given class
<strong>returns</strong> name of the concrete implementation
hasImpl($template)
Parameter Summary
Parameter Summary
getAttributeFromString($stringAttributeName)
Parameter Summary
Will accept the name of an attribute and return the attribute value Example:
->getAttributeFromString('portability') will be converted to
Doctrine::ATTR_PORTABILITY and returned
getParent()
Parameter Summary
getParent returns the parent of this component
setCharset($charset)
Parameter Summary
Set the charset
(mixed) getAttribute($attribute)
Parameter Summary
returns the value of an attribute
(mixed) getCollate()
Parameter Summary
Get the collate
setImpl($template, $class)
Parameter Summary
setRecordListener((Doctrine_EventListener_Interface|Doctrine_Overloadable)
$listener)
Parameter Summary
setListener
<strong>returns</strong> this object
setParent(( ) $component)
Parameter Summary
sets a parent for this configurable component the parent must be configurable
component itself
getRecordListener()
Parameter Summary
getListener
getListener()
Parameter Summary
setCollate($collate)
Parameter Summary
Set the collate
(mixed) addListener((Doctrine_EventListener_Interface|Doctrine_Overloadable)
$listener, $name = null)
Parameter Summary
<strong>returns</strong> this object
getParamNamespaces()
Parameter Summary
setAttribute($attribute, $value)
Parameter Summary
// or
$manager->setAttribute('portability', 'all');]]> </code></pre>
<strong>throws</strong> Doctrine_Exception if the value is invalid
setEventListener((Doctrine_EventListener) $listener)
Parameter Summary
Doctrine_Connection
Method Summary
Returns Name Description
incrementQueryCount
array getTables
getDriverName Gets the name of the instance
driver
mixed update
array fetchArray
PDO getDbh
getOption Retrieves option
exec
string getName
string generateUniqueIndexName
getTmpConnection Create a temporary connection to
the database with the user
credentials. This is so the user can
make a connection to a db server.
Some dbms allow connections with
no database, but some do not. In
that case we have a table which is
always guaranteed to
beginInternalTransaction
getCacheDriver
clear
array fetchColumn
boolean commit Listeners:
onPreTransactionCommit,
onTransactionCommit
createQuery
array fetchBoth
integer beginTransaction if trying to set a savepoint and
there is no active transaction a
new transaction is being started
Listeners: onPreTransactionBegin,
onTransactionBegin
integer delete
convertBooleans This method takes care of that
conversion
select
setName Sets the name of the connection
array errorInfo
getAvailableDrivers
getOptions Get array of all options
mixed dropDatabase Issue drop database command for
this instance of
Doctrine_Connection
boolean rollback Cancel any database changes done
during a transaction or since a
specific savepoint that is in
progress. This function may only
be called when auto-committing is
disabled, otherwise it will fail.
Therefore, a new transaction is
implicitly started after
string serialize
rethrowException
lastInsertId Returns the ID of the last inserted
row, or the last value from a
sequence object, depending on the
underlying driver. Note: This
method may not return a
meaningful or consistent result
across different drivers, because
the underlying database may not e
integer getTransactionLevel
string __toString
query
Listing
0-6
$users =
$conn->query('SELECT u.*
FROM User u WHERE u.name
LIKE ?',
array('someone'));]]>
array fetchRow
close
__get
boolean supports
driverName
integer errorCode
standaloneQuery
mixed quote
string modifyLimitSubquery
_generateUniqueName
mixed fetchOne
getManager
string quoteIdentifier Delimiting style depends on which
database driver is being used.
NOTE: just because you CAN use
delimited identifiers doesn't mean
you SHOULD use them. In
general, they end up causing way
more problems than they solve.
Portability is broken by usi
getTable
__construct
mixed getAttribute
boolean addTable
setDateFormat
integer count
execute
mixed insert
boolean connect
string generateUniqueRelationForeignKeyName
string modifyLimitQuery Some dbms require specific
functionality for this. Check the
other connection adapters for
examples
prepare
getQueryCacheDriver
flush
array fetchAssoc
mixed createDatabase Issue create database command
for this instance of
Doctrine_Connection
queryOne <
pre> queryOne('SELECT u.* FROM
User u WHERE u.id = ?',
array(1)); $user = $conn-
>queryOne('SELECT u.* FROM User
u WHERE u.name LIKE ? AND
u.password = ?',
array('someone', 'password')
);]]>
getResultCacheDriver
array fetchAll
create create creates a record
unserialize
boolean hasTable
boolean setAttribute
evictTables
Method Details
incrementQueryCount()
Parameter Summary
(array) getTables()
Parameter Summary
returns an array of all initialized tables
getDriverName()
Parameter Summary
Gets the name of the instance driver
Parameter Summary
Parameter Summary
(PDO) getDbh()
Parameter Summary
returns the database handler of which this connection uses
<strong>returns</strong> the database handler
getOption($option)
Parameter Summary
Retrieves option
Parameter Summary
(string) getName()
Parameter Summary
getName returns the name of this driver
<strong>returns</strong> the name of this driver
Parameter Summary
Get/generate unique index name for a table name and set of fields
<strong>returns</strong> The name of the generated index
getTmpConnection($info)
Parameter Summary
Create a temporary connection to the database with the user credentials. This is so the user
can make a connection to a db server. Some dbms allow connections with no database, but
some do not. In that case we have a table which is always guaranteed to
beginInternalTransaction($savepoint = null)
Parameter Summary
getCacheDriver()
Parameter Summary
clear()
Parameter Summary
clear clears all repositories
Parameter Summary
Parameter Summary
commit Commit the database changes done during a transaction that is in progress
or release a savepoint. This function may only be called when auto-committing is
disabled, otherwise it will fail.
Listeners: onPreTransactionCommit, onTransactionCommit
<strong>returns</strong> false if commit couldn't be performed, true otherwise
<strong>throws</strong> Doctrine_Validator_Exception if the transaction fails due to record
validations
createQuery()
Parameter Summary
Creates a new Doctrine_Query object that operates on this connection.
Parameter Summary
Parameter Summary
Parameter Summary
convertBooleans($item)
Parameter Summary
convertBooleans some drivers need the boolean values to be converted into integers
when using DQL API
This method takes care of that conversion
Parameter Summary
queries the database with limit and offset added to the query and returns a
Doctrine_Connection_Statement object
setName($name)
Parameter Summary
Sets the name of the connection
(array) errorInfo()
Parameter Summary
errorInfo Fetch extended error information associated with the last operation on the
database handle
getAvailableDrivers()
Parameter Summary
returns an array of available PDO drivers
getOptions()
Parameter Summary
Get array of all options
(mixed) dropDatabase()
Parameter Summary
Issue drop database command for this instance of Doctrine_Connection
<strong>returns</strong> Returns Doctrine_Exception or success string
Parameter Summary
Cancel any database changes done during a transaction or since a specific savepoint that is in
progress. This function may only be called when auto-committing is disabled, otherwise it will
fail. Therefore, a new transaction is implicitly started after
<strong>returns</strong> false if rollback couldn't be performed, true otherwise
<strong>throws</strong> Doctrine_Transaction_Exception if the rollback operation fails at
database level
(string) serialize()
Parameter Summary
Serialize. Remove database connection(pdo) since it cannot be serialized
rethrowException($e, $invoker)
Parameter Summary
<strong>throws</strong> Doctrine_Connection_Exception
Parameter Summary
$table name of the table into which a new row was inserted
$field name of the field into which a new row was inserted
Returns the ID of the last inserted row, or the last value from a sequence object, depending
on the underlying driver. Note: This method may not return a meaningful or consistent result
across different drivers, because the underlying database may not e
(integer) getTransactionLevel()
Parameter Summary
get the current transaction nesting level
(string) __toString()
Parameter Summary
returns a string representation of this object
Parameter Summary
query queries the database using Doctrine Query Language returns a collection of
Doctrine_Record objects
<pre><code> <![CDATA[ $users = $conn->query('SELECT u.* FROM User u');
$users = $conn->query('SELECT u.* FROM User u WHERE u.name LIKE ?',
array('someone'));]]> </code></pre>
<strong>returns</strong> Collection of Doctrine_Record objects
Parameter Summary
close()
Parameter Summary
close closes the connection
__get($name)
Parameter Summary
(boolean) supports($feature)
Parameter Summary
driverName($name)
Parameter Summary
converts given driver name
(integer) errorCode()
Parameter Summary
errorCode Fetch the SQLSTATE associated with the last operation on the database
handle
Parameter Summary
Parameter Summary
Parameter Summary
Creates dbms specific LIMIT/OFFSET SQL for the subqueries that are used in the
context of the limit-subquery algorithm.
Parameter Summary
Parameter Summary
getManager()
Parameter Summary
returns the manager that created this connection
Parameter Summary
getTable($name)
Parameter Summary
Parameter Summary
the constructor
(mixed) getAttribute($attribute)
Parameter Summary
getAttribute retrieves a database connection attribute
Parameter Summary
setDateFormat($format = null)
Parameter Summary
(integer) count()
Parameter Summary
returns the count of initialized table objects
Parameter Summary
Parameter Summary
(boolean) connect()
Parameter Summary
connect connects into database
Parameter Summary
Parameter Summary
Some dbms require specific functionality for this. Check the other connection adapters for
examples
Parameter Summary
$table name of the table on which the REPLACE query will be executed.
$fields <p> an associative array that describes the fields and the values that will be
inserted or updated in the specified table. The indexes of the array are the names of
all the fields of the table. </p
$keys <p> an array containing all key fields (primary key fields or unique index fields) for
this table </p> <p> the uniqueness of a row will be determined according to the
provided key fields </p> <p>this method wi
Parameter Summary
setOption($option, $value)
Parameter Summary
Set option value
(ArrayIterator) getIterator()
Parameter Summary
returns an iterator that iterators through all initialized table objects
<pre><code> <![CDATA[ foreach ($conn as $index => $table) { print $table; // get a string
representation of each table object }]]> </code></pre>
<strong>returns</strong> SPL ArrayIterator object
prepare($statement)
Parameter Summary
getQueryCacheDriver()
Parameter Summary
flush()
Parameter Summary
flush saves all the records from all tables this operation is isolated using a
transaction
<strong>throws</strong> PDOException if something went wrong at database level
Parameter Summary
(mixed) createDatabase()
Parameter Summary
Issue create database command for this instance of Doctrine_Connection
<strong>returns</strong> Returns Doctrine_Exception or success string
Parameter Summary
query queries the database using Doctrine Query Language and returns the first
record found
<pre><code> <![CDATA[ $user = $conn->queryOne('SELECT u.* FROM User u WHERE
u.id = ?', array(1));
$user = $conn->queryOne('SELECT u.* FROM User u WHERE u.name LIKE ? AND
u.password = ?', array('someone', 'password') );]]> </code></p
<strong>returns</strong> Doctrine_Record object on success, boolean false on failure
getResultCacheDriver()
Parameter Summary
Parameter Summary
create($name)
Parameter Summary
unserialize($serialized)
Parameter Summary
Unserialize. Recreate connection from serialized content
(boolean) hasTable($name)
Parameter Summary
hasTable whether or not this connection has table $name initialized
Parameter Summary
setAttribute sets an attribute
evictTables()
Parameter Summary
evictTables evicts all tables
Doctrine_Connection_Common
Method Summary
Returns Name Description
modifyLimitQuery
Method Details
modifyLimitQuery($query, $limit = false, $offset = false, $isManip =
false)
Parameter Summary
Adds an driver-specific LIMIT clause to the query
Doctrine_Connection_Db2
Method Summary
Returns Name Description
string modifyLimitQuery
Method Details
(string) modifyLimitQuery($query, $limit = false, $offset = false,
$isManip = false)
Parameter Summary
Doctrine_Connection_Exception
Method Summary
Returns Name Description
boolean processErrorInfo
string errorMessage
integer getPortableCode
string getPortableMessage
Method Details
(boolean) processErrorInfo($errorInfo)
Parameter Summary
This method checks if native error code/message can be converted into a portable
code and then adds this portable error code to $portableCode field
<strong>returns</strong> whether or not the error info processing was successfull (the
process is successfull if portable error code was found)
Parameter Summary
$value integer error code, null to get the current error code-message map, or an array with
a new error code-message map
(integer) getPortableCode()
Parameter Summary
getPortableCode returns portable error code
<strong>returns</strong> portable error code
(string) getPortableMessage()
Parameter Summary
getPortableMessage returns portable error message
<strong>returns</strong> portable error message
Doctrine_Connection_Firebird
Method Summary
Returns Name Description
setCharset
__construct
string modifyLimitQuery
Method Details
setCharset($charset)
Parameter Summary
$charset charset
Parameter Summary
the constructor
Parameter Summary
Doctrine_Connection_Firebird_Exception
Method Summary
Returns Name Description
array processErrorInfo the portable error code is added at the end of array
Method Details
(array) processErrorInfo($errorInfo)
Parameter Summary
This method checks if native error code/message can be converted into a portable
code and then adds this portable error code to errorInfo array and returns the
modified array
the portable error code is added at the end of array
Doctrine_Connection_Informix
Method Summary
Returns Name Description
quoteIdentifier
__construct
Method Details
quoteIdentifier($identifier, $checkOption = false)
Parameter Summary
Parameter Summary
the constructor
Doctrine_Connection_Mock
Method Summary
Returns Name Description
__construct
Method Details
__construct(( ) $manager, (PDO|Doctrine_Adapter) $adapter)
Parameter Summary
the constructor
Doctrine_Connection_Module
Method Summary
Returns Name Description
string getModuleName
__construct
getConnection
Method Details
(string) getModuleName()
Parameter Summary
getModuleName returns the name of this module
<strong>returns</strong> the name of this module
Parameter Summary
getConnection()
Parameter Summary
getConnection returns the connection object this module uses
Doctrine_Connection_Mssql
Method Summary
Returns Name Description
boolean checkSequence
mixed getServerVersion
string quoteIdentifier Quoting style depends on which database driver is being used.
__construct
string modifyLimitQuery [ borrowed from Zend Framework ]
Method Details
(boolean) checkSequence($seqName, $seq_name)
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
the constructor
Parameter Summary
Adds an adapter-specific LIMIT clause to the SELECT statement.
[ borrowed from Zend Framework ]
Doctrine_Connection_Mssql_Exception
Method Summary
Returns Name Description
boolean processErrorInfo
Method Details
(boolean) processErrorInfo($errorInfo)
Parameter Summary
This method checks if native error code/message can be converted into a portable
code and then adds this portable error code to $portableCode field
<strong>returns</strong> whether or not the error info processing was successfull (the
process is successfull if portable error code was found)
Doctrine_Connection_Mysql
Method Summary
Returns Name Description
string getDatabaseName
setCharset
__construct
boolean connect
integer replace The REPLACE type of query does not make part of the SQL
standards. Since practically only MySQL implements it
natively, this type of query is emulated through this method
for other DBMS using standard types of queries inside a
transaction to assure the
Method Details
(string) getDatabaseName()
Parameter Summary
returns the name of the connected database
setCharset($charset)
Parameter Summary
$charset charset
Parameter Summary
the constructor
(boolean) connect()
Parameter Summary
Overrides connect Method, to add specific attributes PDO emulate prepares is
required to avoid bugs on mysql < 5.1 when trying to prepare DROP DATABASE or
CREATE DATABASE statements
<strong>returns</strong> connected
Parameter Summary
$table name of the table on which the REPLACE query will be executed.
$fields <p> associative array that describes the fields and the values that will be inserted
or updated in the specified table. The indexes of the array are the names of all the
fields of the table. The values of the array ar
Doctrine_Connection_Mysql_Exception
Method Summary
Returns Name Description
boolean processErrorInfo
Method Details
(boolean) processErrorInfo($errorInfo)
Parameter Summary
This method checks if native error code/message can be converted into a portable
code and then adds this portable error code to $portableCode field
<strong>returns</strong> whether or not the error info processing was successfull (the
process is successfull if portable error code was found)
Doctrine_Connection_Oracle
Method Summary
Returns Name Description
modifyLimitSubquery
__construct
setDateFormat
string modifyLimitQuery
Method Details
modifyLimitSubquery(( ) $rootTable, $query, $limit = false, $offset =
false, $isManip = false)
Parameter Summary
Creates the SQL for Oracle that can be used in the subquery for the limit-subquery
algorithm.
Parameter Summary
Parameter Summary
Sets up the date/time format
Parameter Summary
Doctrine_Connection_Oracle_Exception
Method Summary
Returns Name Description
boolean processErrorInfo
Method Details
(boolean) processErrorInfo($errorInfo)
Parameter Summary
This method checks if native error code/message can be converted into a portable
code and then adds this portable error code to $portableCode field
<strong>returns</strong> whether or not the error info processing was successfull (the
process is successfull if portable error code was found)
Doctrine_Connection_Pgsql
Method Summary
Returns Name Description
convertBooleans This method takes care of that conversion
array|string getServerVersion
setCharset
__construct
string modifyLimitQuery
Method Details
convertBooleans($item)
Parameter Summary
convertBoolean some drivers need the boolean values to be converted into integers
when using DQL API
This method takes care of that conversion
Parameter Summary
setCharset($charset)
Parameter Summary
$charset charset
Parameter Summary
the constructor
Parameter Summary
Doctrine_Connection_Pgsql_Exception
Method Summary
Returns Name Description
boolean processErrorInfo the portable error code is added at the end of array
Method Details
(boolean) processErrorInfo($errorInfo)
Parameter Summary
This method checks if native error code/message can be converted into a portable
code and then adds this portable error code to $portableCode field
the portable error code is added at the end of array
<strong>returns</strong> whether or not the error info processing was successfull (the
process is successfull if portable error code was found)
Doctrine_Connection_Profiler
Method Summary
Returns Name Description
pop
array getAll
boolean __call
get
__construct
lastEvent
integer count
ArrayIterator getIterator
boolean setFilterQueryType
Method Details
pop()
Parameter Summary
pop the last event from the event stack
(array) getAll()
Parameter Summary
getAll returns all profiled events as an array
<strong>returns</strong> all events in an array
Parameter Summary
$a method arguments
method overloader this method is used for invoking different listeners, for the full
list of availible listeners, see Doctrine_EventListener
get($key)
Parameter Summary
__construct()
Parameter Summary
constructor
lastEvent()
Parameter Summary
Get the Doctrine_Event object for the last query that was run, regardless if it has
ended or not. If the event has not ended, it's end time will be Null.
(integer) count()
Parameter Summary
(ArrayIterator) getIterator()
Parameter Summary
getIterator returns an iterator that iterates through the logged events
(boolean) setFilterQueryType($filter)
Parameter Summary
Doctrine_Connection_Sqlite
Method Summary
Returns Name Description
dropDatabase
__construct
connect
createDatabase
Method Details
dropDatabase()
Parameter Summary
Parameter Summary
the constructor
connect()
Parameter Summary
initializes database functions missing in sqlite
createDatabase()
Parameter Summary
Doctrine_Connection_Sqlite_Exception
Method Summary
Returns Name Description
boolean processErrorInfo
Method Details
(boolean) processErrorInfo($errorInfo)
Parameter Summary
This method checks if native error code/message can be converted into a portable
code and then adds this portable error code to $portableCode field
<strong>returns</strong> whether or not the error info processing was successfull (the
process is successfull if portable error code was found)
Doctrine_Connection_Statement
Method Summary
Returns Name Description
integer rowCount If the last SQL statement executed by the associated Statement
object was a SELECT statement, some databases may return the
number of rows returned by that statement. However, this
Method Details
(integer) rowCount()
Parameter Summary
rowCount rowCount() returns the number of rows affected by the last DELETE,
INSERT, or UPDATE statement executed by the corresponding object.
If the last SQL statement executed by the associated Statement object was a SELECT
statement, some databases may return the number of rows returned by that statement.
However, this behaviour is not guaranteed for all databases and should not be relied
<strong>returns</strong> Returns the number of rows.
(boolean) closeCursor()
Parameter Summary
closeCursor Closes the cursor, enabling the statement to be executed again.
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
(string) fetchColumn($columnIndex)
Parameter Summary
$columnIndex 0-indexed number of the column you wish to retrieve from the row. If no
value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
fetches the first column.
fetchColumn Returns a single column from the next row of a result set or FALSE if
there are no more rows.
<strong>returns</strong> returns a single column in the next row of a result set.
(array) errorInfo()
Parameter Summary
errorInfo Fetch extended error information associated with the last operation on the
statement handle
<strong>returns</strong> error info array
Parameter Summary
getStatement()
Parameter Summary
Parameter Summary
(string) errorCode()
Parameter Summary
errorCode Fetch the SQLSTATE associated with the last operation on the statement
handle
<strong>returns</strong> error code string
Parameter Summary
(integer) columnCount()
Parameter Summary
columnCount Returns the number of columns in the result set
<strong>returns</strong> Returns the number of columns in the result set represented by
the Doctrine_Adapter_Statement_Interface object. If there is no result set, this method should
return 0.
Parameter Summary
$column Number of the column (1-indexed) or name of the column in the result set. If using
the column name, be aware that the name should match the case of the column, as
returned by the driver.
$param Name of the PHP variable to which the column will be bound.
$type Data type of the parameter, specified by the Doctrine::PARAM_* constants.
Parameter Summary
$type Explicit data type for the parameter using the Doctrine::PARAM_* constants. To
return an INOUT parameter from a stored procedure, use the bitwise OR
operator to set the Doctrine::PARAM_INPUT_OUTPUT bits f
$length Length of the data type. To indicate that a parameter is an OUT parameter from a
stored procedure, you must explicitly set the length.
$param Parameter identifier. For a prepared statement using named placeholders, this
will be a parameter name of the form :name. For a prepared statement using
question mark placeholders, this will be the 1-inde
$variable Name of the PHP variable to bind to the SQL statement parameter.
Binds a PHP variable to a corresponding named or question mark placeholder in the SQL
statement that was use to prepare the statement. Unlike
Doctrine_Adapter_Statement_Interface->bindValue(), the variable is bound as a reference
and will only be eva
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
getQuery()
Parameter Summary
Parameter Summary
constructor
(mixed) getAttribute($attribute)
Parameter Summary
getAttribute Retrieve a statement attribute
<strong>returns</strong> the attribute value
Parameter Summary
$params An array of values with as many elements as there are bound parameters in the
SQL statement being executed.
(array) getColumnMeta($column)
Parameter Summary
getConnection()
Parameter Summary
getConnection returns the connection object this statement uses
Parameter Summary
$param Parameter identifier. For a prepared statement using named placeholders, this will
be a parameter name of the form :name. For a prepared statement using question
mark placeholders, this will be the 1-inde
$value The value to bind to the parameter.
$type Explicit data type for the parameter using the Doctrine::PARAM_* constants.
(boolean) nextRowset()
Parameter Summary
nextRowset Advances to the next rowset in a multi-rowset statement handle
Some database servers support stored procedures that return more than one rowset (also
known as a result set). The nextRowset() method enables you to access the second and
subsequent rowsets associated with a PDOStatement object. Each rowset can have a
<strong>returns</strong> Returns TRUE on success or FALSE on failure.
Parameter Summary
$fetchMode Controls how the next row will be returned to the caller. This value must be
one of the Doctrine::FETCH_* constants, defaulting to
Doctrine::FETCH_BOTH
$columnIndex Returns the indicated 0-indexed column when the value of $fetchStyle is
Doctrine::FETCH_COLUMN. Defaults to 0.
Parameter Summary
Doctrine_Connection_UnitOfWork
Method Summary
Returns Name Description
boolean update
saveAll
processSingleInsert
saveAssociations this method takes a diff of one-to-many / many-to-many
original and current collections and applies the changes for
example if original many-to-many related collection has
records with primary keys 1,2 and 3 and the new collection
has records with prima
boolean delete this event can be listened by the onPreDelete and onDelete
listeners
saveGraph (The save() operation is always cascaded in 0.10/1.0).
save
_cascadeDelete This is an application-level cascade. Related objects that
participate in the cascade and are not yet loaded are fetched
from the database. Exception: many-valued relations are
always (re-)fetched from the database to make sure we have
all of them.
boolean insert
array buildFlushTree The returned array has all the initialized components in
'correct' order. Basically this means that the records of those
components can be saved safely in the order specified by the
returned array.
saveRelated
Method Details
(boolean) update(( ) $record)
Parameter Summary
saveAll()
Parameter Summary
saveAll persists all the pending records from all tables
<strong>throws</strong> PDOException if something went wrong at database level
processSingleInsert(( ) $record)
Parameter Summary
saveAssociations(( ) $record)
Parameter Summary
this method takes a diff of one-to-many / many-to-many original and current collections and
applies the changes for example if original many-to-many related collection has records with
primary keys 1,2 and 3 and the new collection has records with prima
<strong>throws</strong> Doctrine_Connection_Exception if something went wrong at
database level
Parameter Summary
Deletes the given record and all the related records that participate in an
application-level delete cascade.
this event can be listened by the onPreDelete and onDelete listeners
<strong>returns</strong> true on success, false on failure
saveGraph(( ) $record)
Parameter Summary
Saves the given record and all associated records.
(The save() operation is always cascaded in 0.10/1.0).
save(( ) $record)
Parameter Summary
saves the given record
Parameter Summary
$record The record for which the delete operation will be cascaded.
Parameter Summary
(array) buildFlushTree($tables)
Parameter Summary
saveRelated(( ) $record)
Parameter Summary
saveRelated saves all related records to $record
<strong>throws</strong> PDOException if something went wrong at database level
Doctrine_Data
Method Summary
Returns Name Description
getFormats Get array of available formats
importData Interface for importing data from fixture files to Doctrine
models
isRelation Check if a fieldName on a Doctrine_Record is a relation, if it
is we return that relationData
getModels Get the array of specified models to work with
setModels Set the array of specified models to work with
getFormat Get the current format we are working with
setFormat Set the current format we are working with
exportData Interface for exporting data to fixtures files from Doctrine
models
getDirectory Get directory for dumping/loading data from and to
setDirectory Set the array/string of directories or yml file paths
purge Purge all data for loaded models or for the passed array of
Doctrine_Records
bool exportIndividualFiles Set/Get whether or not to export individual files
Method Details
getFormats()
Parameter Summary
Get array of available formats
Parameter Summary
Interface for importing data from fixture files to Doctrine models
Parameter Summary
Check if a fieldName on a Doctrine_Record is a relation, if it is we return that relationData
getModels()
Parameter Summary
Get the array of specified models to work with
setModels($models)
Parameter Summary
Set the array of specified models to work with
getFormat()
Parameter Summary
Get the current format we are working with
setFormat($format)
Parameter Summary
Set the current format we are working with
Parameter Summary
Interface for exporting data to fixtures files from Doctrine models
getDirectory()
Parameter Summary
Get directory for dumping/loading data from and to
setDirectory($directory)
Parameter Summary
Set the array/string of directories or yml file paths
purge($models = null)
Parameter Summary
Purge all data for loaded models or for the passed array of Doctrine_Records
Parameter Summary
_exportIndividualFiles
Set/Get whether or not to export individual files
Doctrine_Data_Export
Method Summary
Returns Name Description
dumpData Dump the prepared data to the fixtures files
__construct
array prepareData Prepare the raw data to be exported with the parser
doExport FIXME: This function has ugly hacks in it for temporarily disabling
INDEXBY query parts of tables to export. Update from jwage: I am
not sure if their is any other better solution for this. It may be the
correct solution to disable the indexBy settings
Method Details
dumpData($data, $array)
Parameter Summary
__construct($directory)
Parameter Summary
constructor
(array) prepareData($data)
Parameter Summary
Prepare the raw data to be exported with the parser
doExport()
Parameter Summary
FIXME: This function has ugly hacks in it for temporarily disabling INDEXBY query parts of
tables to export. Update from jwage: I am not sure if their is any other better solution for this.
It may be the correct solution to disable the indexBy settings
Doctrine_Data_Import
Method Summary
Returns Name Description
_loadData
doImport
_getImportedObject
_buildRows
__construct
_processRow
_loadNestedSetData
_buildNestedSetRows
array doParsing
Method Details
_loadData($array)
Parameter Summary
Perform the loading of the data from the passed array
doImport($append = false)
Parameter Summary
Do the importing of the data parsed from the fixtures
Parameter Summary
Get the unsaved object for a specified row key and validate that it is the valid object
class for the passed record and relation name
<strong>throws</strong> Doctrine_Data_Exception
_buildRows($className, $data)
Parameter Summary
Recursively loop over all data fixtures and build the array of className rows
__construct($directory = null)
Parameter Summary
Optionally pass the directory/path to the yaml for importing
_processRow($rowKey, $row)
Parameter Summary
Process a row and make all the appropriate relations between the imported data
Parameter Summary
Load nested set data for models with nested set enabled
_buildNestedSetRows($className, $data)
Parameter Summary
Build the rows for nested set models
(array) doParsing()
Parameter Summary
Do the parsing of the yaml files and return the final parsed array
Doctrine_DataDict
Method Summary
Returns Name Description
array compareDefinition
string parseBoolean
Method Details
(array) compareDefinition($current, $previous)
Parameter Summary
(string) parseBoolean($value)
Parameter Summary
parseBoolean parses a literal boolean value and returns proper sql equivalent
<strong>returns</strong> parsed boolean value
Doctrine_DataDict_Firebird
Method Summary
Returns Name Description
string getCharsetFieldDeclaration
string getCollationFieldDeclaration
string getNativeDeclaration
array getPortableDeclaration
Method Details
(string) getCharsetFieldDeclaration($charset)
Parameter Summary
Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field
declaration to be used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set the CHARACTER
SET of a field declaration.
(string) getCollationFieldDeclaration($collation)
Parameter Summary
Obtain DBMS specific SQL code portion needed to set the COLLATION of a field
declaration to be used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set the COLLATION
of a field declaration.
(string) getNativeDeclaration($field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare an text type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(array) getPortableDeclaration($field)
Parameter Summary
Doctrine_DataDict_Informix
Method Summary
Returns Name Description
string getNativeDeclaration
Method Details
(string) getNativeDeclaration($field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare an text type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
Doctrine_DataDict_Mssql
Method Summary
Returns Name Description
string getNativeDeclaration
array getPortableDeclaration
Method Details
(string) getNativeDeclaration($field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare an text type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(array) getPortableDeclaration($field)
Parameter Summary
Doctrine_DataDict_Mysql
Method Summary
Returns Name Description
string getIntegerDeclaration
string getCharsetFieldDeclaration
string getCollationFieldDeclaration
string getNativeDeclaration
array getPortableDeclaration
Method Details
(string) getIntegerDeclaration($name, $field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> unsigned
Obtain DBMS specific SQL code portion needed to declare an integer type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(string) getCharsetFieldDeclaration($charset)
Parameter Summary
Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field
declaration to be used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set the CHARACTER
SET of a field declaration.
(string) getCollationFieldDeclaration($collation)
Parameter Summary
Obtain DBMS specific SQL code portion needed to set the COLLATION of a field
declaration to be used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set the COLLATION
of a field declaration.
(string) getNativeDeclaration($field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare an text type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(array) getPortableDeclaration($field)
Parameter Summary
Doctrine_DataDict_Oracle
Method Summary
Returns Name Description
string getNativeDeclaration
array getPortableDeclaration
Method Details
(string) getNativeDeclaration($field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare an text type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(array) getPortableDeclaration($field)
Parameter Summary
Doctrine_DataDict_Pgsql
Method Summary
Returns Name Description
string getIntegerDeclaration
string getNativeDeclaration
array getPortableDeclaration
string parseBoolean
Method Details
(string) getIntegerDeclaration($name, $field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> unsigned Boolea
Obtain DBMS specific SQL code portion needed to declare an integer type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(string) getNativeDeclaration($field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare an text type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(array) getPortableDeclaration($field)
Parameter Summary
Maps a native array description of a field to a portable Doctrine datatype and length
<strong>returns</strong> containing the various possible types, length, sign, fixed
(string) parseBoolean($value)
Parameter Summary
parseBoolean parses a literal boolean value and returns proper sql equivalent
<strong>returns</strong> parsed boolean value
Doctrine_DataDict_Sqlite
Method Summary
Returns Name Description
string getIntegerDeclaration
string getNativeDeclaration
array getPortableDeclaration
Method Details
(string) getIntegerDeclaration($name, $field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> unsigned
Obtain DBMS specific SQL code portion needed to declare an integer type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(string) getNativeDeclaration($field)
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare an text type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
(array) getPortableDeclaration($field)
Parameter Summary
Doctrine_DataType
Method Summary
Returns Name Description
getName
getDefaultLength
__construct
Method Details
getName()
Parameter Summary
getDefaultLength()
Parameter Summary
__construct()
Parameter Summary
Doctrine_Event
Method Summary
Returns Name Description
string getName
integer getCode
array getParams
start
mixed __get
getQuery
__construct
getInvoker
end
set
boolean hasEnded
mixed getElapsedSecs
__set
setInvoker
skipOperation
Method Details
(string) getName()
Parameter Summary
getName returns the name of this event
<strong>returns</strong> the name of this event
(integer) getCode()
Parameter Summary
<strong>returns</strong> returns the code associated with this event
(array) getParams()
Parameter Summary
getParams returns the parameters of the query
<strong>returns</strong> parameters of the query
start()
Parameter Summary
start starts the internal timer of this event
<strong>returns</strong> this object
(mixed) __get($option)
Parameter Summary
getQuery()
Parameter Summary
<strong>returns</strong> returns the query associated with this event (if any)
__construct((Doctrine_Connection|Doctrine_Connection_Statement|)
$invoker, $code, $query = null, $params = array())
Parameter Summary
constructor
getInvoker()
Parameter Summary
getInvoker returns the handler that invoked this event
<strong>returns</strong> Doctrine_Connection_UnitOfWork|Doctrine_Transaction the
handler that invoked this event
end()
Parameter Summary
end ends the internal timer of this event
<strong>returns</strong> this object
Parameter Summary
(boolean) hasEnded()
Parameter Summary
hasEnded whether or not this event has ended
(mixed) getElapsedSecs()
Parameter Summary
Get the elapsed time (in microseconds) that the event ran. If the event has not yet
ended, return false.
__set($option, $value)
Parameter Summary
setInvoker($invoker)
Parameter Summary
setInvoker Defines new invoker (used in Hydrator)
skipOperation()
Parameter Summary
skipOperation skips the next operation an alias for __set('skipOperation', true)
<strong>returns</strong> this object
Doctrine_EventListener
Method Summary
Returns Name Description
postSavepointRollback
postTransactionRollback
postClose
postSavepointCommit
preTransactionBegin
preSavepointRollback
preFetch
postExec
preConnect
preSavepointCreate
preTransactionCommit
preError
preStmtExecute
onCollectionDelete
prePrepare
postSavepointCreate
preFetchAll
preClose
preSavepointCommit
preQuery
postTransactionBegin
postStmtExecute
preTransactionRollback
postError
postConnect
postFetchAll
postFetch
onOpen
postPrepare
onPreCollectionDelete
postTransactionCommit
preExec
postQuery
Method Details
postSavepointRollback(( ) $event)
Parameter Summary
postTransactionRollback(( ) $event)
Parameter Summary
postClose(( ) $event)
Parameter Summary
postSavepointCommit(( ) $event)
Parameter Summary
preTransactionBegin(( ) $event)
Parameter Summary
preSavepointRollback(( ) $event)
Parameter Summary
preFetch(( ) $event)
Parameter Summary
postExec(( ) $event)
Parameter Summary
preConnect(( ) $event)
Parameter Summary
preSavepointCreate(( ) $event)
Parameter Summary
preTransactionCommit(( ) $event)
Parameter Summary
preError(( ) $event)
Parameter Summary
preStmtExecute(( ) $event)
Parameter Summary
onCollectionDelete(( ) $collection)
Parameter Summary
prePrepare(( ) $event)
Parameter Summary
postSavepointCreate(( ) $event)
Parameter Summary
preFetchAll(( ) $event)
Parameter Summary
preClose(( ) $event)
Parameter Summary
preSavepointCommit(( ) $event)
Parameter Summary
preQuery(( ) $event)
Parameter Summary
postTransactionBegin(( ) $event)
Parameter Summary
postStmtExecute(( ) $event)
Parameter Summary
preTransactionRollback(( ) $event)
Parameter Summary
postError(( ) $event)
Parameter Summary
postConnect(( ) $event)
Parameter Summary
postFetchAll(( ) $event)
Parameter Summary
postFetch(( ) $event)
Parameter Summary
onOpen(( ) $connection)
Parameter Summary
postPrepare(( ) $event)
Parameter Summary
onPreCollectionDelete(( ) $collection)
Parameter Summary
postTransactionCommit(( ) $event)
Parameter Summary
preExec(( ) $event)
Parameter Summary
postQuery(( ) $event)
Parameter Summary
Doctrine_EventListener_Chain
Method Summary
Returns Name Description
add
onSleep
postTransactionRollback
postClose
preTransactionBegin
preFetch
postExec
preConnect
mixed get
preTransactionCommit
onPreLoad
preError
preStmtExecute
onCollectionDelete
prePrepare
onLoad
preFetchAll
preClose
preQuery
postTransactionBegin
postStmtExecute
preTransactionRollback
postError
set
onWakeUp
postConnect
postFetchAll
postFetch
onOpen
postPrepare
onPreCollectionDelete
postTransactionCommit
preExec
postQuery
Method Details
add($listener, $name = null)
Parameter Summary
add adds a listener to the chain of listeners
onSleep(( ) $record)
Parameter Summary
onSleep an event invoked when Doctrine_Record is serialized
postTransactionRollback(( ) $event)
Parameter Summary
onTransactionRollback an event invoked after a Doctrine_Connection transaction is
being rolled back
postClose(( ) $event)
Parameter Summary
postClose an event invoked after Doctrine_Connection is closed
preTransactionBegin(( ) $event)
Parameter Summary
onTransactionBegin an event invoked before a Doctrine_Connection transaction is
being started
preFetch(( ) $event)
Parameter Summary
postExec(( ) $event)
Parameter Summary
preConnect(( ) $event)
Parameter Summary
(mixed) get($key)
Parameter Summary
returns a Doctrine_EventListener on success and null on failure
preTransactionCommit(( ) $event)
Parameter Summary
onPreTransactionCommit an event invoked before a Doctrine_Connection
transaction is committed
onPreLoad(( ) $record)
Parameter Summary
onPreLoad an event invoked when Doctrine_Record is being loaded from database
but not yet initialized
preError(( ) $event)
Parameter Summary
preStmtExecute(( ) $event)
Parameter Summary
onCollectionDelete(( ) $collection)
Parameter Summary
onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
prePrepare(( ) $event)
Parameter Summary
onLoad(( ) $record)
Parameter Summary
onLoad an event invoked when Doctrine_Record is being loaded from database
preFetchAll(( ) $event)
Parameter Summary
preClose(( ) $event)
Parameter Summary
preClose an event invoked before Doctrine_Connection is closed
preQuery(( ) $event)
Parameter Summary
postTransactionBegin(( ) $event)
Parameter Summary
onTransactionBegin an event invoked after a Doctrine_Connection transaction has
been started
postStmtExecute(( ) $event)
Parameter Summary
preTransactionRollback(( ) $event)
Parameter Summary
onPreTransactionRollback an event invoked before a Doctrine_Connection
transaction is being rolled back
postError(( ) $event)
Parameter Summary
Parameter Summary
onWakeUp(( ) $record)
Parameter Summary
onWakeUp an event invoked when Doctrine_Record is unserialized
postConnect(( ) $event)
Parameter Summary
postFetchAll(( ) $event)
Parameter Summary
postFetch(( ) $event)
Parameter Summary
onOpen(( ) $connection)
Parameter Summary
onOpen an event invoked after Doctrine_Connection is opened
postPrepare(( ) $event)
Parameter Summary
onPreCollectionDelete(( ) $collection)
Parameter Summary
onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
postTransactionCommit(( ) $event)
Parameter Summary
onTransactionCommit an event invoked after a Doctrine_Connection transaction is
committed
preExec(( ) $event)
Parameter Summary
postQuery(( ) $event)
Parameter Summary
Doctrine_EventListener_Interface
Method Summary
Returns Name Description
postTransactionRollback
preTransactionBegin
preFetch
postExec
preConnect
preTransactionCommit
preError
preStmtExecute
prePrepare
preFetchAll
preQuery
postTransactionBegin
postStmtExecute
preTransactionRollback
postError
postConnect
postFetchAll
postFetch
postPrepare
postTransactionCommit
preExec
postQuery
Method Details
postTransactionRollback(( ) $event)
Parameter Summary
preTransactionBegin(( ) $event)
Parameter Summary
preFetch(( ) $event)
Parameter Summary
postExec(( ) $event)
Parameter Summary
preConnect(( ) $event)
Parameter Summary
preTransactionCommit(( ) $event)
Parameter Summary
preError(( ) $event)
Parameter Summary
preStmtExecute(( ) $event)
Parameter Summary
prePrepare(( ) $event)
Parameter Summary
preFetchAll(( ) $event)
Parameter Summary
preQuery(( ) $event)
Parameter Summary
postTransactionBegin(( ) $event)
Parameter Summary
postStmtExecute(( ) $event)
Parameter Summary
preTransactionRollback(( ) $event)
Parameter Summary
postError(( ) $event)
Parameter Summary
postConnect(( ) $event)
Parameter Summary
postFetchAll(( ) $event)
Parameter Summary
postFetch(( ) $event)
Parameter Summary
postPrepare(( ) $event)
Parameter Summary
postTransactionCommit(( ) $event)
Parameter Summary
preExec(( ) $event)
Parameter Summary
postQuery(( ) $event)
Parameter Summary
Doctrine_Exception
Method Summary
Returns Name Description
string errorMessage
Method Details
(string) errorMessage((int|array) $value = null)
Parameter Summary
$value integer error code, null to get the current error code-message map, or an array with
a new error code-message map
Doctrine_Export
Method Summary
Returns Name Description
exportSchema if the directory parameter is given this method
first iterates recursively trhough the given
directory in order to find any model classes Then
it iterates through all declared classes and
createIndex
string getUniqueFieldDeclaration
string getForeignKeyDeclaration
string getTemporaryTableQuery Should be overridden in driver classes to return
the correct string for the specific database type.
The default is to return the string "TEMPORARY"
- this will result in a SQL error for any database
that does not support temporary tables, or t
dropForeignKey
string createSequenceSql
string getIndexDeclaration
array getAllGenerators
createDatabase
string createForeignKey
string getFieldDeclarationList
createTable
string createDatabaseSql
string getIndexFieldDeclarationList
Method Details
exportSchema($directory = null)
Parameter Summary
dropDatabaseSql($database, $name)
Parameter Summary
Parameter Summary
Parameter Summary
dropSequence($sequenceName)
Parameter Summary
Parameter Summary
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare a generic type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
Parameter Summary
(string) getDefaultFieldDeclaration($field)
Parameter Summary
Parameter Summary
(string) getAdvancedForeignKeyOptions($definition)
Parameter Summary
dropDatabase($database, $name)
Parameter Summary
Parameter Summary
exportClassesSql($classes)
Parameter Summary
exportClassesSql method for exporting Doctrine_Record classes to a schema
<strong>throws</strong> Doctrine_Connection_Exception if some error other than
Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
(string) getCharsetFieldDeclaration($charset)
Parameter Summary
Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field
declaration to be used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set the CHARACTER
SET of a field declaration.
(string) getCollationFieldDeclaration($collation)
Parameter Summary
Obtain DBMS specific SQL code portion needed to set the COLLATION of a field
declaration to be used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set the COLLATION
of a field declaration.
dropIndex($table, $name)
Parameter Summary
dropSequenceSql($sequenceName)
Parameter Summary
Parameter Summary
Parameter Summary
$check indicates whether the function should just check if the DBMS driver can perform
the requested table alterations if the value is true or actually perform them
otherwise.
generates the sql for altering an existing table (this method is implemented by the
drivers)
Parameter Summary
exportTable exports given table into database based on column and option
definitions
<strong>returns</strong> whether or not the export operation was successful false if table
already existed in the database
<strong>throws</strong> Doctrine_Connection_Exception if some error other than
Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
(string) getForeignKeyBaseDeclaration($definition)
Parameter Summary
getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to
set the FOREIGN KEY constraint of a field declaration to be used in statements like
CREATE TABLE.
Parameter Summary
(string) getCheckDeclaration($definition)
Parameter Summary
Obtain DBMS specific SQL code portion needed to set a CHECK constraint
declaration to be used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set a CHECK
constraint
exportClasses($classes)
Parameter Summary
exportClasses method for exporting Doctrine_Record classes to a schema
FIXME: This function has ugly hacks in it to make sure sql is inserted in the correct order.
<strong>throws</strong> Doctrine_Connection_Exception if some error other than
Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
dropTable($table)
Parameter Summary
exportSql($directory = null)
Parameter Summary
getForeignKeyReferentialAction($action, 1)
Parameter Summary
Parameter Summary
Parameter Summary
(string) dropTableSql($table)
Parameter Summary
Parameter Summary
Parameter Summary
create sequence
<strong>throws</strong> Doctrine_Connection_Exception if something fails at database
level
Parameter Summary
(string) getUniqueFieldDeclaration()
Parameter Summary
Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a
field declaration to be used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set the UNIQUE
constraint of a field declaration.
(string) getForeignKeyDeclaration($definition)
Parameter Summary
$definition <p> an associative array with the following structure: name optional constraint
name </p> <p>local the local field(s)</p> <p>foreign the foreign reference
field(s)</p> <p>for
getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the
FOREIGN KEY constraint of a field declaration to be used in statements like CREATE
TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set the FOREIGN KEY
constraint of a field declaration.
(string) getTemporaryTableQuery()
Parameter Summary
A method to return the required SQL string that fits between CREATE ... TABLE to
create the table as a temporary table.
Should be overridden in driver classes to return the correct string for the specific database
type. The default is to return the string "TEMPORARY" - this will result in a SQL
error for any database that does not support temporary tables, or t
<strong>returns</strong> The string required to be placed between "CREATE"
and "TABLE" to generate a temporary table, if possible.
dropForeignKey($table, $name)
Parameter Summary
Parameter Summary
Parameter Summary
Obtain DBMS specific SQL code portion needed to set an index declaration to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set an index
Parameter Summary
createDatabase($database, $name)
Parameter Summary
Parameter Summary
(string) getFieldDeclarationList($fields)
Parameter Summary
$fields <p> a multidimensional associative array. The first dimension determines the field
name, while the second dimension is keyed with the name of the properties of the
field being declared as array indexes. Cu
Parameter Summary
Parameter Summary
(string) getIndexFieldDeclarationList($fields)
Parameter Summary
Doctrine_Export_Firebird
Method Summary
Returns Name Description
_dropAutoincrement
createIndexSql
checkSupportedChanges
dropDatabase
dropSequenceSql
createConstraint
mixed dropTable
alterTable
boolean createSequence
string getTemporaryTableQuery
createDatabase
createTable
_makeAutoincrement
Method Details
_dropAutoincrement($table)
Parameter Summary
Parameter Summary
checkSupportedChanges([[[amp]]]$changes, $name)
Parameter Summary
dropDatabase($name)
Parameter Summary
dropSequenceSql($seqName)
Parameter Summary
Parameter Summary
(mixed) dropTable($name)
Parameter Summary
Parameter Summary
Parameter Summary
create sequence
(string) getTemporaryTableQuery()
Parameter Summary
A method to return the required SQL string that fits between CREATE ... TABLE to
create the table as a temporary table.
<strong>returns</strong> The string required to be placed between "CREATE"
and "TABLE" to generate a temporary table, if possible.
createDatabase($name)
Parameter Summary
Parameter Summary
Parameter Summary
Doctrine_Export_Frontbase
Method Summary
Returns Name Description
string dropDatabaseSql
string dropSequenceSql
boolean alterTable
boolean dropIndexSql
string dropTableSql
createSequence
string createDatabaseSql
Method Details
(string) dropDatabaseSql($name)
Parameter Summary
(string) dropSequenceSql($seqName)
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
create sequence
(string) createDatabaseSql($name)
Parameter Summary
Doctrine_Export_Mssql
Method Summary
Returns Name Description
string getNotNullFieldDeclaration
dropDatabase
dropSequenceSql
alterTable
string createSequence
string getTemporaryTableQuery
string getIndexDeclaration
createDatabase
Method Details
(string) getNotNullFieldDeclaration($definition, $field)
Parameter Summary
dropDatabase($name)
Parameter Summary
dropSequenceSql($seqName)
Parameter Summary
Parameter Summary
$changes <p> associative array that contains the details of each type of change that is
intended to be performed. The types of changes that are currently supported are
defined as follows: </p> <p>name</p> <p>New name f
$check indicates whether the function should just check if the DBMS driver can perform
the requested table alterations if the value is true or actually perform them
otherwise.
Parameter Summary
create sequence
(string) getTemporaryTableQuery()
Parameter Summary
Override the parent method.
<strong>returns</strong> The string required to be placed between "CREATE"
and "TABLE" to generate a temporary table, if possible.
Parameter Summary
Obtain DBMS specific SQL code portion needed to set an index declaration to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set an index
createDatabase($name)
Parameter Summary
Doctrine_Export_Mysql
Method Summary
Returns Name Description
string dropDatabaseSql
createIndexSql
string getDeclaration
createTableSql
string getDefaultFieldDeclaration
string getAdvancedForeignKeyOptions
boolean alterTableSql
dropIndexSql
dropTableSql
boolean createSequence
dropForeignKey
string getIndexDeclaration
createDatabaseSql
string getIndexFieldDeclarationList
Method Details
(string) dropDatabaseSql($name)
Parameter Summary
Parameter Summary
Parameter Summary
$field <p> associative array with the name of the properties of the field being declared as
array indexes. Currently, the types of supported field properties are as follows: </p>
<p> length Integer val
Obtain DBMS specific SQL code portion needed to declare a generic type field to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion that should be used to declare
the specified field.
Parameter Summary
(string) getDefaultFieldDeclaration($field)
Parameter Summary
(string) getAdvancedForeignKeyOptions($definition)
Parameter Summary
getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing
with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
Parameter Summary
dropIndexSql($table, $name)
Parameter Summary
dropTableSql($table)
Parameter Summary
dropTable
<strong>throws</strong> PDOException
Parameter Summary
create sequence
dropForeignKey($table, $name)
Parameter Summary
Parameter Summary
Obtain DBMS specific SQL code portion needed to set an index declaration to be
used in statements like CREATE TABLE.
<strong>returns</strong> DBMS specific SQL code portion needed to set an index
createDatabaseSql($name)
Parameter Summary
(string) getIndexFieldDeclarationList($fields)
Parameter Summary
getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set
an index declaration to be used in statements like CREATE TABLE.
Doctrine_Export_Oracle
Method Summary
Returns Name Description
createTableSql
string getAdvancedForeignKeyOptions
mixed dropDatabase
string dropSequenceSql
dropAutoincrement
dropTable
alterTable
string getTemporaryTableQuery
string createSequenceSql
string getIndexDeclaration
mixed createDatabase
createTable
mixed _makeAutoincrement
Method Details
createTableSql($name, $fields, $options = array())
Parameter Summary
(string) getAdvancedForeignKeyOptions($definition)
Parameter Summary
Parameter Summary
Parameter Summary
dropAutoincrement($table)
Parameter Summary
dropTable($name)
Parameter Summary
Parameter Summary
(string) getTemporaryTableQuery()
Parameter Summary
A method to return the required SQL string that fits between CREATE ... TABLE to
create the table as a temporary table.
<strong>returns</strong> The string required to be placed between "CREATE"
and "TABLE" to generate a temporary table, if possible.
Parameter Summary
create sequence
Parameter Summary
return Oracle's SQL code portion needed to set an index declaration to be unsed in
statements like CREATE TABLE.
<strong>returns</strong> Oracle's SQL code portion needed to set an index
Parameter Summary
Parameter Summary
Parameter Summary
Doctrine_Export_Pgsql
Method Summary
Returns Name Description
dropDatabaseSql
unknown createTableSql
string getAdvancedForeignKeyOptions
dropSequenceSql
array alterTableSql
boolean alterTable
string createSequenceSql
createDatabaseSql
Method Details
dropDatabaseSql($name)
Parameter Summary
Parameter Summary
Creates a table.
(string) getAdvancedForeignKeyOptions($definition)
Parameter Summary
dropSequenceSql($sequenceName)
Parameter Summary
Parameter Summary
$check indicates whether the function should just check if the DBMS driver can perform
the requested table alterations if the value is true or actually perform them
otherwise.
Parameter Summary
Parameter Summary
createDatabaseSql($name)
Parameter Summary
Doctrine_Export_Reporter
Method Summary
Returns Name Description
pop
add
getIterator
Method Details
pop()
Parameter Summary
add($code, $message)
Parameter Summary
getIterator()
Parameter Summary
Doctrine_Export_Schema
Method Summary
Returns Name Description
string exportSchema
buildSchema Build schema array that can be dumped to file
Method Details
(string) exportSchema($schema, $format = 'yml', $directory = null,
$models = array())
Parameter Summary
<strong>returns</strong> of data in the specified format
Parameter Summary
Build schema array that can be dumped to file
Doctrine_Export_Sqlite
Method Summary
Returns Name Description
createIndexSql
createTableSql
string getAdvancedForeignKeyOptions
dropDatabase drop an existing database
string dropSequenceSql
alterTableSql
boolean createSequence
createDatabase Create sqlite database file
string createForeignKey Sqlite does not support foreign keys so we are
not even going to do anything if this function is
called to avoid any sql errors if a user tries to
use this on sqlite
string getIndexFieldDeclarationList
Method Details
createIndexSql($table, $name, $definition)
Parameter Summary
Parameter Summary
(string) getAdvancedForeignKeyOptions($definition)
Parameter Summary
dropDatabase($databaseFile)
Parameter Summary
(string) dropSequenceSql($sequenceName)
Parameter Summary
Parameter Summary
Parameter Summary
create sequence
createDatabase($databaseFile)
Parameter Summary
Parameter Summary
Sqlite does not support foreign keys so we are not even going to do anything if this function is
called to avoid any sql errors if a user tries to use this on sqlite
(string) getIndexFieldDeclarationList($fields)
Parameter Summary
getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set
an index declaration to be used in statements like CREATE TABLE.
Doctrine_Expression
Method Summary
Returns Name Description
parseExpression
setExpression
__toString
string parseClause
__construct
string getSql
getConnection
Method Details
parseExpression($expr)
Parameter Summary
setExpression($clause)
Parameter Summary
__toString()
Parameter Summary
(string) parseClause($clause)
Parameter Summary
Parameter Summary
Create an expression
(string) getSql()
Parameter Summary
<strong>returns</strong> The expression
getConnection()
Parameter Summary
<strong>returns</strong> The connection
Doctrine_Expression_Driver
Method Summary
Returns Name Description
pi
string upper
string avg
string md5 Note: Not SQL92, but common functionality
expr; Listing
0-8
$q->select('*')->from('table')
->where($e->eq('id', $e->not('null'));]]>
select('u.*') Listing
0-9
->from('User u')
->where($q->expr->neq('id', 1));]]>
string mod
string now
string sum
string isNull Example:
Listing select('u.*')
0-10
->from('User u')
->where($q->expr->isNull('id'));]]>
Listing select('u.*')
0-11
->from('User u')
->where($q->expr->lte('id', 1));]]>
sin
string gte Example:
Listing select('u.*')
0-12
->from('User u')
->where($q->expr->gte('id', 1));]]>
string count If a '*' is used instead of a column the number of selected rows is
returned.
getIdentifiers
string guid
string max
string eq Example:
Listing select('u.*')
0-13
->from('User u')
->where($q->expr->eq('id', 1));]]>
getIdentifier
string round
string lt Example:
select('u.*') Listing
0-14
->from('User u')
->where($q->expr->lt('id', 1));]]>
string gt Example:
select('u.*') Listing
0-15
->from('User u')
->where($q->expr->gt('id', 1));]]>
select('u.*') Listing
0-16
->from('User u')
->where($q->expr->isNotNull('id'));]]>
Method Details
pi()
Parameter Summary
(string) upper($str)
Parameter Summary
upper Returns the string $str with all characters changed to uppercase according to
the current character set mapping.
(string) avg($column)
Parameter Summary
(string) md5($column)
Parameter Summary
Returns the md5 sum of a field.
Note: Not SQL92, but common functionality
(string) add($args)
Parameter Summary
Returns the SQL to add values or expressions together.
add() accepts an arbitrary number of parameters. Each parameter must contain a value or an
expression or an array with values or expressions. Example: <pre><code> <![CDATA[ $q =
new Doctrine_Query(); $e = $q->expr;
$q->select('u.*') ->from('Use
<strong>returns</strong> an expression
Parameter Summary
Returns SQL that checks if an expression evaluates to a value between two values.
The parameter $expression is checked if it is between $value1 and $value2. Note: There is a
slight difference in the way BETWEEN works on some databases. http://www.w3schools.com/
sql/sql_between.asp. If you want complete database independence you should
<strong>returns</strong> logical expression
Parameter Summary
Returns the length of a text field.
(string) ltrim($str)
Parameter Summary
ltrim returns the string $str with leading space characters removed
__call($m, $a)
Parameter Summary
for all native RDBMS functions the function name itself is returned
(string) trim($str)
Parameter Summary
trim returns the string $str with leading and proceeding space characters removed
cos($value)
Parameter Summary
(string) regexp()
Parameter Summary
regexp returns the regular expression operator
(string) not($expression)
Parameter Summary
Returns the SQL for a logical not.
Example: <pre><code> <![CDATA[ $q = new Doctrine_Query(); $e = $q->expr; $q-
>select('*')->from('table') ->where($e->eq('id', $e->not('null'));]]> </code></pre>
<strong>returns</strong> a logical expression
(string) mul($args)
Parameter Summary
Returns the SQL to multiply values or expressions by eachother.
multiply() accepts an arbitrary number of parameters. Each parameter must contain a value
or an expression or an array with values or expressions. Example: <pre><code> <![CDATA[
$q = new Doctrine_Query(); $e = $q->expr;
$q->select('u.*') ->from
<strong>returns</strong> an expression
Parameter Summary
(string) rtrim($str)
Parameter Summary
rtrim returns the string $str with proceeding space characters removed
(string) coalesce()
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
Returns the remainder of the division operation $expression1 / $expression2.
(string) now()
Parameter Summary
Returns the current system date.
(string) sum($column)
Parameter Summary
(string) isNull($expression)
Parameter Summary
(string) sub($args)
Parameter Summary
Returns the SQL to subtract values or expressions from eachother.
subtract() accepts an arbitrary number of parameters. Each parameter must contain a value
or an expression or an array with values or expressions. Example: <pre><code> <![CDATA[
$q = new Doctrine_Query(); $e = $q->expr;
$q->select('u.*') ->from
<strong>returns</strong> an expression
Parameter Summary
Returns the SQL to check if one value is less than or equal to another value.
Example: <pre><code> <![CDATA[ $q = new Doctrine_Query(); $q->select('u.*') -
>from('User u') ->where($q->expr->lte('id', 1));]]> </code></pre>
<strong>returns</strong> logical expression
sin($value)
Parameter Summary
Parameter Summary
Returns the SQL to check if one value is greater than or equal to another value.
Example: <pre><code> <![CDATA[ $q = new Doctrine_Query(); $q->select('u.*') -
>from('User u') ->where($q->expr->gte('id', 1));]]> </code></pre>
<strong>returns</strong> logical expression
Parameter Summary
getIdentifiers($columns)
Parameter Summary
(string) guid()
Parameter Summary
Returns global unique identifier
<strong>returns</strong> to get global unique identifier
(string) max($column)
Parameter Summary
Parameter Summary
getIdentifier($column)
Parameter Summary
Parameter Summary
Rounds a numeric field to the number of decimals specified.
Parameter Summary
Returns the SQL to check if one value is less than another value.
Example: <pre><code> <![CDATA[ $q = new Doctrine_Query(); $q->select('u.*') -
>from('User u') ->where($q->expr->lt('id', 1));]]> </code></pre>
<strong>returns</strong> logical expression
Parameter Summary
Returns the SQL to check if one value is greater than another value.
Example: <pre><code> <![CDATA[ $q = new Doctrine_Query(); $q->select('u.*') -
>from('User u') ->where($q->expr->gt('id', 1));]]> </code></pre>
<strong>returns</strong> logical expression
(string) div($args)
Parameter Summary
Returns the SQL to divide values or expressions by eachother.
divide() accepts an arbitrary number of parameters. Each parameter must contain a value or
an expression or an array with values or expressions. Example: <pre><code> <![CDATA[ $q
= new Doctrine_Query(); $e = $q->expr;
$q->select('u.*') ->from('
<strong>returns</strong> an expression
(string) lower($str)
Parameter Summary
lower Returns the string $str with all characters changed to lowercase according to
the current character set mapping.
(string) isNotNull($expression)
Parameter Summary
(string) soundex($value)
Parameter Summary
soundex Returns a string to call a function to compute the soundex encoding of a
string
The string "?000" is returned if the argument is NULL.
<strong>returns</strong> SQL soundex function with given parameter
concat((string|array(string)) 0)
Parameter Summary
(string) acos($value)
Parameter Summary
returns arcus cosine SQL string
Parameter Summary
locate returns the position of the first occurrence of substring $substr in string $str
(string) min($column)
Parameter Summary
Doctrine_Expression_Firebird
Method Summary
Returns Name Description
string patternEscapeString
string functionTable
Method Details
(string) patternEscapeString()
Parameter Summary
build string to define escape pattern string
<strong>returns</strong> define escape pattern
(string) functionTable()
Parameter Summary
return string for internal table used when calling only a function
<strong>returns</strong> for internal table used when calling only a function
Doctrine_Expression_Mssql
Method Summary
Returns Name Description
string substring
string now There are three special variables for current date and time:
<
ul>
• CURRENT_TIMESTAMP (date and time, TIMESTAMP type)
</li> Listing
0-17
<li>
<p>CURRENT_DATE (date, DATE type)</p>
</li>
<li>
<p>CURRENT_TIME (time, TIME t
string guid
string concat
Method Details
(string) substring($value, $position, $length = null)
Parameter Summary
return string to call a function to get a substring inside an SQL statement
<strong>returns</strong> to call a function to get a substring
Parameter Summary
Return string to call a variable with the current timestamp inside an SQL statement
There are three special variables for current date and time: <ul> <li>
<p>CURRENT_TIMESTAMP (date and time, TIMESTAMP type)</p> </li> <li>
<p>CURRENT_DATE (date, DATE type)</p> </li> <li> <p>CURRENT_TIME (time, TIME t
<strong>returns</strong> to call a variable with the current timestamp
(string) guid()
Parameter Summary
Returns global unique identifier
<strong>returns</strong> to get global unique identifier
Parameter Summary
Returns string to concatenate two or more string parameters
<strong>returns</strong> to concatenate two strings
Doctrine_Expression_Mysql
Method Summary
Returns Name Description
string month
string matchPattern EXPERIMENTAL WARNING: this function is experimental and may
change signature at any time until labelled as non-experimental
string regexp
string random
string day
string guid
string year
Method Details
(string) month($column)
Parameter Summary
Returns the month from dbms
<strong>returns</strong> to get month from dbms
Parameter Summary
$field optional field name that is being matched against (might be required when
emulating ILIKE)
(string) regexp()
Parameter Summary
returns the regular expression operator
(string) random()
Parameter Summary
return string to call a function to get random value inside an SQL statement
<strong>returns</strong> to generate float between 0 and 1
(string) day($column)
Parameter Summary
Returns day from dbms
<strong>returns</strong> to get day from dbms
(string) guid()
Parameter Summary
(string) year($column)
Parameter Summary
Returns the year from dbms
<strong>returns</strong> to get year from dbms
Doctrine_Expression_Oracle
Method Summary
Returns Name Description
string random
string substring Note: Not SQL92, but common functionality.
string now There are three special variables for current date and time:
<
ul>
• CURRENT_TIMESTAMP (date and time, TIMESTAMP type)
Listing </li>
0-18
<li>
<p>CURRENT_DATE (date, DATE type)</p>
</li>
<li>
<p>CURRENT_TIME (time, TIME t
string guid
string concat concat() accepts an arbitrary number of parameters. Each parameter
must contain an expression
Method Details
(string) random()
Parameter Summary
<strong>returns</strong> an oracle SQL string that generates a float between 0 and 1
Parameter Summary
Parameter Summary
Return string to call a variable with the current timestamp inside an SQL statement
There are three special variables for current date and time: <ul> <li>
<p>CURRENT_TIMESTAMP (date and time, TIMESTAMP type)</p> </li> <li>
<p>CURRENT_DATE (date, DATE type)</p> </li> <li> <p>CURRENT_TIME (time, TIME t
<strong>returns</strong> to call a variable with the current timestamp
(string) guid()
Parameter Summary
Returns global unique identifier
<strong>returns</strong> to get global unique identifier
(string) concat($arg1,)
Parameter Summary
Doctrine_Expression_Pgsql
Method Summary
Returns Name Description
string md5 Note: Not SQL92, but common functionality md5() works with the
default PostgreSQL 8 versions. If you are using PostgreSQL 7.x or
older you need to make sure that the digest procedure is installed.
If you use RPMS (Redhat and Mandrake) install the postgr
string matchPattern EXPERIMENTAL WARNING: this function is experimental and may
change signature at any time until labelled as non-experimental
string regexp
return random
string date_part
string substring Note: Not SQL92, but common functionality.
string now
string age
string to_char
string translate
string concat
Method Details
(string) md5($column)
Parameter Summary
Returns the md5 sum of a field.
Note: Not SQL92, but common functionality md5() works with the default PostgreSQL 8
versions. If you are using PostgreSQL 7.x or older you need to make sure that the digest
procedure is installed. If you use RPMS (Redhat and Mandrake) install the postgr
Parameter Summary
$field optional field name that is being matched against (might be required when
emulating ILIKE)
(string) regexp()
Parameter Summary
<strong>returns</strong> the regular expression operator
(return) random()
Parameter Summary
return string to call a function to get random value inside an SQL statement
<strong>returns</strong> string to generate float between 0 and 1
Parameter Summary
Parameter Summary
(string) now()
Parameter Summary
Returns the SQL string to return the current system date and time.
Parameter Summary
Parameter Summary
Parameter Summary
return syntax for pgsql TRANSLATE() dbms function
(string) concat((an) 0)
Parameter Summary
0 array of values
Doctrine_Expression_Sqlite
Method Summary
Returns Name Description
rtrimImpl
string modImpl
string md5Impl
string locateImpl
sha1Impl
string regexp
string random
string substring Note: Not SQL92, but common functionality. SQLite only supports the
2 parameter variant of this function
string now
trimImpl
ltrimImpl
string soundex The string "?000" is returned if the argument is NULL.
string concatImpl
Method Details
rtrimImpl($str)
Parameter Summary
Parameter Summary
Returns the modules of the data that SQLite's mod() function receives.
(string) md5Impl($data)
Parameter Summary
Returns the md5 sum of the data that SQLite's md5() function receives.
Parameter Summary
locate returns the position of the first occurrence of substring $substr in string $str
that SQLite's locate() function receives
sha1Impl($str)
Parameter Summary
(string) regexp()
Parameter Summary
returns the regular expression operator
(string) random()
Parameter Summary
return string to call a function to get random value inside an SQL statement
<strong>returns</strong> to generate float between 0 and 1
Parameter Summary
Parameter Summary
Return string to call a variable with the current timestamp inside an SQL statement
There are three special variables for current date and time.
<strong>returns</strong> sqlite function as string
trimImpl($str)
Parameter Summary
ltrimImpl($str)
Parameter Summary
(string) soundex($value)
Parameter Summary
soundex Returns a string to call a function to compute the soundex encoding of a
string
The string "?000" is returned if the argument is NULL.
<strong>returns</strong> SQL soundex function with given parameter
(string) concatImpl()
Parameter Summary
Returns a concatenation of the data that SQLite's concat() function receives.
Doctrine_File
Method Summary
Returns Name Description
setTableDefinition
get
setUp
Method Details
setTableDefinition()
Parameter Summary
Parameter Summary
setUp()
Parameter Summary
Doctrine_File_Index
Method Summary
Returns Name Description
setTableDefinition
setUp
Method Details
setTableDefinition()
Parameter Summary
setUp()
Parameter Summary
Doctrine_Formatter
Method Summary
Returns Name Description
string getIndexName
string fixIndexName
convertBooleans This method takes care of that conversion
string getSequenceName
string getTableName
string escapePattern EXPERIMENTAL WARNING: this function is experimental
and may change signature at any time until labelled as
non-experimental
mixed quote
string quoteIdentifier Delimiting style depends on which database driver is
being used. NOTE: just because you CAN use delimited
identifiers doesn't mean you SHOULD use them. In
general, they end up causing way more problems than
they solve. Portability is broken by usi
string quoteMultipleIdentifier
string fixSequenceName
Method Details
(string) getIndexName($idx)
Parameter Summary
(string) fixIndexName($idx)
Parameter Summary
convertBooleans($item)
Parameter Summary
convertBooleans some drivers need the boolean values to be converted into integers
when using DQL API
This method takes care of that conversion
(string) getSequenceName($sqn)
Parameter Summary
(string) getTableName($table)
Parameter Summary
(string) escapePattern($text)
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
(string) fixSequenceName($sqn)
Parameter Summary
Doctrine_Hook
Method Summary
Returns Name Description
setFieldParser
boolean hookWhere
hookLimit
boolean hookOrderby
getQuery
__construct
hookOffset
setTypeParser
Method Details
setFieldParser($field, (string|object) $parser)
Parameter Summary
(boolean) hookWhere($params)
Parameter Summary
hookWhere builds DQL query where part from given parameter array
<strong>returns</strong> whether or not the hooking was
hookLimit($limit)
Parameter Summary
set the hook limit
(boolean) hookOrderby($params)
Parameter Summary
$params an array containing all fields which the built query should be ordered by
hookOrderBy builds DQL query orderby part from given parameter array
<strong>returns</strong> whether or not the hooking was successful
getQuery()
Parameter Summary
<strong>returns</strong> returns the query object associated with this hook
__construct((Doctrine_Query) $query)
Parameter Summary
hookOffset($offset)
Parameter Summary
set the hook offset
Parameter Summary
Doctrine_Hook_Equal
Method Summary
Returns Name Description
parse Parses given field and field value to DQL condition and parameters. This
method should always return prepared statement conditions (conditions
that use placeholders instead of literal values).
Method Details
parse($alias, $field, $value)
Parameter Summary
Parses given field and field value to DQL condition and parameters. This method should
always return prepared statement conditions (conditions that use placeholders instead of
literal values).
Doctrine_Hook_Integer
Method Summary
Returns Name Description
parseSingle Parses given field and field value to DQL condition and parameters.
This method should always return prepared statement conditions
(conditions that use placeholders instead of literal values).
Method Details
parseSingle($alias, $field, $value)
Parameter Summary
parse
Parses given field and field value to DQL condition and parameters. This method should
always return prepared statement conditions (conditions that use placeholders instead of
literal values).
Doctrine_Hook_Parser
Method Summary
Returns Name Description
array getParams
parse Parses given field and field value to DQL condition and parameters.
This method should always return prepared statement conditions
(conditions that use placeholders instead of literal values).
getCondition
Method Details
(array) getParams()
Parameter Summary
getParams returns the parameters associated with this parser
Parameter Summary
Parses given field and field value to DQL condition and parameters. This method should
always return prepared statement conditions (conditions that use placeholders instead of
literal values).
getCondition()
Parameter Summary
Doctrine_Hook_Parser_Complex
Method Summary
Returns Name Description
parseSingle
parse Parses given field and field value to DQL condition and parameters.
This method should always return prepared statement conditions
(conditions that use placeholders instead of literal values).
parseClause
__construct
Method Details
parseSingle($alias, $field, $value)
Parameter Summary
Parameter Summary
Parses given field and field value to DQL condition and parameters. This method should
always return prepared statement conditions (conditions that use placeholders instead of
literal values).
Parameter Summary
__construct()
Parameter Summary
Constructor.
Doctrine_Hook_WordLike
Method Summary
Returns Name Description
parseSingle Parses given field and field value to DQL condition and parameters.
This method should always return prepared statement conditions
(conditions that use placeholders instead of literal values).
Method Details
parseSingle($alias, $field, $value)
Parameter Summary
parse
Parses given field and field value to DQL condition and parameters. This method should
always return prepared statement conditions (conditions that use placeholders instead of
literal values).
Doctrine_Hydrator
Method Summary
Returns Name Description
array hydrateResultSet This is method defines the core of Doctrine's object population
algorithm hence this method strives to be as fast as possible
The key idea is the loop over the rowset only once doing all the
needed operations within this massive loop.
array _gatherRowData
Method Details
(array) hydrateResultSet($stmt, $tableAliases, $aliasMap)
Parameter Summary
$tableAliases Array that maps table aliases (SQL alias => DQL alias)
$aliasMap Array that maps DQL aliases to their components (DQL alias => array(
'table' => Table object, 'parent' => Parent
DQL alias (if any), &apos
Parameter Summary
Puts the fields of a data row into a new array, grouped by the component they belong
to. The column names in the result set are mapped to their field names during this
procedure.
<strong>returns</strong> An array with all the fields (name => value) of the data row,
grouped by their component (alias).
Doctrine_Hydrator_Abstract
Method Summary
Returns Name Description
integer getHydrationMode
array hydrateResultSet This is method defines the core of Doctrine object
population algorithm hence this method strives to
be as fast as possible The key idea is the loop over
the rowset only once doing all the needed
operations within this massive loop.
setHydrationMode
__construct
Doctrine_Hydrate setQueryComponents
array getQueryComponents
Method Details
(integer) getHydrationMode()
Parameter Summary
Get the fetchmode
<strong>returns</strong> One of the Doctrine::HYDRATE_* constants
Parameter Summary
parseData parses the data returned by statement object
This is method defines the core of Doctrine object population algorithm hence this method
strives to be as fast as possible The key idea is the loop over the rowset only once doing all
the needed operations within this massive loop.
setHydrationMode($hydrationMode, $fetchmode)
Parameter Summary
__construct((Doctrine_Connection|null) $connection)
Parameter Summary
constructor
Parameter Summary
(array) getQueryComponents()
Parameter Summary
getAliasMap returns the component alias map
<strong>returns</strong> component alias map
Doctrine_Hydrator_ArrayDriver
Method Summary
Returns Name Description
setLastElement
initRelated
getNullPointer
getLastKey
getElementCollection
registerCollection
flush
getElement
Method Details
setLastElement([[[amp]]]$prev, [[[amp]]]$coll, (boolean|integer) $index,
$dqlAlias, $oneToOne)
Parameter Summary
sets the last element of given data array / collection as previous element
initRelated([[[amp]]]$data, $name)
Parameter Summary
getNullPointer()
Parameter Summary
getLastKey([[[amp]]]$data)
Parameter Summary
getElementCollection($component)
Parameter Summary
registerCollection($coll)
Parameter Summary
flush()
Parameter Summary
getElement($data, $component)
Parameter Summary
Doctrine_Hydrator_RecordDriver
Method Summary
Returns Name Description
setLastElement
initRelated
getNullPointer
getLastKey
getElementCollection
registerCollection
flush
string _getClassnameToReturn Check the subclasses option and the inheritanceMap for
each subclass to see if all the maps in a subclass is met.
If this is the case return that subclass name. If no
subclasses match or if there are no subclasses defined
return the name of the class f
getElement
Method Details
setLastElement([[[amp]]]$prev, [[[amp]]]$coll, (boolean|integer) $index,
$dqlAlias, $oneToOne)
Parameter Summary
sets the last element of given data array / collection as previous element
Parameter Summary
getNullPointer()
Parameter Summary
getLastKey($coll)
Parameter Summary
getElementCollection($component)
Parameter Summary
registerCollection(( ) $coll)
Parameter Summary
flush()
Parameter Summary
Parameter Summary
Get the classname to return. Most often this is just the options&[apos;name']
Check the subclasses option and the inheritanceMap for each subclass to see if all the maps
in a subclass is met. If this is the case return that subclass name. If no subclasses match or if
there are no subclasses defined return the name of the class f
<strong>returns</strong> The name of the class to create
getElement($data, $component)
Parameter Summary
Doctrine_I18n
Method Summary
Returns Name Description
setTableDefinition
__construct
buildRelation
Method Details
setTableDefinition($Doctrine_Table)
Parameter Summary
buildDefinition
__construct($options)
Parameter Summary
buildRelation()
Parameter Summary
Doctrine_Import
Method Summary
Returns Name Description
boolean userExists
boolean viewExists
array listTableViews
boolean databaseExists
array listTableIndexes
array listTableColumns
boolean tableExists
array listViews
array listDatabases
boolean tableIndexExists
boolean tableViewExists
boolean functionExists
array listUsers
array listTables
boolean tableTriggerExists
array importSchema method for importing existing schema to Doctrine_Record
classes
boolean tableConstraintExists
array listFunctions
array listTableConstraints
array listTriggers
boolean triggerExists
boolean tableColumnExists
array listTableRelations Expects an array of this format to be returned with all the
relationships in it where the key is the name of the foreign
table, and the value is an array containing the local and
foreign column name Array ( [groups] => Array ( [local
array listSequences
boolean sequenceExists
array listTableTriggers
Method Details
(boolean) userExists($user)
Parameter Summary
checks if a user exists
Parameter Summary
checks if a view exists
(array) listTableViews($table)
Parameter Summary
(boolean) databaseExists($database)
Parameter Summary
checks if a database exists
(array) listTableIndexes($table)
Parameter Summary
(array) listTableColumns($table)
Parameter Summary
Parameter Summary
checks if a table exists
Parameter Summary
lists database views
(array) listDatabases()
Parameter Summary
lists all databases
Parameter Summary
Parameter Summary
(boolean) functionExists($function)
Parameter Summary
checks if a function exists
(array) listUsers()
Parameter Summary
lists database users
Parameter Summary
lists tables
Parameter Summary
Parameter Summary
method for importing existing schema to Doctrine_Record classes
<strong>returns</strong> the names of the imported classes
Parameter Summary
(array) listFunctions()
Parameter Summary
lists all availible database functions
(array) listTableConstraints($table)
Parameter Summary
Parameter Summary
Parameter Summary
checks if a trigger exists
Parameter Summary
(array) listTableRelations($table)
Parameter Summary
Parameter Summary
lists all database sequences
Parameter Summary
checks if a sequence exists
(array) listTableTriggers($table)
Parameter Summary
Doctrine_Import_Builder
Method Summary
Returns Name Description
setSuffix
buildAttributes
string buildDefinition
buildActAs
setTargetPath
setBaseClassPrefix
setPackagesPrefix
setBaseClassesDirectory
setOptions
writeDefinition
buildIndexes
setBaseClassName
writeTableDefinition
string buildChecks
loadTemplate Loads the class template used for generating classes
string buildSetUp
buildAccessors
__construct
string getTargetPath
buildTableDefinition
buildColumns
setPackagesPath
setOption
string buildListeners
buildRecord
buildPhpDocs
getBaseClassPrefix
buildOptions
Method Details
setSuffix($suffix)
Parameter Summary
buildAttributes($attributes, $array)
Parameter Summary
(string) buildDefinition($definition)
Parameter Summary
buildActAs($actAs)
Parameter Summary
setTargetPath($path)
Parameter Summary
$path path the path where imported files are being generated
setBaseClassPrefix($prefix)
Parameter Summary
setPackagesPrefix($packagesPrefix)
Parameter Summary
setPackagePath
setBaseClassesDirectory($baseClassesDirectory)
Parameter Summary
setOptions($options)
Parameter Summary
Parameter Summary
buildIndexes($indexes, $array)
Parameter Summary
setBaseClassName($className)
Parameter Summary
Parameter Summary
(string) buildChecks($checks)
Parameter Summary
Build php code for record checks
loadTemplate()
Parameter Summary
Loads the class template used for generating classes
Parameter Summary
buildAccessors($definition)
Parameter Summary
__construct()
Parameter Summary
(string) getTargetPath()
Parameter Summary
<strong>returns</strong> the path where imported files are being generated
buildTableDefinition($definition)
Parameter Summary
buildColumns($columns, $array)
Parameter Summary
setPackagesPath($packagesPath)
Parameter Summary
setOption($key, $value)
Parameter Summary
(string) buildListeners($listeners)
Parameter Summary
Build php code for adding record listeners
Parameter Summary
buildPhpDocs($definition)
Parameter Summary
getBaseClassPrefix()
Parameter Summary
buildOptions($options, $array)
Parameter Summary
buildTableOptions
Parameter Summary
Specify whether or not to generate children table classes
Parameter Summary
Specify whether or not to generate classes which extend from generated base classes
Doctrine_Import_Firebird
Method Summary
Returns Name Description
array listTableViews
mixed listTableColumns
array listViews
array listUsers
array listTables
array listFunctions
array listTableTriggers
Method Details
(array) listTableViews($table)
Parameter Summary
(mixed) listTableColumns($table)
Parameter Summary
Parameter Summary
list the views in the database
<strong>returns</strong> data array containing all database views
(array) listUsers()
Parameter Summary
list all users
<strong>returns</strong> data array containing all database users
Parameter Summary
list all tables in the current database
<strong>returns</strong> data array
(array) listFunctions()
Parameter Summary
list all functions in the current database
<strong>returns</strong> data array containing all availible functions
(array) listTableTriggers($table)
Parameter Summary
$table The name of the table from the previous database to query against.
This function will be called to get all triggers of the current database ($this->conn-
>getDatabase())
<strong>returns</strong> data array containing all triggers for given table
Doctrine_Import_Mssql
Method Summary
Returns Name Description
array listTableViews
array listTableIndexes
array listTableColumns
array listViews
array listTables
array listTriggers
array listTableRelations Expects an array of this format to be returned with all the
relationships in it where the key is the name of the foreign
table, and the value is an array containing the local and foreign
column name Array ( [groups] => Array ( [local
array listSequences
array listTableTriggers
Method Details
(array) listTableViews($table)
Parameter Summary
(array) listTableIndexes($table)
Parameter Summary
(array) listTableColumns($table)
Parameter Summary
Parameter Summary
lists database views
Parameter Summary
lists tables
Parameter Summary
lists all triggers
Parameter Summary
Parameter Summary
lists all database sequences
(array) listTableTriggers($table)
Parameter Summary
Doctrine_Import_Mysql
Method Summary
Returns Name Description
array listTableIndexes
array listTableColumns
array listViews
array listTables
array listTableConstraints
array listTableRelations Expects an array of this format to be returned with all the
relationships in it where the key is the name of the foreign
table, and the value is an array containing the local and
foreign column name Array ( [groups] => Array ( [local
array listSequences
Method Details
(array) listTableIndexes($table)
Parameter Summary
(array) listTableColumns($table)
Parameter Summary
Parameter Summary
lists database views
Parameter Summary
lists tables
(array) listTableConstraints($table)
Parameter Summary
Parameter Summary
Expects an array of this format to be returned with all the relationships in it where the key is
the name of the foreign table, and the value is an array containing the local and foreign
column name Array ( [groups] => Array ( [local
Parameter Summary
lists all database sequences
Doctrine_Import_Oracle
Method Summary
Returns Name Description
array listTableViews
array listTableIndexes
array listTableColumns
array listViews
array listDatabases
array listUsers
array listTables
array listFunctions
array listTableConstraints
array listTriggers
listTableRelations
array listSequences
array listTableTriggers
Method Details
(array) listTableViews($table)
Parameter Summary
(array) listTableIndexes($table)
Parameter Summary
(array) listTableColumns($table)
Parameter Summary
Parameter Summary
lists database views
(array) listDatabases()
Parameter Summary
lists all databases
(array) listUsers()
Parameter Summary
lists database users
Parameter Summary
lists tables
(array) listFunctions()
Parameter Summary
lists all availible database functions
(array) listTableConstraints($table)
Parameter Summary
Parameter Summary
lists all database triggers
listTableRelations($table)
Parameter Summary
list table relations
Parameter Summary
lists all database sequences
(array) listTableTriggers($table)
Parameter Summary
Doctrine_Import_Pgsql
Method Summary
Returns Name Description
array listTableViews
array listTableIndexes
array listTableColumns
array listTables
array listTableConstraints
array listTriggers
listTableRelations
array listTableTriggers
Method Details
(array) listTableViews($table)
Parameter Summary
(array) listTableIndexes($table)
Parameter Summary
(array) listTableColumns($table)
Parameter Summary
Parameter Summary
lists tables
(array) listTableConstraints($table)
Parameter Summary
Parameter Summary
lists all database triggers
listTableRelations($table)
Parameter Summary
(array) listTableTriggers($table)
Parameter Summary
Doctrine_Import_Schema
Method Summary
Returns Name Description
getOption
getOptions
_processInheritance Perform some processing on inheritance. Sets
the default type and sets some default values
for certain types
setOptions
importSchema A method to import a Schema and translate it
into a Doctrine_Record object
array buildSchema Loop throug directories of schema files and
parse them all in to one complete array of
schema information
_fixDuplicateRelations Ensure the relations for each class are unique
and that no duplicated relations exist from the
auto generated relations and the user
explicitely defining the opposite end
setOption
_autoCompleteOppositeRelations Loop through all relationships building the
opposite ends of each relationship and make
sure no duplicate relations exist
_validateSchemaElement
_buildRelationships Loop through an array of schema information
and build all the necessary relationship
information Will attempt to auto complete
relationships and simplify the amount of
information required for defining a relationship
array parseSchema A method to parse a Schema and translate it
into a property array. The function returns that
property array.
_buildUniqueRelationKey Build a unique key to identify a relationship by
Md5 hash of all the relationship parameters
string _findBaseSuperClass
Method Details
getOption($name)
Parameter Summary
getOptions()
Parameter Summary
_processInheritance($array)
Parameter Summary
Perform some processing on inheritance. Sets the default type and sets some default values
for certain types
setOptions($options)
Parameter Summary
Parameter Summary
Parameter Summary
$schema Array of schema files or single schema file. Array of directories with schema files
or single directory
$format Format of the files we are parsing and building from
Loop throug directories of schema files and parse them all in to one complete array of schema
information
_fixDuplicateRelations()
Parameter Summary
Ensure the relations for each class are unique and that no duplicated relations exist from the
auto generated relations and the user explicitely defining the opposite end
setOption($name, $value)
Parameter Summary
_autoCompleteOppositeRelations()
Parameter Summary
fixRelationships
Loop through all relationships building the opposite ends of each relationship and make sure
no duplicate relations exist
Parameter Summary
_buildRelationships($array)
Parameter Summary
buildRelationships
Loop through an array of schema information and build all the necessary relationship
information Will attempt to auto complete relationships and simplify the amount of
information required for defining a relationship
Parameter Summary
A method to parse a Schema and translate it into a property array. The function returns that
property array.
<strong>returns</strong> Built array of schema information
_buildUniqueRelationKey($relation)
Parameter Summary
Build a unique key to identify a relationship by Md5 hash of all the relationship parameters
Parameter Summary
Find the base super class for this inheritance child. We need to move all levels of
children to the top most parent.
<strong>returns</strong> Class to get find the parent for
Doctrine_Import_Sqlite
Method Summary
Returns Name Description
array listTableViews
array listTableIndexes
array listTableColumns
array listViews
array listDatabases
array listUsers
array listTables
array listFunctions
array listTableConstraints
array listTriggers
array listSequences
array listTableTriggers
Method Details
(array) listTableViews($table)
Parameter Summary
(array) listTableIndexes($table)
Parameter Summary
(array) listTableColumns($table)
Parameter Summary
Parameter Summary
lists database views
(array) listDatabases()
Parameter Summary
lists all databases
(array) listUsers()
Parameter Summary
lists database users
Parameter Summary
lists tables
(array) listFunctions()
Parameter Summary
lists all availible database functions
(array) listTableConstraints($table)
Parameter Summary
Parameter Summary
lists all database triggers
Parameter Summary
lists all database sequences
(array) listTableTriggers($table)
Parameter Summary
Doctrine_Inflector
Method Summary
Returns Name Description
string classify
boolean seemsUtf8 By bmorel at ssi dot fr
string urlize
string classifyCallback
string unaccent
string tableize
Method Details
(string) classify($word)
Parameter Summary
Convert a word in to the format for a Doctrine class name. Converts 'table_name' to
'TableName'
<strong>returns</strong> Classified word
(boolean) seemsUtf8($string)
Parameter Summary
Check if a string has utf7 characters in it
By bmorel at ssi dot fr
(string) urlize($text)
Parameter Summary
Convert any passed string to a url friendly string. Converts 'My first blog post' to
'my-first-blog-post'
<strong>returns</strong> Urlized text
(string) classifyCallback($matches)
Parameter Summary
(string) unaccent($string)
Parameter Summary
(string) tableize($word)
Parameter Summary
Convert word in to the format for a Doctrine table name. Converts 'ModelName' to
'model_name'
<strong>returns</strong> Tableized word
Doctrine_IntegrityMapper
Method Summary
Returns Name Description
buildIntegrityRelations
processDeleteIntegrity
invokeIntegrityActions
array buildIntegrityRelationQuery
Method Details
buildIntegrityRelations(( ) $table, [[[amp]]]$aliases, [[[amp]]]$fields,
[[[amp]]]$indexes, [[[amp]]]$components, $aliases, $fields, $indexes,
$components)
Parameter Summary
processDeleteIntegrity(( ) $record)
Parameter Summary
invokeIntegrityActions(( ) $record)
Parameter Summary
Parameter Summary
<strong>returns</strong> The result
Doctrine_Lib
Method Summary
Returns Name Description
string getTableAsString returns a string representation of Doctrine_Table
object
makeDirectories Makes the directories for a path recursively
string getCollectionAsString returns a string representation of
Doctrine_Collection object
string getConnectionAsString returns a string representation of
Doctrine_Connection object
copyDirectory
string formatSql
boolean isValidClassName checks for valid class name (uses camel case and
underscores)
string getRecordStateAsString
getConnectionStateAsString returns a given connection state as string
removeDirectories
arrayDeepMerge
string getRecordAsString returns a string representation of Doctrine_Record
object
Method Details
(string) getTableAsString(( ) $table)
Parameter Summary
returns a string representation of Doctrine_Table object
Parameter Summary
Makes the directories for a path recursively
Parameter Summary
returns a string representation of Doctrine_Collection object
Parameter Summary
returns a string representation of Doctrine_Connection object
copyDirectory($source, $dest)
Parameter Summary
(string) formatSql($sql)
Parameter Summary
<strong>returns</strong> the formated sql
Parameter Summary
checks for valid class name (uses camel case and underscores)
(string) getRecordStateAsString($state)
Parameter Summary
getConnectionStateAsString($state)
Parameter Summary
removeDirectories($folderPath)
Parameter Summary
arrayDeepMerge()
Parameter Summary
Parameter Summary
returns a string representation of Doctrine_Record object
Doctrine_Locking_Manager_Pessimistic
Method Summary
Returns Name Description
__construct When the CREATE_TABLES attribute of the connection on
which the manager is supposed to work on is set to true, the
locking table is created.
integer releaseAgedLocks When called without parameters all locks older than 15
minutes are released.
mixed getLockOwner
boolean releaseLock
boolean getLock
Method Details
__construct(( ) $conn)
Parameter Summary
Parameter Summary
Parameter Summary
Gets the identifier that identifies the owner of the lock on the given record.
<strong>returns</strong> The unique user identifier that identifies the owner of the lock.
Parameter Summary
Releases a lock on a
<strong>returns</strong> TRUE if a lock was released, FALSE if no lock was released
Parameter Summary
Obtains a lock on a
<strong>returns</strong> TRUE if the locking was successful, FALSE if another user holds
a lock on this record
<strong>throws</strong> Doctrine_Locking_Exception If the locking failed due to database
errors
Doctrine_Manager
Method Summary
Returns Name Description
connection if the adapter paramater is not set this method
acts as a short cut for
Doctrine_Manager::getInstance()-
>getCurrentConnection()
getConnectionForComponent
boolean bindComponent
boolean hasConnectionForComponent
array _buildDsnPartsArray
getInstance
createDatabases
string __toString
boolean contains
getCurrentConnection
setQueryRegistry
openConnection
registerValidators
integer count
array getConnections
dropDatabases
boolean setDefaultAttributes
string getConnectionName
ArrayIterator getIterator
getConnection
array getValidators
setCurrentConnection
getQueryRegistry
array parsePdoDsn
closeConnection
array parseDsn
Method Details
connection((PDO|Doctrine_Adapter_Interface) $adapter = null, $name =
null)
Parameter Summary
Open a new connection. If the adapter parameter is set this method acts as a short
cut for Doctrine_Manager::getInstance()->openConnection($adapter, $name);
if the adapter paramater is not set this method acts as a short cut for
Doctrine_Manager::getInstance()->getCurrentConnection()
<strong>throws</strong> Doctrine_Manager_Exception if trying to bind a connection with
an existing name
getConnectionForComponent($componentName)
Parameter Summary
Get the connection instance for the specified component
Parameter Summary
Binds given component to given connection this means that when ever the given
component uses a connection it will be using the bound connection instead of the
current connection
Parameter Summary
Check if a component is bound to a connection
(array) _buildDsnPartsArray($dsn)
Parameter Summary
Build the blank dsn parts array used with parseDsn()
getInstance()
Parameter Summary
Returns an instance of this class (this class uses the singleton pattern)
createDatabases($specifiedConnections = array())
Parameter Summary
(string) __toString()
Parameter Summary
Returns a string representation of this object
(boolean) contains($key)
Parameter Summary
getCurrentConnection()
Parameter Summary
Get the current connection instance
setQueryRegistry(( ) $registry)
Parameter Summary
Sets the query registry
<strong>returns</strong> this object
Parameter Summary
registerValidators($validators)
Parameter Summary
(integer) count()
Parameter Summary
Returns the number of opened connections
(array) getConnections()
Parameter Summary
Returns all opened connections
dropDatabases($specifiedConnections = array())
Parameter Summary
(boolean) setDefaultAttributes()
Parameter Summary
setDefaultAttributes sets default attributes
Parameter Summary
(ArrayIterator) getIterator()
Parameter Summary
Returns an ArrayIterator that iterates through all connections
getConnection($name)
Parameter Summary
(array) getValidators()
Parameter Summary
Get available doctrine validators
setCurrentConnection($key)
Parameter Summary
getQueryRegistry()
Parameter Summary
Lazy-initializes the query registry object and returns it
(array) parsePdoDsn($dsn)
Parameter Summary
closeConnection(( ) $connection)
Parameter Summary
Closes the specified connection
(array) parseDsn($dsn)
Parameter Summary
Parse a Doctrine style dsn string in to an array of parts
<strong>returns</strong> Parsed contents of DSN
Doctrine_Migration
Method Summary
Returns Name Description
_transaction
integer getNextVersion
boolean _createMigrationTable
getMigrationClass
string getMigrationClassesDirectory
integer getNextMigrationClassVersion
setTableName
string getTableName
boolean migrateDryRun
array getMigrationClasses
array getErrors
boolean hasMigrated
__construct The classes will be loaded and the migration
table will be created if it does not already
exist
integer getCurrentVersion
integer getLatestVersion
boolean hasErrors
integer getNumErrors
setCurrentVersion
_doMigrateStep
integer _doMigrate
loadMigrationClassesFromDirectory
_throwErrorsException
integer migrate
addError
loadMigrationClass
Method Details
_transaction($funcName)
Parameter Summary
Wrapper for performing transaction functions on all available connections
(integer) getNextVersion()
Parameter Summary
Get the next incremented version number based on the latest version number using
getLatestVersion()
(boolean) _createMigrationTable()
Parameter Summary
Create the migration table and return true. If it already exists it will silence the
exception and return false
<strong>returns</strong> Whether or not the table was created. Exceptions are silenced
when table already exists
getMigrationClass($num)
Parameter Summary
Get instance of migration class for number/version specified
<strong>throws</strong> Doctrine_Migration_Exception $e
(string) getMigrationClassesDirectory()
Parameter Summary
Get the migration classes directory
(integer) getNextMigrationClassVersion()
Parameter Summary
Get the next incremented class version based on the loaded migration classes
setTableName($tableName)
Parameter Summary
Set the table name for storing the version number for this migration instance
(string) getTableName()
Parameter Summary
Get the table name for storing the version number for this migration instance
Parameter Summary
Run the migration process but rollback at the very end. Returns true or false for
whether or not the migration can be ran
(array) getMigrationClasses()
Parameter Summary
Get all the loaded migration classes. Array where key is the number/version and the
value is the class name.
(array) getErrors()
Parameter Summary
Get all the error exceptions
(boolean) hasMigrated()
Parameter Summary
hReturns true/false for whether or not this database has been migrated in the past
__construct($directory = null)
Parameter Summary
Specify the path to the directory with the migration classes.
The classes will be loaded and the migration table will be created if it does not already exist
(integer) getCurrentVersion()
Parameter Summary
Get the current version of the database
(integer) getLatestVersion()
Parameter Summary
Gets the latest possible version from the loaded migration classes
(boolean) hasErrors()
Parameter Summary
Whether or not the migration instance has errors
(integer) getNumErrors()
Parameter Summary
Get the number of errors
setCurrentVersion($number)
Parameter Summary
Set the current version of the database
_doMigrateStep($direction, $num)
Parameter Summary
Perform a single migration step. Executes a single migration class and processes the
changes
(integer) _doMigrate($to)
Parameter Summary
Do the actual migration process
<strong>throws</strong> Doctrine_Exception
loadMigrationClassesFromDirectory($directory = null)
Parameter Summary
Load migration classes from the passed directory. Any file found with a .php
extension will be passed to the loadMigrationClass()
_throwErrorsException()
Parameter Summary
Throw an exception with all the errors trigged during the migration
<strong>throws</strong> Doctrine_Migration_Exception $e
Parameter Summary
addError($e)
Parameter Summary
Add an error to the stack. Excepts some type of Exception
Parameter Summary
Load the specified migration class name in to this migration instances queue of
migration classes to execute. It must be a child of Doctrine_Migration in order to be
loaded.
Doctrine_Migration_Base
Method Summary
Returns Name Description
removeColumn
renameTable
createConstraint
_addChange
table
renameColumn
foreignKey
dropTable
column
postUp
dropConstraint
preUp
constraint
preDown
addColumn
postDown
dropForeignKey
removeIndex
array getChanges
changeColumn
createForeignKey
getNumChanges
addIndex
createTable
index
Method Details
removeColumn($tableName, $columnName)
Parameter Summary
renameTable($oldTableName, $newTableName)
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
dropTable($tableName)
Parameter Summary
Parameter Summary
postUp()
Parameter Summary
Parameter Summary
preUp()
Parameter Summary
Parameter Summary
preDown()
Parameter Summary
Parameter Summary
postDown()
Parameter Summary
dropForeignKey($tableName, $name)
Parameter Summary
removeIndex($tableName, $indexName)
Parameter Summary
(array) getChanges()
Parameter Summary
Get the changes that have been added on this migration class instance
Parameter Summary
Parameter Summary
getNumChanges()
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
Doctrine_Migration_Builder
Method Summary
Returns Name Description
string buildCreateForeignKey
string buildDropForeignKey
generateMigrationsFromDb
setMigrationsPath
string buildDropTable
sgtring buildAddIndex
string buildRemoveIndex
array generateMigrationsFromDiff
loadTemplate
boolean generateMigrationsFromModels
__construct
Listing
0-19
string buildMigrationClass
string buildRemoveColumn
string getMigrationsPath
mixed generateMigrationClass
string buildChangeColumn
string buildAddColumn
string buildCreateTable
Method Details
(string) buildCreateForeignKey($tableName, $definition)
Parameter Summary
Build the code for creating foreign keys
Parameter Summary
Build the code for dropping foreign keys
generateMigrationsFromDb()
Parameter Summary
Generate a set of migration classes from the existing databases
setMigrationsPath($path)
Parameter Summary
$path path the path where migration classes are stored and being generated
(string) buildDropTable($tableData)
Parameter Summary
Build the code for dropping tables
Parameter Summary
Build the code for adding indexes
Parameter Summary
Build the code for removing indexes
Parameter Summary
loadTemplate()
Parameter Summary
Loads the class template used for generating classes
Parameter Summary
__construct($migrationsPath = null)
Parameter Summary
Instantiate new instance of the Doctrine_Migration_Builder class
<pre><code> <![CDATA[ $builder = new Doctrine_Migration_Builder('/path/to/
migrations');]]> </code></pre>
Parameter Summary
Parameter Summary
Build the code for removing columns
(string) getMigrationsPath()
Parameter Summary
Get the path where generated migration classes are written to
<strong>returns</strong> the path where migration classes are stored and being generated
Parameter Summary
Parameter Summary
Parameter Summary
Build the code for adding columns
(string) buildCreateTable($tableData)
Parameter Summary
Build the code for creating tables
Doctrine_Migration_Diff
Method Summary
Returns Name Description
array _buildChanges
array generateChanges
__construct
generateMigrationClasses();]]> Listing
0-20
string getUniqueId
array generateMigrationClasses
string _generateModels
array _buildModelInformation
array _diff
Method Details
(array) _buildChanges($from, $to)
Parameter Summary
Build array of changes between the from and to array of schema information
(array) generateChanges()
Parameter Summary
Generate an array of changes found between the from and to schema information.
Parameter Summary
(string) getUniqueId()
Parameter Summary
Get unique hash id for this migration instance
(array) generateMigrationClasses()
Parameter Summary
Generate a migration class for the changes in this diff instance
Parameter Summary
(array) _buildModelInformation($models)
Parameter Summary
Build all the model schema information for the passed array of models
<strong>returns</strong> Array of schema information for all the passed models
Parameter Summary
Doctrine_Migration_Process
Method Summary
Returns Name Description
processRenamedTable
processDroppedTable
processCreatedTable
processCreatedIndex
processDroppedForeignKey
processCreatedColumn
processRenamedColumn
processDroppedIndex
processChangedColumn
processCreatedForeignKey
processCreatedConstraint
processDroppedConstraints
getConnection
processDroppedColumn
Method Details
processRenamedTable($table)
Parameter Summary
processDroppedTable($table)
Parameter Summary
processCreatedTable($table)
Parameter Summary
processCreatedIndex($index)
Parameter Summary
processDroppedForeignKey($foreignKey)
Parameter Summary
processCreatedColumn($column)
Parameter Summary
processRenamedColumn($column)
Parameter Summary
processDroppedIndex($index)
Parameter Summary
processChangedColumn($column)
Parameter Summary
processCreatedForeignKey($foreignKey)
Parameter Summary
processCreatedConstraint($constraint)
Parameter Summary
processDroppedConstraints($constraint)
Parameter Summary
getConnection($tableName)
Parameter Summary
Get the connection for specified table name
processDroppedColumn($column)
Parameter Summary
Doctrine_Node
Method Summary
Returns Name Description
traverse
setIteratorType
object instance getRecord
setIteratorOptions
__construct
object factory
setRecord
getIterator
Method Details
traverse($type = 'Pre', $options = array())
Parameter Summary
setIteratorType($type)
Parameter Summary
sets node's iterator type
Parameter Summary
getter for record attribute
<strong>returns</strong> of Doctrine_Record
setIteratorOptions($options)
Parameter Summary
sets node's iterator options
Parameter Summary
$options options
Parameter Summary
setRecord(( ) $record)
Parameter Summary
Parameter Summary
get iterator
Doctrine_Node_Interface
Method Summary
Returns Name Description
iterator getDescendants
bool insertAsNextSiblingOf
int getLevel
moveAsPrevSiblingOf
getAncestors
bool hasParent
delete
bool hasPrevSibling
bool isEqualTo
moveAsLastChildOf
array getChildren
bool hasChildren
bool isLeaf
bool hasNextSibling
addChild
bool isRoot
getLastChild
moveAsFirstChildOf
getParent
moveAsNextSiblingOf
string getPath
bool insertAsPrevSiblingOf
int getNumberDescendants
getPrevSibling
array getSiblings
int getNumberChildren
bool insertAsFirstChildOf
getNextSibling
bool insertAsParentOf
bool isDescendantOf
bool insertAsLastChildOf
bool isDescendantOfOrEqualTo
getFirstChild
bool isValidNode
Method Details
(iterator) getDescendants()
Parameter Summary
gets descendants for node (direct descendants only)
<strong>returns</strong> iterator to traverse descendants from node
Parameter Summary
inserts node as next sibling of dest record
(int) getLevel()
Parameter Summary
gets level (depth) of node in the tree
moveAsPrevSiblingOf(( ) $dest)
Parameter Summary
moves node as prev sibling of dest record
getAncestors()
Parameter Summary
gets ancestors for node
(bool) hasParent()
Parameter Summary
test if node has parent
delete()
Parameter Summary
deletes node and it's descendants
(bool) hasPrevSibling()
Parameter Summary
test if node has previous sibling
Parameter Summary
determines if node is equal to subject node
moveAsLastChildOf(( ) $dest)
Parameter Summary
moves node as last child of dest record
(array) getChildren()
Parameter Summary
gets children for node (direct descendants only)
<strong>returns</strong> array of sibling Doctrine_Record objects
(bool) hasChildren()
Parameter Summary
test if node has children
(bool) isLeaf()
Parameter Summary
determines if node is leaf
(bool) hasNextSibling()
Parameter Summary
test if node has next sibling
addChild(( ) $record)
Parameter Summary
adds node as last child of record
(bool) isRoot()
Parameter Summary
determines if node is root
getLastChild()
Parameter Summary
gets record of last child or empty record
moveAsFirstChildOf(( ) $dest)
Parameter Summary
moves node as first child of dest record
getParent()
Parameter Summary
gets record of parent or empty record
moveAsNextSiblingOf(( ) $dest)
Parameter Summary
moves node as next sibling of dest record
Parameter Summary
gets path to node from root, uses record::toString() method to get node names
<strong>returns</strong> string representation of path
Parameter Summary
inserts node as previous sibling of dest record
(int) getNumberDescendants()
Parameter Summary
gets number of descendants (children and their children)
getPrevSibling()
Parameter Summary
gets record of prev sibling or empty record
Parameter Summary
gets siblings for node
<strong>returns</strong> array of sibling Doctrine_Record objects
(int) getNumberChildren()
Parameter Summary
gets number of children (direct descendants)
Parameter Summary
inserts node as first child of dest record
getNextSibling()
Parameter Summary
gets record of next sibling or empty record
Parameter Summary
inserts node as parent of dest record
Parameter Summary
determines if node is child of subject node
Parameter Summary
inserts node as first child of dest record
Parameter Summary
determines if node is child of or sibling to subject node
getFirstChild()
Parameter Summary
gets record of first child or empty record
(bool) isValidNode()
Parameter Summary
determines if node is valid
Doctrine_Node_MaterializedPath_LevelOrde
Method Summary
Returns Name Description
key
rewind
current
valid
__construct
next
Method Details
key()
Parameter Summary
rewind()
Parameter Summary
current()
Parameter Summary
valid()
Parameter Summary
__construct($node, $opts)
Parameter Summary
next()
Parameter Summary
Doctrine_Node_MaterializedPath_PostOrder
Method Summary
Returns Name Description
key
rewind
current
valid
__construct
next
Method Details
key()
Parameter Summary
rewind()
Parameter Summary
current()
Parameter Summary
valid()
Parameter Summary
__construct($node, $opts)
Parameter Summary
next()
Parameter Summary
Doctrine_Node_MaterializedPath_PreOrderI
Method Summary
Returns Name Description
key
rewind
current
valid
__construct
next
Method Details
key()
Parameter Summary
rewind()
Parameter Summary
current()
Parameter Summary
valid()
Parameter Summary
__construct($node, $opts)
Parameter Summary
next()
Parameter Summary
Doctrine_Node_NestedSet
Method Summary
Returns Name Description
mixed getDescendants
bool insertAsNextSiblingOf
int getLevel
moveAsPrevSiblingOf
mixed getAncestors
bool hasParent
delete
bool hasPrevSibling
bool isEqualTo
setLeftValue
moveAsLastChildOf
mixed getChildren
bool hasChildren
detach
bool isLeaf
bool hasNextSibling
addChild
bool isRoot
int getLeftValue
getLastChild
moveAsFirstChildOf
getParent
moveAsNextSiblingOf
string getPath
bool insertAsPrevSiblingOf
int getNumberDescendants
getPrevSibling
array getSiblings
int getNumberChildren
makeRoot
setRootValue
bool insertAsFirstChildOf
setRightValue
getNextSibling
bool insertAsParentOf
bool isDescendantOf
getRootValue
bool insertAsLastChildOf
bool isDescendantOfOrEqualTo
getFirstChild
bool isValidNode
int getRightValue
Method Details
(mixed) getDescendants($depth = null, $includeNode = false)
Parameter Summary
gets descendants for node (direct descendants only)
<strong>returns</strong> The descendants of the node or FALSE if the node has no
descendants.
Parameter Summary
inserts node as next sibling of dest record
(int) getLevel()
Parameter Summary
gets level (depth) of node in the tree
moveAsPrevSiblingOf(( ) $dest)
Parameter Summary
moves node as prev sibling of dest record
Parameter Summary
(bool) hasParent()
Parameter Summary
test if node has parent
delete()
Parameter Summary
deletes node and it's descendants
(bool) hasPrevSibling()
Parameter Summary
test if node has previous sibling
Parameter Summary
setLeftValue($lft)
Parameter Summary
sets record's left value
moveAsLastChildOf(( ) $dest)
Parameter Summary
moves node as last child of dest record
(mixed) getChildren()
Parameter Summary
gets children for node (direct descendants only)
<strong>returns</strong> The children of the node or FALSE if the node has no children.
(bool) hasChildren()
Parameter Summary
test if node has children
detach()
Parameter Summary
Detaches the node from the tree by invalidating it's lft & rgt values (they're set to 0).
(bool) isLeaf()
Parameter Summary
determines if node is leaf
(bool) hasNextSibling()
Parameter Summary
test if node has next sibling
addChild(( ) $record)
Parameter Summary
(bool) isRoot()
Parameter Summary
determines if node is root
(int) getLeftValue()
Parameter Summary
gets record's left value
getLastChild()
Parameter Summary
gets record of last child or empty record
moveAsFirstChildOf(( ) $dest)
Parameter Summary
moves node as first child of dest record
getParent()
Parameter Summary
gets record of parent or empty record
moveAsNextSiblingOf(( ) $dest)
Parameter Summary
moves node as next sibling of dest record
Parameter Summary
gets path to node from root, uses record::toString() method to get node names
<strong>returns</strong> string representation of path
Parameter Summary
inserts node as previous sibling of dest record
(int) getNumberDescendants()
Parameter Summary
gets number of descendants (children and their children)
getPrevSibling()
Parameter Summary
gets record of prev sibling or empty record
Parameter Summary
gets siblings for node
<strong>returns</strong> array of sibling Doctrine_Record objects
(int) getNumberChildren()
Parameter Summary
gets number of children (direct descendants)
makeRoot($newRootId)
Parameter Summary
Makes this node a root node. Only used in multiple-root trees.
setRootValue($value)
Parameter Summary
sets records root id value
Parameter Summary
inserts node as first child of dest record
setRightValue($rgt)
Parameter Summary
sets record's right value
getNextSibling()
Parameter Summary
gets record of next sibling or empty record
Parameter Summary
inserts node as parent of dest record
Parameter Summary
determines if node is child of subject node
getRootValue()
Parameter Summary
get records root id value
Parameter Summary
inserts node as last child of dest record
Parameter Summary
determines if node is child of or sibling to subject node
getFirstChild()
Parameter Summary
gets record of first child or empty record
Parameter Summary
determines if node is valid
(int) getRightValue()
Parameter Summary
gets record's right value
Doctrine_Node_NestedSet_PreOrderIterator
Method Summary
Returns Name Description
integer key
rewind
current
boolean valid
__construct
count
next
Method Details
(integer) key()
Parameter Summary
returns the current key
rewind()
Parameter Summary
current()
Parameter Summary
returns the current record
(boolean) valid()
Parameter Summary
<strong>returns</strong> whether or not the iteration will continue
__construct($record, $opts)
Parameter Summary
count()
Parameter Summary
next()
Parameter Summary
advances the internal pointer
Doctrine_Null
Method Summary
Returns Name Description
__toString
exists
Method Details
__toString()
Parameter Summary
exists()
Parameter Summary
Doctrine_Overloadable
Method Summary
Returns Name Description
mixed __call
Method Details
(mixed) __call($m, $a)
Parameter Summary
$a method arguments
Doctrine_Pager
Method Summary
Returns Name Description
int getNumResults Returns the number of results found
_adjustOffset Adjusts last page of Doctrine_Pager, offset and limit of
Doctrine_Query associated
int getLastIndice Return the last indice number for the current page
bool haveToPaginate Return true if it's necessary to paginate or false if not
setPage Defines the current page and automatically adjust offset
and limits
getRange Builds and return a Doctrine_Pager_Range_* based on
arguments
int getMaxPerPage Returns the maximum number of itens per page
boolen getExecuted Returns the check if Pager was already executed at least
once
int getFirstPage Returns the first page
int getLastPage Returns the last page (total of pages)
setCountQuery Defines the counter query to be used by pager
array getCountQueryParams Returns the params to be used by counter Doctrine_Query
Method Details
(int) getNumResults()
Parameter Summary
Returns the number of results found
<strong>returns</strong> the number of results found
_adjustOffset()
Parameter Summary
Adjusts last page of Doctrine_Pager, offset and limit of Doctrine_Query associated
(int) getLastIndice()
Parameter Summary
Return the last indice number for the current page
<strong>returns</strong> Last indice number
(bool) haveToPaginate()
Parameter Summary
Return true if it's necessary to paginate or false if not
<strong>returns</strong> true if it is necessary to paginate, false otherwise
setPage(($page) $page)
Parameter Summary
Defines the current page and automatically adjust offset and limits
Parameter Summary
(int) getMaxPerPage()
Parameter Summary
getLastPage
Returns the maximum number of itens per page
<strong>returns</strong> maximum number of itens per page
(boolen) getExecuted()
Parameter Summary
Returns the check if Pager was already executed at least once
<strong>returns</strong> Pager was executed
(int) getFirstPage()
Parameter Summary
Returns the first page
<strong>returns</strong> first page
(int) getLastPage()
Parameter Summary
Returns the last page (total of pages)
<strong>returns</strong> last page (total of pages)
Parameter Summary
Parameter Summary
Returns the params to be used by counter Doctrine_Query
<strong>returns</strong> Doctrine_Query counter params
getQuery()
Parameter Summary
Returns the Doctrine_Query collector object related to the pager
<strong>returns</strong> Doctrine_Query object related to the pager
Parameter Summary
_setNumResults(($nb) $nb)
Parameter Summary
Parameter Summary
Parameter Summary
getCountQuery()
Parameter Summary
Returns the Doctrine_Query object that is used to make the count results to pager
<strong>returns</strong> Doctrine_Query object related to the pager
_setExecuted(($executed) $executed)
Parameter Summary
Parameter Summary
$params Optional params to be used by counter Doctrine_Query. If not defined, the params
passed to execute method will be used.
$append Optional argument that append the query param instead of overriding the existent
ones.
_setLastPage(($page) $page)
Parameter Summary
(int) getNextPage()
Parameter Summary
Returns the next page
<strong>returns</strong> next page
(int) getPage()
Parameter Summary
getLastPage
Returns the current page
<strong>returns</strong> current page
(int) getResultsInPage()
Parameter Summary
Returns the number of itens in current page
<strong>returns</strong> Number of itens in current page
setMaxPerPage(($max) $max)
Parameter Summary
Defines the maximum number of itens per page and automatically adjust offset and limits
_setQuery((Doctrine_Query) $query)
Parameter Summary
$query Accepts either a Doctrine_Query object or a string (which does the Doctrine_Query
class creation).
(int) getFirstIndice()
Parameter Summary
Return the first indice number for the current page
<strong>returns</strong> First indice number
(int) getPreviousPage()
Parameter Summary
Returns the previous page
<strong>returns</strong> previous page
Doctrine_Pager_Layout
Method Summary
Returns Name Description
string _parseReplacementsTemplate Parse the mask replacements of a given page
Method Details
(string) _parseReplacementsTemplate(($options) $options = array())
Parameter Summary
_parseUrl
Parse the mask replacements of a given page
getPagerRange()
Parameter Summary
Returns the Doctrine_Pager_Range subclass object related to the pager layout
<strong>returns</strong> Doctrine_Pager_Range subclass object related to the pager range
setSelectedTemplate(($selectedTemplate) $selectedTemplate)
Parameter Summary
Parameter Summary
Parse the url mask to return the correct template depending of the options sent. Already
process the mask replacements assigned.
setSeparatorTemplate(($separatorTemplate) $separatorTemplate)
Parameter Summary
_setPager(($pager) $pager)
Parameter Summary
Parameter Summary
$asValue Optional value (default false) that if defined as true, changes the bahavior of
replacement mask to replacement value
Defines a mask replacement. When parsing template, it converts replacement masks into new
ones (or values), allowing to change masks behavior on the fly
getPager()
Parameter Summary
Returns the Doctrine_Pager object related to the pager layout
<strong>returns</strong> Doctrine_Pager object related to the pager range
(string) getSeparatorTemplate()
Parameter Summary
Returns the Separator template, applied between each page
<strong>returns</strong> Separator template, applied between each page
__toString()
Parameter Summary
Simply calls display, and returns the output.
removeMaskReplacement(($oldMask) $oldMask)
Parameter Summary
(string) getUrlMask()
Parameter Summary
Returns the URL to be assigned for each page
<strong>returns</strong> URL to be assigned for each page
_setUrlMask(($urlMask) $urlMask)
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
Parse the template of a given page and return the processed template
Parameter Summary
Parse the mask replacements, changing from to-be replaced mask with new masks/values
_setPagerRange(($pagerRange) $pagerRange)
Parameter Summary
Parameter Summary
Handy method to execute the query without need to retrieve the Pager instance
<strong>returns</strong> The root collection
(string) getSelectedTemplate()
Parameter Summary
Returns the Template to be applied for active page
<strong>returns</strong> Template to be applied for active page
Parameter Summary
Parse the url mask of a given page and return the processed url
cleanMaskReplacements()
Parameter Summary
Remove all mask replacements
(string) getTemplate()
Parameter Summary
Returns the Template to be applied for inactive pages
<strong>returns</strong> Template to be applied for inactive pages
Parameter Summary
$return Optional parameter if you want to capture the output of this method call (Default
value is false), instead of printing it
setTemplate(($template) $template)
Parameter Summary
Defines the Template to be applied for inactive pages (also active page if selected template
not defined)
Doctrine_Pager_Range
Method Summary
Returns Name Description
array getOption Returns the custom Doctrine_Pager_Range implementation
offset option
array rangeAroundPage Calculate and returns an array representing the range around
the current page
boolean isInRange Check if a given page is in the range
_setOptions Defines the subclass implementation options
array getOptions Returns the custom Doctrine_Pager_Range implementation
options
getPager Returns the Doctrine_Pager object related to the pager range
__construct
_initialize Initialize Doctrine_Page_Range subclass which does custom
class definitions
setPager Defines the Doctrine_Pager object related to the pager range
and automatically (re-)initialize Doctrine_Pager_Range
Method Details
(array) getOption($option)
Parameter Summary
Returns the custom Doctrine_Pager_Range implementation offset option
<strong>returns</strong> Custom Doctrine_Pager_Range implementation options
(array) rangeAroundPage()
Parameter Summary
Calculate and returns an array representing the range around the current page
Parameter Summary
_setOptions(($options) $options)
Parameter Summary
(array) getOptions()
Parameter Summary
Returns the custom Doctrine_Pager_Range implementation options
<strong>returns</strong> Custom Doctrine_Pager_Range implementation options
getPager()
Parameter Summary
Returns the Doctrine_Pager object related to the pager range
<strong>returns</strong> Doctrine_Pager object related to the pager range
Parameter Summary
_initialize()
Parameter Summary
Initialize Doctrine_Page_Range subclass which does custom class definitions
setPager(($pager) $pager)
Parameter Summary
Defines the Doctrine_Pager object related to the pager range and automatically (re-)initialize
Doctrine_Pager_Range
Doctrine_Pager_Range_Jumping
Method Summary
Returns Name Description
array rangeAroundPage Calculate and returns an array representing the range around
the current page
int getChunkLength Returns the size of the chunk defined
_initialize Initialize Doctrine_Pager_Range_Jumping and does custom
assignments
_setChunkLength Defines the size of the chunk
Method Details
(array) rangeAroundPage()
Parameter Summary
Calculate and returns an array representing the range around the current page
(int) getChunkLength()
Parameter Summary
Returns the size of the chunk defined
<strong>returns</strong> Chunk length
_initialize()
Parameter Summary
Initialize Doctrine_Pager_Range_Jumping and does custom assignments
_setChunkLength(($chunkLength) $chunkLength)
Parameter Summary
Doctrine_Pager_Range_Sliding
Method Summary
Returns Name Description
array rangeAroundPage Calculate and returns an array representing the range around
the current page
int getChunkLength Returns the size of the chunk defined
Method Details
(array) rangeAroundPage()
Parameter Summary
Calculate and returns an array representing the range around the current page
(int) getChunkLength()
Parameter Summary
Returns the size of the chunk defined
<strong>returns</strong> Chunk length
_initialize()
Parameter Summary
Initialize Doctrine_Pager_Range_Sliding and does custom assignments
_setChunkLength(($chunkLength) $chunkLength)
Parameter Summary
Doctrine_Parser
Method Summary
Returns Name Description
dump Interface for pulling and dumping data to a file
getParser Get instance of the specified parser
Method Details
dump($array, $type = 'xml', $path = null)
Parameter Summary
Interface for pulling and dumping data to a file
getParser($type)
Parameter Summary
Get instance of the specified parser
Parameter Summary
Interface for loading and parsing data from a file
Parameter Summary
Override in the praser driver
loadData($array)
Parameter Summary
Override in the parser driver
doLoad($path)
Parameter Summary
Get contents whether it is the path to a file file or a string of txt. Either should allow php code
in it.
Parameter Summary
Doctrine_Parser_Json
Method Summary
Returns Name Description
string dumpData Dump an array of data to a specified path or return
array loadData Load and unserialize data from a file or from passed data
Method Details
(string) dumpData($array, $path = null)
Parameter Summary
(array) loadData($path)
Parameter Summary
Doctrine_Parser_Serialize
Method Summary
Returns Name Description
dumpData Dump an array of data to a specified path or return
loadData Load and unserialize data from a file or from passed data
Method Details
dumpData($array, $path = null)
Parameter Summary
Dump an array of data to a specified path or return
loadData($path)
Parameter Summary
Load and unserialize data from a file or from passed data
Doctrine_Parser_Xml
Method Summary
Returns Name Description
string arrayToXml
string dumpData Convert array to xml and dump to specified path or return the xml
array prepareData Prepare simple xml to array for return
Method Details
(string) arrayToXml($array, $rootNodeName = 'data', $xml = null)
Parameter Summary
$xml SimpleXmlElement
Parameter Summary
Convert array to xml and dump to specified path or return the xml
(array) prepareData($simpleXml)
Parameter Summary
Prepare simple xml to array for return
(array) loadData($path)
Parameter Summary
Doctrine_Parser_Yml
Method Summary
Returns Name Description
string dumpData Dump an array of data to a specified path or return
Method Details
(string) dumpData($array, $path = null)
Parameter Summary
(array) loadData($path)
Parameter Summary
Doctrine_Record_Generator
Method Summary
Returns Name Description
buildChildDefinitions
mixed getOption
__isset
buildForeignRelation
initOptions
generateClass generates the class definition for plugin class
array getOptions returns all options and their associated values
addChild Add child record generator
__get
Doctrine_Plugin setOption
array buildForeignKeys generates foreign keys for the plugin table based on
the owner table the foreign keys generated by this
method can be used for setting the relations
between the owner and the plugin classes
buildTable
buildRelation this method can be used for generating the relation
from the plugin table to the owner table. By default
buildForeignRelation() and buildLocalRelation() are
called Those methods can be overridden or this
entire method can be overridden
Method Details
buildChildDefinitions()
Parameter Summary
Parameter Summary
__isset($option)
Parameter Summary
buildForeignRelation($alias = null)
Parameter Summary
initOptions()
Parameter Summary
empty template method for providing the concrete plugins the ability to initialize
options before the actual definition is being built
generateClass($definition = array())
Parameter Summary
$definition Definition array defining columns, relations and options for the model
(array) getOptions()
Parameter Summary
returns all options and their associated values
<strong>returns</strong> all options as an associative array
addChild((Doctrine_Record_Generator) $generator)
Parameter Summary
Add child record generator
__get($option)
Parameter Summary
__get an alias for getOption
Parameter Summary
Parameter Summary
generates foreign keys for the plugin table based on the owner table the foreign keys
generated by this method can be used for setting the relations between the owner and the
plugin classes
<strong>returns</strong> an array of foreign key definitions
buildTable()
Parameter Summary
buildRelation()
Parameter Summary
this method can be used for generating the relation from the plugin table to the owner table.
By default buildForeignRelation() and buildLocalRelation() are called Those methods can be
overridden or this entire method can be overridden
initialize(( ) $table)
Parameter Summary
Initialize the plugin. Call in Doctrine_Template setTableDefinition() in order to initiate a
generator in a template SEE: Doctrine_Template_I18n for an example
buildLocalRelation()
Parameter Summary
Doctrine_Query
Method Summary
Returns Name Description
processPendingSubqueries subqueries can only be processed when
the query is fully constructed since some
subqueries may be correlated
array fetchArray
string getSqlAggregateAlias
load
processPendingAggregates
buildAssociativeRelationSql
buildSimpleRelationSql
string getSqlQuery
copy
string getAggregateAlias
buildIndexBy
parseSubquery
array serialize
</li> Listing
0-21
<li>
<p>Converts all component
references to their table alias
equivalents</p>
</li>
<li>
<p>Conv
string _buildSqlFromPart
parseIdentifierReference
integer count This method executes the main query
without all the selected fields, ORDER
BY part, LIMIT part and OFFSET part.
Example: Main query: SELECT u.*,
p.phonenumber FROM User u LEFT
JOIN u.Phonenumber p WHERE
p.phonenumber = '12
string getDqlPart
string getCountQuery
loadRoot
adjustProcessedParam
__clone
processPendingFields
free This method can therefore be used to
reduce memory usage when creating a
lot of query objects during a request.
reset
parseSelectField
parseSelect
Processed _processPendingJoinConditions
addPendingJoinCondition
create
unserialize
Method Details
processPendingSubqueries()
Parameter Summary
processPendingSubqueries processes pending subqueries
subqueries can only be processed when the query is fully constructed since some subqueries
may be correlated
Parameter Summary
fetchArray Convenience method to execute using array fetching as hydration mode.
(string) getSqlAggregateAlias($dqlAlias)
Parameter Summary
Parameter Summary
processPendingAggregates()
Parameter Summary
processPendingAggregates processes pending aggregate values for given component
alias
Parameter Summary
Parameter Summary
Parameter Summary
$params an array of prepared statement params (needed only in mysql driver when limit
subquery algorithm is used)
builds the sql query from the given parameters and applies things such as column
aggregation inheritance and limit subqueries if needed
<strong>returns</strong> the built sql query
Parameter Summary
Copies a Doctrine_Query object.
<strong>returns</strong> Copy of the Doctrine_Query instance.
(string) getAggregateAlias($dqlAlias)
Parameter Summary
Parameter Summary
parseSubquery($subquery)
Parameter Summary
(array) serialize()
Parameter Summary
serialize this method is automatically called when this Doctrine_Hydrate is serialized
<strong>returns</strong> an array of serialized properties
Parameter Summary
DQL PARSER
parses a DQL query first splits the query in parts and then uses individual parsers for each
part
<strong>throws</strong> Doctrine_Query_Exception if some generic parsing error occurs
(string) getExpressionOwner($expr)
Parameter Summary
(boolean) contains($dql)
Parameter Summary
isSubquery($bool = null)
Parameter Summary
if $bool parameter is set this method sets the value of Doctrine_Query::$isSubquery. If this
value is set to true the query object will not load the primary key fields of the selected
components. If null is given as the first parameter this method retr
Parameter Summary
(string) getLimitSubquery()
Parameter Summary
getLimitSubquery this is method is used by the record limit algorithm
when fetching one-to-many, many-to-many associated data with LIMIT clause an additional
subquery is needed for limiting the number of returned records instead of limiting the
number of sql result set rows
<strong>returns</strong> the limit subquery
buildInheritanceJoinSql($name, $componentAlias)
Parameter Summary
(Doctrine_Hydrate) createSubquery()
Parameter Summary
createSubquery creates a subquery
(string) _buildSqlQueryBase()
Parameter Summary
returns the base of the generated sql query On mysql driver special strategy has to be used
for DELETE statements (where is this special strategy??)
<strong>returns</strong> the base of the generated sql query
parseFunctionExpression($expr)
Parameter Summary
_killReference($key)
Parameter Summary
Kill the reference for the passed class property.
This method simply copies the value to a temporary variable and then unsets the reference
and re-assigns the old value but not by reference
Parameter Summary
$params Parameters
$hydrationMode Hydration mode
fetchOne Convenience method to execute the query and return the first item of the
collection.
<strong>returns</strong> Array or Doctrine_Collection or false if no result.
(string) parseClause($clause)
Parameter Summary
parseClause parses given DQL clause
this method handles five tasks: <orderedlist> <li> <p>Converts all DQL functions to their
native SQL equivalents</p> </li> <li> <p>Converts all component references to their table
alias equivalents</p> </li> <li> <p>Conv
<strong>returns</strong> SQL string
(string) _buildSqlFromPart()
Parameter Summary
_buildSqlFromPart builds the from part of the query and returns it
<strong>returns</strong> the query sql from part
parseIdentifierReference($expr)
Parameter Summary
Parameter Summary
(string) getDqlPart($queryPart)
Parameter Summary
(string) getCountQuery()
Parameter Summary
Get count sql query for this Doctrine_Query instance Used in
Doctrine_Query::count() for returning an integer for the number of records which
will be returned when executed.
loadRoot($name, $componentAlias)
Parameter Summary
adjustProcessedParam($index)
Parameter Summary
Adjust the processed param index for "foo.bar IN ?" support
__clone()
Parameter Summary
processPendingFields($componentAlias)
Parameter Summary
free()
Parameter Summary
Frees the resources used by the query object. It especially breaks a cyclic reference
between the query object and it's parsers. This enables PHP's current GC to reclaim
the memory.
This method can therefore be used to reduce memory usage when creating a lot of query
objects during a request.
<strong>returns</strong> this object
reset()
Parameter Summary
Resets the query to the state just after it has been instantiated.
parseSelectField($field)
Parameter Summary
<strong>throws</strong> Doctrine_Query_Exception if unknown component alias has been
given
parseSelect($dql)
Parameter Summary
parseSelect parses the query select part and adds selected fields to pendingFields
array
(Processed) _processPendingJoinConditions($alias)
Parameter Summary
Processes the pending join conditions, used for dynamically add conditions to root
component/joined components without interferring in the main dql processment.
<strong>returns</strong> pending conditions
addPendingJoinCondition($componentAlias, $joinCondition)
Parameter Summary
_addPendingJoinCondition
<strong>returns</strong> this object
Parameter Summary
unserialize($serialized)
Parameter Summary
Doctrine_Query_Abstract
Method Summary
Returns Name Description
string generateSqlTableAlias
update
array _getDqlCallback
array getParts
boolean hasAliasDeclaration
addOrderBy
Doctrine_Hydrate expireQueryCache
string generateTableAlias
getCacheDriver
clear
fixArrayParameterValues
boolean isLimitSubqueryUsed
delete
select
string generateNewSqlTableAlias
distinct
array getParams
orderBy
string getDql the query is built from $_dqlParts
string calculateQueryCacheHash
getSqlQuery The returned SQL syntax depends on the
connection driver that is used by this query
object at the time of this method call.
array getInternalParams
from
boolean _hasDqlQueryPart
forUpdate
_processWhereIn
string getSqlTableAlias this method is used for the creation of
short table aliases, its also smart enough to
check if an alias already exists for given
component (componentAlias)
Doctrine_Hydrate useCache
array getTableAliasMap
string getInheritanceCondition This function is used to append a SQL
condition to models which have inheritance
mapping The condition is applied to the
FROM component in the WHERE, but the
condition is applied to JOINS in the ON
condition and not the WHERE
parseDqlQuery
string __toString
Doctrine_Hydrate expireResultCache
leftJoin
_preQuery
getAliasMap
addHaving
integer getType returns the type of this query object by
default the type is
Doctrine_Query_Abstract::SELECT but if
update() or delete() are being called the
type is Doctrine_Query_Abstract::UPDATE
and Doctrine_Query_Abstract::DELETE,
respectively
Doctrine_Hydrate setQueryPart
setHydrationMode
array getTableAliases
integer getSqlTableAliasSeed
limit
array getSqlParts
innerJoin
boolean hasTableAlias
Doctrine_Hydrate setSqlQueryPart
_addDqlQueryPart
Doctrine_Hydrate getSqlQueryPart
array getCountQueryParams
getQuery
array _getDqlCallbackComponents
getQueryPart
boolean hasSqlTableAlias
addFrom
__construct
andWhere
Doctrine_Hydrate useResultCache
integer getQueryCacheLifeSpan
getRoot
_processDqlQueryPart
_getParser
array getQueryComponent
addSqlTableAlias
execute
orWhere
preQuery
string getTableAlias this method is used for the creation of
short table aliases, its also smart enough to
parseQuery
addWhere
Doctrine_Hydrate setQueryCacheLifeSpan
string calculateResultCacheHash
getQueryComponents
Doctrine_Hydrate copySubqueryInfo this method is needed by DQL subqueries
which need the aliases of the parent query
addSelect
groupBy
array getRootAlias
integer getResultCacheLifeSpan
whereIn
Doctrine_Hydrate expireCache
Method Details
(string) generateSqlTableAlias($componentAlias, $tableName)
Parameter Summary
$tableName the table name from which to generate the table alias
generateSqlTableAlias generates a table alias from given table name and associates
it with given component alias
<strong>returns</strong> the generated table alias
Parameter Summary
(array) _getDqlCallback()
Parameter Summary
Get the dql call back for this query
(array) getParts()
Parameter Summary
(boolean) hasAliasDeclaration($componentAlias)
Parameter Summary
addOrderBy($orderby)
Parameter Summary
Parameter Summary
Parameter Summary
$tableName the table name from which to generate the table alias
generateTableAlias generates a table alias from given table name and associates it
with given component alias
<strong>returns</strong> the generated table alias
getCacheDriver()
Parameter Summary
getCacheDriver returns the cache driver associated with this object
<strong>returns</strong> cache driver
clear()
Parameter Summary
clear resets all the variables
fixArrayParameterValues($params = array())
Parameter Summary
(boolean) isLimitSubqueryUsed()
Parameter Summary
limitSubqueryUsed
delete($from = null)
Parameter Summary
delete sets the query type to DELETE
select($select = null)
Parameter Summary
Parameter Summary
$tableAlias table alias from which to generate the new alias from
distinct($flag = true)
Parameter Summary
(array) getParams()
Parameter Summary
Get raw array of parameters for query and all parts.
orderBy($orderby)
Parameter Summary
(string) getDql()
Parameter Summary
getDql returns the DQL query that is represented by this query object.
the query is built from $_dqlParts
<strong>returns</strong> the DQL query
(string) calculateQueryCacheHash()
Parameter Summary
calculateQueryCacheHash calculate hash key for query cache
<strong>returns</strong> the hash
getSqlQuery($params = array())
Parameter Summary
Gets the SQL query that corresponds to this query object.
The returned SQL syntax depends on the connection driver that is used by this query object
at the time of this method call.
Parameter Summary
from($from)
Parameter Summary
(boolean) _hasDqlQueryPart($queryPartName)
Parameter Summary
Checks if there's at least one DQL part defined to the internal parts collection.
forUpdate($flag = true)
Parameter Summary
Parameter Summary
Parameter Summary
$componentAlias the alias for the query component to search table alias for
$tableName the table name from which the table alias is being created
getSqlTableAlias some database such as Oracle need the identifier lengths to be <
~30 chars hence Doctrine creates as short identifier aliases as possible
this method is used for the creation of short table aliases, its also smart enough to check if an
alias already exists for given component (componentAlias)
<strong>returns</strong> the generated / fetched short alias
Parameter Summary
(array) getTableAliasMap()
Parameter Summary
(string) getInheritanceCondition($componentAlias)
Parameter Summary
Returns the inheritance condition for the passed componentAlias If no component
alias is specified it defaults to the root component
This function is used to append a SQL condition to models which have inheritance mapping
The condition is applied to the FROM component in the WHERE, but the condition is applied
to JOINS in the ON condition and not the WHERE
<strong>returns</strong> SQL condition string
parseDqlQuery($query)
Parameter Summary
(string) __toString()
Parameter Summary
toString magic call this method is automatically called when Doctrine_Query object
is trying to be used as a string So, it it converted into its DQL correspondant
<strong>returns</strong> DQL string
Parameter Summary
expireCache
<strong>returns</strong> this object
Parameter Summary
_preQuery($params = array())
Parameter Summary
Pre query method which invokes the pre*Query() methods on the model instance or
any attached record listeners
getAliasMap()
Parameter Summary
Parameter Summary
(integer) getType()
Parameter Summary
returns the type of this query object by default the type is Doctrine_Query_Abstract::SELECT
but if update() or delete() are being called the type is Doctrine_Query_Abstract::UPDATE and
Doctrine_Query_Abstract::DELETE, respectively
<strong>returns</strong> return the query type
Parameter Summary
setHydrationMode($hydrationMode)
Parameter Summary
(array) getTableAliases()
Parameter Summary
getTableAliases returns all table aliases
<strong>returns</strong> table aliases as an array
Parameter Summary
limit($limit)
Parameter Summary
(array) getSqlParts()
Parameter Summary
Return the SQL parts.
<strong>returns</strong> The parts
Parameter Summary
Parameter Summary
Parameter Summary
setSqlQueryPart sets an SQL query part in the SQL query part array
<strong>returns</strong> this object
<strong>throws</strong> Doctrine_Query_Exception if trying to set unknown query part
Parameter Summary
Parameter Summary
getSqlQueryPart gets an SQL query part from the SQL query part array
<strong>returns</strong> this object
<strong>throws</strong> Doctrine_Query_Exception if trying to set unknown query part
Parameter Summary
getCountQueryParams Retrieves the parameters for count query
<strong>returns</strong> Parameters array
getQuery($params = array())
Parameter Summary
Parameter Summary
Returns an array of components to execute the query callbacks for
getQueryPart($part, $name)
Parameter Summary
Parameter Summary
addFrom($from)
Parameter Summary
Parameter Summary
$hydrator The hydrator that will be used for generating result sets.
Constructor.
Parameter Summary
(Doctrine_Hydrate) useResultCache((Doctrine_Cache_Interface|bool)
$driver = true, $timeToLive = null)
Parameter Summary
(integer) getQueryCacheLifeSpan()
Parameter Summary
Gets the life span of the query cache the Query object is using.
<strong>returns</strong> The life span in seconds.
getRoot()
Parameter Summary
getRoot returns the root component for this object
<strong>returns</strong> root components table
_processDqlQueryPart($queryPartName, $queryParts)
Parameter Summary
_getParser($name)
Parameter Summary
(array) getQueryComponent($componentAlias)
Parameter Summary
Parameter Summary
$componentAlias the alias for the query component associated with given tableAlias
Parameter Summary
execute executes the query and populates the data set
<strong>returns</strong> the root collection
Parameter Summary
preQuery()
Parameter Summary
Blank hook methods which can be implemented in Doctrine_Query child classes
Parameter Summary
$componentAlias the alias for the query component to search table alias for
$tableName the table name from which the table alias is being created
getTableAlias some database such as Oracle need the identifier lengths to be < ~30
chars hence Doctrine creates as short identifier aliases as possible
this method is used for the creation of short table aliases, its also smart enough to check if an
alias already exists for given component (componentAlias)
<strong>returns</strong> the generated / fetched short alias
Parameter Summary
(Doctrine_Hydrate) removeQueryPart($name)
Parameter Summary
(string) getComponentAlias($sqlTableAlias)
Parameter Summary
$sqlTableAlias the SQL table alias that identifies the component alias
Parameter Summary
(Doctrine_Hydrate) setResultCacheLifeSpan($timeToLive)
Parameter Summary
Parameter Summary
addSqlQueryPart adds an SQL query part to the SQL query part array
<strong>returns</strong> this object
<strong>throws</strong> Doctrine_Query_Exception if trying to add unknown query part
setOption($name, $value)
Parameter Summary
(Doctrine_Hydrate) setCacheLifeSpan($timeToLive)
Parameter Summary
(Doctrine_Hydrate) removeSqlQueryPart($name)
Parameter Summary
Parameter Summary
getView()
Parameter Summary
getView returns the view associated with this query object (if any)
<strong>returns</strong> the view associated with this query object
(array) getAliasDeclaration($componentAlias)
Parameter Summary
Parameter Summary
Parameter Summary
$params (optional)
getConnection()
Parameter Summary
addGroupBy($groupby)
Parameter Summary
Parameter Summary
offset($offset)
Parameter Summary
getQueryCacheDriver()
Parameter Summary
getQueryCacheDriver returns the cache driver used for caching queries
<strong>returns</strong> cache driver
Parameter Summary
(Doctrine_Hydrate) removeDqlQueryPart($name)
Parameter Summary
removeDqlQueryPart removes a dql query part from the dql query part array
<strong>returns</strong> this object
<strong>throws</strong> Doctrine_Query_Exception if trying to remove unknown query
part
Parameter Summary
free()
Parameter Summary
Blank template method free(). Override to be used to free query object memory
getFlattenedParams($params = array())
Parameter Summary
Get flattened array of parameters for query.
Used internally and used to pass flat array of params to the database.
setParams($params = array())
Parameter Summary
(Doctrine_Hydrate) useQueryCache((Doctrine_Cache_Interface|bool)
$driver = true, $timeToLive = null)
Parameter Summary
Parameter Summary
$tableAlias table alias from which to generate the new alias from
(array) getRootDeclaration()
Parameter Summary
getRootDeclaration returns the root declaration
Parameter Summary
Parameter Summary
Parameter Summary
getCachedForm returns the cached form of this query for given resultSet
<strong>returns</strong> serialized string representation of this query
(array) _constructQueryFromCache($cached)
Parameter Summary
setView(( ) $view)
Parameter Summary
setView sets a database view this query object uses this method should only be called
internally by doctrine
getResultCacheDriver()
Parameter Summary
getResultCacheDriver returns the cache driver used for caching result sets
<strong>returns</strong> cache driver
Parameter Summary
(PDOStatement) _execute($params)
Parameter Summary
<strong>returns</strong> The executed PDOStatement.
Parameter Summary
addTableAlias adds an alias for table and associates it with given component alias
parseQuery($query)
Parameter Summary
Parameter Summary
(Doctrine_Hydrate) setQueryCacheLifeSpan($timeToLive)
Parameter Summary
Parameter Summary
calculateResultCacheHash calculate hash key for result cache
<strong>returns</strong> the hash
getQueryComponents()
Parameter Summary
Gets the components of this query.
Parameter Summary
$query the query object from which the aliases are copied from
addSelect($select)
Parameter Summary
groupBy($groupby)
Parameter Summary
(array) getRootAlias()
Parameter Summary
getRootAlias returns the alias of the the root component
(integer) getResultCacheLifeSpan()
Parameter Summary
Gets the life span of the result cache in seconds.
Parameter Summary
Parameter Summary
Doctrine_Query_Check
Method Summary
Returns Name Description
parseSingle
parseFunction
string parse
parseClause
getTable
__construct
string getSql returns database specific sql CHECK constraint definition parsed
from the given dql CHECK definition
Method Details
parseSingle($part)
Parameter Summary
parseFunction($dql)
Parameter Summary
(string) parse($dql)
Parameter Summary
Parameter Summary
getTable()
Parameter Summary
getTable returns the table object associated with this object
__construct((Doctrine_Table|string) $table)
Parameter Summary
(string) getSql()
Parameter Summary
returns database specific sql CHECK constraint definition parsed from the given dql CHECK
definition
Doctrine_Query_Condition
Method Summary
Returns Name Description
string parse
string parseLiteralValue boolean literals are parsed to integers components are parsed
to associated table aliases
Method Details
(string) parse($str)
Parameter Summary
DQL CONDITION PARSER parses the join condition/where/having part of the query
string
(string) parseLiteralValue($value)
Parameter Summary
Doctrine_Query_Filter
Method Summary
Returns Name Description
preQuery Method for listening the preQuery method of Doctrine_Query and
hooking into the query building procedure, doing any custom /
specialized query building procedures that are neccessary.
postQuery Method for listening the postQuery method of Doctrine_Query and to
hook into the query building procedure, doing any custom / specialized
post query procedures (for example logging) that are neccessary.
Method Details
preQuery(( ) $query)
Parameter Summary
Method for listening the preQuery method of Doctrine_Query and hooking into the query
building procedure, doing any custom / specialized query building procedures that are
neccessary.
postQuery(( ) $query)
Parameter Summary
Method for listening the postQuery method of Doctrine_Query and to hook into the query
building procedure, doing any custom / specialized post query procedures (for example
logging) that are neccessary.
Doctrine_Query_Filter_Chain
Method Summary
Returns Name Description
add
mixed get
preQuery Method for listening the preQuery method of Doctrine_Query and
hooking into the query building procedure, doing any custom /
specialized query building procedures that are neccessary.
set
postQuery Method for listening the postQuery method of Doctrine_Query and to
hook into the query building procedure, doing any custom / specialized
post query procedures (for example logging) that are neccessary.
Method Details
add(( ) $filter)
Parameter Summary
(mixed) get($key)
Parameter Summary
returns a Doctrine_Query_Filter on success and null on failure
preQuery(( ) $query)
Parameter Summary
Method for listening the preQuery method of Doctrine_Query and hooking into the query
building procedure, doing any custom / specialized query building procedures that are
neccessary.
set($key, ( ) $listener)
Parameter Summary
postQuery(( ) $query)
Parameter Summary
Method for listening the postQuery method of Doctrine_Query and to hook into the query
building procedure, doing any custom / specialized post query procedures (for example
logging) that are neccessary.
Doctrine_Query_Filter_Interface
Method Summary
Returns Name Description
preQuery Method for listening the preQuery method of Doctrine_Query and
hooking into the query building procedure, doing any custom /
specialized query building procedures that are neccessary.
postQuery Method for listening the postQuery method of Doctrine_Query and to
hook into the query building procedure, doing any custom / specialized
post query procedures (for example logging) that are neccessary.
Method Details
preQuery(( ) $query)
Parameter Summary
Method for listening the preQuery method of Doctrine_Query and hooking into the query
building procedure, doing any custom / specialized query building procedures that are
neccessary.
postQuery(( ) $query)
Parameter Summary
Method for listening the postQuery method of Doctrine_Query and to hook into the query
building procedure, doing any custom / specialized post query procedures (for example
logging) that are neccessary.
Doctrine_Query_Forupdate
Method Summary
Returns Name Description
parse
Method Details
parse($forUpdate)
Parameter Summary
Doctrine_Query_From
Method Summary
Returns Name Description
parse
Method Details
parse($str, $return = false)
Parameter Summary
DQL FROM PARSER parses the FROM part of the query string
Doctrine_Query_Groupby
Method Summary
Returns Name Description
parse
Method Details
parse($clause, $append = false, $str)
Parameter Summary
DQL GROUP BY PARSER parses the group by part of the query string
Doctrine_Query_Having
Method Summary
Returns Name Description
string load
Method Details
(string) load($having)
Parameter Summary
load returns the parsed query part
Doctrine_Query_JoinCondition
Method Summary
Returns Name Description
load
_processPossibleAggExpression
Method Details
load($condition)
Parameter Summary
_processPossibleAggExpression([[[amp]]]$expr, [[[amp]]]$matches)
Parameter Summary
Doctrine_Query_Limit
Method Summary
Returns Name Description
parse
Method Details
parse($limit)
Parameter Summary
Doctrine_Query_Offset
Method Summary
Returns Name Description
parse
Method Details
parse($offset)
Parameter Summary
Doctrine_Query_Orderby
Method Summary
Returns Name Description
parse
Method Details
parse($clause, $append = false)
Parameter Summary
DQL ORDER BY PARSER parses the order by part of the query string
Doctrine_Query_Part
Method Summary
Returns Name Description
getQuery
__construct
Method Details
getQuery()
Parameter Summary
<strong>returns</strong> the query object associated with this parser
Parameter Summary
Doctrine_Query_Registry
Method Summary
Returns Name Description
has
add
get
Method Details
has($key, $namespace = null)
Parameter Summary
add($key, $query)
Parameter Summary
Parameter Summary
Doctrine_Query_Select
Method Summary
Returns Name Description
parse
Method Details
parse($dql)
Parameter Summary
Doctrine_Query_Set
Method Summary
Returns Name Description
parse
_processPossibleAggExpression
Method Details
parse($dql)
Parameter Summary
_processPossibleAggExpression([[[amp]]]$expr, [[[amp]]]$matches)
Parameter Summary
Doctrine_Query_Tokenizer
Method Summary
Returns Name Description
bracketTrim
array tokenizeQuery splits the given dql query into an array where keys represent
different query part names and values are arrays splitted using
sqlExplode method example: parameter: $query = "SELECT u.*
FROM User u WHERE u.name LIKE ?" returns: arr
quoteExplode example: parameters: $str = email LIKE 'John@example.com' $d
= ' LIKE ' would return an array: array("email", "LIKE",
"'John@example.com'")
bracketExplode example: parameters: $str = (age < 20 AND age > 18) AND
email LIKE 'John@example.com' $d = ' AND ' $e1 = '(' $e2 = ')'
would return an array: array("(age < 20 AND age >
array sqlExplode explodes a string into array using custom brackets and quote
delimeters example: parameters: $str = "(age < 20 AND age >
18) AND name LIKE 'John Doe'" $d = ' ' $e1 = '(' $e2 = &apo
array clauseExplode explodes a string into array using custom brackets and quote
delimeters example: parameters: $str = "(age < 20 AND age >
18) AND name LIKE 'John Doe'" $d = ' ' $e1 = '(' $e2 = &apo
Method Details
bracketTrim($str, $e1 = '(', $e2 = ')')
Parameter Summary
trims brackets
(array) tokenizeQuery($query)
Parameter Summary
splits the given dql query into an array where keys represent different query part names and
values are arrays splitted using sqlExplode method example: parameter: $query =
"SELECT u.* FROM User u WHERE u.name LIKE ?" returns: arr
<strong>returns</strong> an array containing the query string parts
<strong>throws</strong> Doctrine_Query_Exception if some generic parsing error occurs
Parameter Summary
Parameter Summary
example: parameters: $str = (age < 20 AND age > 18) AND email LIKE
'John@example.com' $d = ' AND ' $e1 = '(' $e2 =
')' would return an array: array("(age < 20 AND age >
Parameter Summary
explodes a string into array using custom brackets and quote delimeters example:
parameters: $str = "(age < 20 AND age > 18) AND name LIKE 'John
Doe'" $d = ' ' $e1 = '(' $e2 = &apo
Parameter Summary
explodes a string into array using custom brackets and quote delimeters example:
parameters: $str = "(age < 20 AND age > 18) AND name LIKE 'John
Doe'" $d = ' ' $e1 = '(' $e2 = &apo
Doctrine_Query_Where
Method Summary
Returns Name Description
parseValue
load
_buildWhereInArraySqlPart
_buildSql
string parseExists
Method Details
parseValue($rightExpr)
Parameter Summary
load($where)
Parameter Summary
_buildWhereInArraySqlPart($rightExpr)
Parameter Summary
Parameter Summary
Parameter Summary
Doctrine_RawSql
Method Summary
Returns Name Description
parseDqlQueryPart This implementation does no parsing at all, except of the
SELECT portion of the query which is special in RawSql
queries. The entire remaining parts are used "as is", so the
user of the RawSql query is responsible for writing SQL that
is porta
string getSqlQuery
parseDqlQuery Overrides Doctrine_Query_Abstract::parseDqlQuery(). This
implementation simply tokenizes the provided query string
and uses them as SQL parts right away.
parseQueryPart
_addDqlQueryPart This implementation for RawSql parses the new parts right
away, generating the SQL.
__construct
integer count This method executes the main query without all the selected
fields, ORDER BY part, LIMIT part and OFFSET part. This is
an exact copy of the Dql Version
array getFields
string getCountQuery
addComponent
Method Details
parseDqlQueryPart($queryPartName, $queryPart, $append = false)
Parameter Summary
Parameter Summary
getSqlQuery builds the sql query.
<strong>returns</strong> the built sql query
parseDqlQuery($query)
Parameter Summary
parseDqlQuery parses an sql query and adds the parts to internal array.
Overrides Doctrine_Query_Abstract::parseDqlQuery(). This implementation simply tokenizes
the provided query string and uses them as SQL parts right away.
<strong>returns</strong> this object
Parameter Summary
Parameter Summary
Adds a DQL query part. Overrides Doctrine_Query_Abstract::_addDqlQueryPart().
This implementation for RawSql parses the new parts right away, generating the SQL.
Parameter Summary
$hydrator The hydrator that will be used for generating result sets.
Constructor.
Parameter Summary
(array) getFields()
Parameter Summary
getFields returns the fields associated with this parser
Parameter Summary
getCountQuery builds the count query.
<strong>returns</strong> the built sql query
Parameter Summary
Doctrine_Record
Method Summary
Returns Name Description
boolean assignDefaultValues
integer getIncremented
preSave
preDqlUpdate queries at runtime
loadReference
mapValue Usually this method is used internally by Doctrine for
the mapping of aggregate values.
deleteNode
preDelete
postHydrate after it runs
_get
state
boolean load Used to move a record from PROXY to CLEAN/DIRTY
state.
postUpdate
postValidate
validateOnInsert
coreSetRelated
array getPrepared returns an array of modified fields and values with data
preparation adds column aggregation inheritance and
converts Records into primary key values
clearRelated (references to related objects still remain on Table
objects)
boolean delete this event can be listened by the onPreDelete and
onDelete listeners
refreshRelated
mixed __call the function of this method is to try to find given method
from the templates this record is using and if it finds
given method it will execute it So, in sense, this method
replicates the usage of mixins (as seen in some
programming languages)
array getMutators
array identifier
copy
obtainReference
boolean refresh
importFrom Import data from an external data source
merge
getErrorStack
array serialize
string getAccessor
boolean hydrate
boolean hasReference
__toString
construct
boolean contains
mixed get
save this method also saves the related components
validate
postSave
linkInDb
clearMutator
array getReferences
clearAccessor
array getPendingUnlinks
array getLastModified
set
boolean hasAccessor
assignInheritanceValues
oid
array getData
free Cuts all references the entity has to other entities and
removes the entity from the instance pool. Note: The
entity is no longer useable after free() has been called.
Any operations done with the entity afterwards can lead
to unpredictable results.
unlinkInDb
string getMutator
array cleanData
hasAccessorMutator
mixed exportTo
preUnserialize
call
errorStack
integer _index
reference
fromArray
_set
array getAccessors
mixed rawGet
string toString
postSerialize
array toArray
unserialize
setUp
boolean isModified
synchronizeWithArray it expects an array representation of a Doctrine_Record
similar to the return value of the toArray() method. If the
array contains relations it will create those that don't
exist, update the ones that do, and delete the ones
missing on the array b
preDqlSelect queries at runtime
postDelete
resetPendingUnlinks
preUpdate
preSerialize
boolean isValid
Method Details
(boolean) assignDefaultValues($overwrite = false)
Parameter Summary
(integer) getIncremented()
Parameter Summary
returns the value of autoincremented primary key of this object (if any)
preSave($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the saving procedure.
preDqlUpdate($event)
Parameter Summary
Empty template method to provide Record classes with the ability to alter DQL
update
queries at runtime
loadReference($name)
Parameter Summary
loadReference loads a related component
<strong>throws</strong> Doctrine_Table_Exception if trying to load an unknown related
component
Parameter Summary
mapValue This simple method is used for mapping values to $values property.
Usually this method is used internally by Doctrine for the mapping of aggregate values.
deleteNode()
Parameter Summary
used to delete node from tree - MUST BE USE TO DELETE RECORD IF TABLE ACTS
AS TREE
preDelete($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the deletion procedure.
postHydrate($event)
Parameter Summary
Empty template method to provide Record classes with the ability to alter hydration
after it runs
Parameter Summary
Parameter Summary
$state if set, this method tries to set the record state to $state
Parameter Summary
load Loads all the uninitialized properties from the database.
Used to move a record from PROXY to CLEAN/DIRTY state.
postUpdate($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the saving procedure only when the record is going to be updated.
postValidate($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the validation procedure.
validateOnInsert()
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the validation procedure only when the record is going to be inserted into
the data store the first time.
coreSetRelated($name, $value)
Parameter Summary
DESCRIBE WHAT THIS METHOD DOES, PLEASE!
Parameter Summary
returns an array of modified fields and values with data preparation adds column aggregation
inheritance and converts Records into primary key values
clearRelated()
Parameter Summary
clearRelated unsets all the relationships this object has
(references to related objects still remain on Table objects)
Parameter Summary
deletes this data access object and all the related composites this operation is
isolated by a transaction
this event can be listened by the onPreDelete and onDelete listeners
<strong>returns</strong> true on success, false on failure
refreshRelated($name = null)
Parameter Summary
$name name of a related component. if set, this method only refreshes the specified related
component
Parameter Summary
__call this method is a magic method that is being used for method overloading
the function of this method is to try to find given method from the templates this record is
using and if it finds given method it will execute it So, in sense, this method replicates the
usage of mixins (as seen in some programming languages)
<strong>returns</strong> the return value of the given method
(array) getMutators()
Parameter Summary
Get all mutators for this component instance
(array) identifier()
Parameter Summary
returns the primary keys of this object
copy($deep = false)
Parameter Summary
copy returns a copy of this object
obtainReference($name)
Parameter Summary
<strong>throws</strong> Doctrine_Record_Exception if trying to get an unknown related
component
Parameter Summary
$deep If true, fetch also current relations. Caution: this deletes any aggregated values you
may have queried beforee
importFrom($type, $data)
Parameter Summary
Parameter Summary
$deep Bool value for whether or not to merge the data deep
Merges this record with an array of values or with another existing instance of this
object
getErrorStack()
Parameter Summary
<strong>returns</strong> returns the errorStack associated with this record
(array) serialize()
Parameter Summary
serialize this method is automatically called when this Doctrine_Record is serialized
(string) getAccessor($fieldName)
Parameter Summary
Get the custom accessor for a field name
(boolean) hydrate($data)
Parameter Summary
hydrate hydrates this object from given array
(boolean) hasReference($name)
Parameter Summary
hasRefence
__toString()
Parameter Summary
returns a string representation of this object
construct()
Parameter Summary
construct Empty template method to provide concrete Record classes with the
possibility to hook into the constructor procedure
Parameter Summary
Parameter Summary
Parameter Summary
applies the changes made to this object into database this method is smart enough
to know if any changes are made and whether to use INSERT or UPDATE statement
validate()
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the validation procedure, doing any custom / specialized validations that
are neccessary.
postSave($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the saving procedure.
linkInDb($alias, $ids)
Parameter Summary
clearMutator($fieldName)
Parameter Summary
Clear the mutator for a field name
(array) getReferences()
Parameter Summary
<strong>returns</strong> all references
clearAccessor($fieldName)
Parameter Summary
Clear the accessor for a field name
(array) getPendingUnlinks()
Parameter Summary
Get pending un links array
Parameter Summary
$old Whether or not to return the old values instead of the new
Parameter Summary
Check if a value has changed according to Doctrine Doctrine is loose with type
checking in the same ways PHP is for consistancy of behavior
This function basically says if what is being set is of Doctrine type boolean and something like
current_value == 1 && new_value = true would not be considered modified Simply
doing $old !== $new will return false for boolean columns would mark t
<strong>returns</strong> Whether or not Doctrine considers the value modified
(integer) columnCount()
Parameter Summary
alias for count()
<strong>returns</strong> the number of columns in this record
getLast()
Parameter Summary
this method is used internally be Doctrine_Query it is needed to provide compatibility
between records and collections
Parameter Summary
returns an array of modified fields and associated new values specify $old = true to
retrieve an array with the old values
__unset($name)
Parameter Summary
Parameter Summary
Parameter Summary
preInsert($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the saving procedure only when the record is going to be inserted into the
data store the first time.
Parameter Summary
preValidate($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the validation procedure. Useful for cleaning up data before validating it.
Parameter Summary
unlink removes links from this record to given records if no ids are given, it removes
all links
<strong>returns</strong> this object
getTable()
Parameter Summary
getTable returns the table object for this record
<strong>returns</strong> a Doctrine_Table object
unshiftFilter(( ) $filter)
Parameter Summary
Parameter Summary
$table a Doctrine_Table object or null, if null the table object is retrieved from
current connection
$isNewEntry whether or not this record is transient
constructor
<strong>throws</strong> Doctrine_Record_Exception if the cleanData operation fails
somehow
(mixed) getNode()
Parameter Summary
getter for node assciated with this record
<strong>returns</strong> if tree returns Doctrine_Node otherwise returns false
preHydrate($event)
Parameter Summary
Empty template method to provide Record classes with the ability to alter hydration
before it runs
preDqlDelete($event)
Parameter Summary
Empty template method to provide Record classes with the ability to alter DQL
delete
queries at runtime
(boolean) exists()
Parameter Summary
exists returns true if this record is persistent, otherwise false
(integer) getOid()
Parameter Summary
getOid returns the object identifier
(integer) count()
Parameter Summary
count this class implements countable interface
<strong>returns</strong> the number of columns in this record
(array) getPendingDeletes()
Parameter Summary
<strong>returns</strong> Array of Doctrine_Records instances which need to be deleted on
save
postInsert($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the saving procedure only when the record is going to be inserted into the
data store the first time.
Parameter Summary
Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except
that if there is already a row in the table with the same key field values, the REPLACE query
just updates its values instead of inserting a new row. The REPLACE type o
<strong>returns</strong> number of rows affected
<strong>throws</strong> Doctrine_Connection_Exception if some of the key values was null
_resetModified()
Parameter Summary
Reset the modified array and store the old array in lastModified so it can be accessed
by users after saving a record since the modified array is reset after the object is
saved.
Parameter Summary
Set a fieldname to have a custom mutator or check if a field has a custom mutator
defined
postUnserialize($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the serializing procedure.
validateOnUpdate()
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the validation procedure only when the record is going to be updated.
setRelated($alias, ( ) $coll)
Parameter Summary
assignIdentifier($id = false)
Parameter Summary
getIterator()
Parameter Summary
<strong>returns</strong> a Doctrine_Record_Iterator that iterates through the data
Parameter Summary
set method for altering properties and Doctrine_Record references if the load
parameter is set to false this method will not try to load uninitialized record data
<strong>throws</strong> Doctrine_Record_Exception if trying to set a value of wrong type
for related component
Parameter Summary
Set a fieldname to have a custom accessor or check if a field has a custom accessor
defined
assignInheritanceValues()
Parameter Summary
Assign the inheritance column values
oid()
Parameter Summary
(array) getData()
Parameter Summary
getData return all the internal data
<strong>returns</strong> an array containing all the properties
free($deep = false)
Parameter Summary
Helps freeing the memory occupied by the entity.
Cuts all references the entity has to other entities and removes the entity from the instance
pool. Note: The entity is no longer useable after free() has been called. Any operations done
with the entity afterwards can lead to unpredictable results.
Parameter Summary
(string) getMutator($fieldName)
Parameter Summary
Get the custom accessor for a field name
Parameter Summary
cleanData leaves the $data array only with values whose key is a field inside this
record and returns the values that were removed from $data. Also converts any
values of 'null' to objects of type Doctrine_Null.
<strong>returns</strong> values cleaned from data
Parameter Summary
Set a fieldname to have a custom accessor and mutator
Parameter Summary
preUnserialize($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the serializing procedure.
Parameter Summary
Parameter Summary
(integer) _index()
Parameter Summary
reference($name)
Parameter Summary
Parameter Summary
$deep Bool value for whether or not to merge the data deep
Parameter Summary
(array) getAccessors()
Parameter Summary
Get all accessors for this component instance
Parameter Summary
rawGet returns the value of a property, if the property is not yet loaded this method
does NOT load it
<strong>throws</strong> Doctrine_Record_Exception if trying to get an unknown property
(string) toString()
Parameter Summary
__toString alias
postSerialize($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the serializing procedure.
Parameter Summary
$deep
• Return also the relations
unserialize($serialized)
Parameter Summary
setUp()
Parameter Summary
setUp this method is used for setting up relations and attributes it should be
implemented by child classes
(boolean) isModified()
Parameter Summary
isModified returns true if this record was modified, otherwise false
Parameter Summary
preDqlSelect($event)
Parameter Summary
Empty template method to provide Record classes with the ability to alter DQL select
queries at runtime
postDelete($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the deletion procedure.
resetPendingUnlinks()
Parameter Summary
Reset pending un links array
preUpdate($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the saving procedure only when the record is going to be updated.
preSerialize($event)
Parameter Summary
Empty template method to provide concrete Record classes with the possibility to
hook into the serializing procedure.
(boolean) isValid()
Parameter Summary
<strong>returns</strong> whether or not this record is valid
Doctrine_Record_Abstract
Method Summary
Returns Name Description
setTableDefinition
hasColumn
setListener
check
setTableName
hasColumns
unique
loadGenerator
mixed option
mixed attribute
getTable
hasMany
setSubclasses
hasOne
setInheritanceMap
getListener
actAs
addListener
bindQueryParts
setUp
Method Details
setTableDefinition()
Parameter Summary
Parameter Summary
hasColumn sets a column definition
setListener((Doctrine_EventListener_Interface|Doctrine_Overloadable)
$listener)
Parameter Summary
Parameter Summary
setTableName($tableName)
Parameter Summary
hasColumns($definitions)
Parameter Summary
unique()
Parameter Summary
Specify an array of fields that are unique and will be validated as such
loadGenerator(( ) $generator)
Parameter Summary
Parameter Summary
Parameter Summary
attribute sets or retrieves an option
getTable()
Parameter Summary
getTable returns the associated table object
<strong>returns</strong> the associated table object
hasMany($componentName, $options)
Parameter Summary
setSubclasses($map)
Parameter Summary
hasOne($componentName, $options)
Parameter Summary
setInheritanceMap($map)
Parameter Summary
getListener()
Parameter Summary
Parameter Summary
actAs loads the given plugin
addListener((Doctrine_EventListener_Interface|Doctrine_Overloadable)
$listener, $name = null)
Parameter Summary
bindQueryParts($queryParts)
Parameter Summary
setUp()
Parameter Summary
Parameter Summary
defines or retrieves an index if the second parameter is set this method defines an index if not
this method retrieves index named $name
setAttribute($attr, $value)
Parameter Summary
Doctrine_Record_Filter
Method Summary
Returns Name Description
setTable
getTable
filterGet
filterSet
Method Details
setTable(( ) $table)
Parameter Summary
getTable()
Parameter Summary
Parameter Summary
Parameter Summary
Doctrine_Record_Filter_Compound
Method Summary
Returns Name Description
init
__construct
filterGet
filterSet
Method Details
init()
Parameter Summary
__construct($aliases)
Parameter Summary
Parameter Summary
Parameter Summary
Doctrine_Record_Filter_Standard
Method Summary
Returns Name Description
filterGet
filterSet
Method Details
filterGet(( ) $record, $name)
Parameter Summary
Parameter Summary
Doctrine_Record_Iterator
Method Summary
Returns Name Description
initNullObject
mixed current
__construct
Method Details
initNullObject(( ) $null)
Parameter Summary
(mixed) current()
Parameter Summary
__construct(( ) $record)
Parameter Summary
constructor
Doctrine_Record_Listener
Method Summary
Returns Name Description
preSave
preDqlUpdate
mixed getOption
preDelete
postHydrate
postUpdate
postValidate
postSave
preInsert
preValidate
preHydrate
preDqlDelete
postInsert
postUnserialize
setOption
preUnserialize
postSerialize
preDqlSelect
postDelete
preUpdate
preSerialize
Method Details
preSave(( ) $event)
Parameter Summary
preDqlUpdate(( ) $event)
Parameter Summary
(mixed) getOption($name)
Parameter Summary
preDelete(( ) $event)
Parameter Summary
postHydrate(( ) $event)
Parameter Summary
postUpdate(( ) $event)
Parameter Summary
postValidate(( ) $event)
Parameter Summary
postSave(( ) $event)
Parameter Summary
preInsert(( ) $event)
Parameter Summary
preValidate(( ) $event)
Parameter Summary
preHydrate(( ) $event)
Parameter Summary
preDqlDelete(( ) $event)
Parameter Summary
postInsert(( ) $event)
Parameter Summary
postUnserialize(( ) $event)
Parameter Summary
Parameter Summary
preUnserialize(( ) $event)
Parameter Summary
postSerialize(( ) $event)
Parameter Summary
preDqlSelect(( ) $event)
Parameter Summary
postDelete(( ) $event)
Parameter Summary
preUpdate(( ) $event)
Parameter Summary
preSerialize(( ) $event)
Parameter Summary
Doctrine_Record_Listener_Chain
Method Summary
Returns Name Description
preSave
preDqlUpdate
mixed getOption
preDelete
postHydrate
postUpdate
postValidate
add
mixed get
postSave
preInsert
preValidate
preHydrate
preDqlDelete
postInsert
postUnserialize
setOption
set
preUnserialize
postSerialize
preDqlSelect
postDelete
preUpdate
preSerialize
Method Details
preSave(( ) $event)
Parameter Summary
preDqlUpdate(( ) $event)
Parameter Summary
(mixed) getOption($name)
Parameter Summary
preDelete(( ) $event)
Parameter Summary
postHydrate(( ) $event)
Parameter Summary
postUpdate(( ) $event)
Parameter Summary
postValidate(( ) $event)
Parameter Summary
Parameter Summary
add adds a listener to the chain of listeners
(mixed) get($key)
Parameter Summary
returns a Doctrine_Record_Listener on success and null on failure
postSave(( ) $event)
Parameter Summary
preInsert(( ) $event)
Parameter Summary
preValidate(( ) $event)
Parameter Summary
preHydrate(( ) $event)
Parameter Summary
preDqlDelete(( ) $event)
Parameter Summary
postInsert(( ) $event)
Parameter Summary
postUnserialize(( ) $event)
Parameter Summary
Parameter Summary
Parameter Summary
preUnserialize(( ) $event)
Parameter Summary
postSerialize(( ) $event)
Parameter Summary
preDqlSelect(( ) $event)
Parameter Summary
postDelete(( ) $event)
Parameter Summary
preUpdate(( ) $event)
Parameter Summary
preSerialize(( ) $event)
Parameter Summary
Doctrine_Record_Listener_Interface
Method Summary
Returns Name Description
preSave
preDelete
postHydrate
postUpdate
postSave
preInsert
preHydrate
postInsert
postUnserialize
preUnserialize
postSerialize
postDelete
preUpdate
preSerialize
Method Details
preSave(( ) $event)
Parameter Summary
preDelete(( ) $event)
Parameter Summary
postHydrate(( ) $event)
Parameter Summary
postUpdate(( ) $event)
Parameter Summary
postSave(( ) $event)
Parameter Summary
preInsert(( ) $event)
Parameter Summary
preHydrate(( ) $event)
Parameter Summary
postInsert(( ) $event)
Parameter Summary
postUnserialize(( ) $event)
Parameter Summary
preUnserialize(( ) $event)
Parameter Summary
postSerialize(( ) $event)
Parameter Summary
postDelete(( ) $event)
Parameter Summary
preUpdate(( ) $event)
Parameter Summary
preSerialize(( ) $event)
Parameter Summary
Doctrine_Relation
Method Summary
Returns Name Description
string getLocal
boolean isOneToOne
string getRelationDql
offsetUnset
string getAlias
string getForeignColumnName
offsetSet
isDeferred
offsetGet
string getForeign
string __toString
boolean isCascadeDelete
boolean hasConstraint
offsetExists
integer getType
fetchRelatedFor fetches a component related to given record
isEqual
getTable
__construct
string getLocalColumnName
getForeignFieldName returns the field name of the foreign column
string getForeignKeyName
getLocalFieldName returns the field name of the local column
isDeferrable
getClass
array toArray
Method Details
(string) getLocal()
Parameter Summary
getLocal returns the name of the local column
(boolean) isOneToOne()
Parameter Summary
isOneToOne returns whether or not this relation is a one-to-one relation
(string) getRelationDql($count)
Parameter Summary
offsetUnset($offset)
Parameter Summary
(string) getAlias()
Parameter Summary
getAlias returns the relation alias
(string) getForeignColumnName()
Parameter Summary
getForeignColumnName returns the column name of the foreign column
offsetSet($offset, $value)
Parameter Summary
isDeferred()
Parameter Summary
offsetGet($offset)
Parameter Summary
(string) getForeign()
Parameter Summary
getForeign returns the name of the foreignkey column where the localkey column is
pointing at
(string) __toString()
Parameter Summary
(boolean) isCascadeDelete()
Parameter Summary
Checks whether this relation cascades deletions to the related objects on the
application level.
(boolean) hasConstraint()
Parameter Summary
hasConstraint whether or not this relation has an explicit constraint
offsetExists($offset)
Parameter Summary
(integer) getType()
Parameter Summary
getType returns the relation type, either 0 or 1
fetchRelatedFor(( ) $record)
Parameter Summary
fetches a component related to given record
isEqual()
Parameter Summary
getTable()
Parameter Summary
getTable returns the foreign table object
__construct($definition)
Parameter Summary
$definition <p> an associative array with the following structure: name foreign key
constraint name </p> <p>local the local field(s)</p> <p>foreign the foreign
reference field(s)</p> <p>
constructor
(string) getLocalColumnName()
Parameter Summary
getLocalColumnName returns the column name of the local column
getForeignFieldName()
Parameter Summary
getLocalFieldName
returns the field name of the foreign column
(string) getForeignKeyName()
Parameter Summary
Get the name of the foreign key for this relationship
getLocalFieldName()
Parameter Summary
returns the field name of the local column
isDeferrable()
Parameter Summary
getClass()
Parameter Summary
getClass returns the name of the related class
(array) toArray()
Parameter Summary
Doctrine_Relation_Association
Method Summary
Returns Name Description
string getRelationDql
getLocalRefFieldName returns the field name of the local reference column
getForeignRefColumnName returns the column name of the foreign reference
column
getAssociationFactory
fetchRelatedFor fetches a component related to given record
getAssociationTable
getLocalRefColumnName returns the column name of the local reference
column
getForeignRefFieldName returns the field name of the foreign reference
column
Method Details
(string) getRelationDql($count, $context = 'record')
Parameter Summary
getLocalRefFieldName()
Parameter Summary
returns the field name of the local reference column
getForeignRefColumnName()
Parameter Summary
returns the column name of the foreign reference column
getAssociationFactory()
Parameter Summary
fetchRelatedFor(( ) $record)
Parameter Summary
fetches a component related to given record
getAssociationTable()
Parameter Summary
getLocalRefColumnName()
Parameter Summary
returns the column name of the local reference column
getForeignRefFieldName()
Parameter Summary
returns the field name of the foreign reference column
Doctrine_Relation_Association_Self
Method Summary
Returns Name Description
string getRelationDql
fetchRelatedFor
Method Details
(string) getRelationDql($count, $context = 'record')
Parameter Summary
fetchRelatedFor(( ) $record)
Parameter Summary
Doctrine_Relation_ForeignKey
Method Summary
Returns Name Description
fetchRelatedFor fetches a component related to given record
getCondition
Method Details
fetchRelatedFor(( ) $record)
Parameter Summary
fetches a component related to given record
getCondition($alias = null)
Parameter Summary
Doctrine_Relation_LocalKey
Method Summary
Returns Name Description
fetchRelatedFor fetches a component related to given record
getCondition
Method Details
fetchRelatedFor(( ) $record)
Parameter Summary
fetches a component related to given record
getCondition($alias = null)
Parameter Summary
Doctrine_Relation_Nest
Method Summary
Returns Name Description
string fetchRelatedFor
Method Details
(string) fetchRelatedFor(( ) $record, $count)
Parameter Summary
getRelationDql
Doctrine_Relation_Parser
Method Summary
Returns Name Description
array getPendingRelations
getRelation
array getPendingRelation
getImpl returns the table class of the concrete implementation
for given template if the given template is not a
template then this method just returns the table class
for the given record
bind
array completeAssocDefinition
boolean hasRelation
array guessColumns
getTable
__construct
unsetPendingRelations
array completeDefinition
getIdentifiers the identifiers are in format:
[componentName].[identifier]
array getRelations
Method Details
(array) getPendingRelations()
Parameter Summary
<strong>returns</strong> an array containing all the pending relations
Parameter Summary
(array) getPendingRelation($name)
Parameter Summary
<strong>returns</strong> an array defining a pending relation
getImpl($template)
Parameter Summary
returns the table class of the concrete implementation for given template if the given
template is not a template then this method just returns the table class for the given record
Parameter Summary
binds a relation
(array) completeAssocDefinition($def)
Parameter Summary
(boolean) hasRelation($name)
Parameter Summary
Check if a relation alias exists
Parameter Summary
getTable()
Parameter Summary
<strong>returns</strong> the table object this parser belongs to
__construct(( ) $table)
Parameter Summary
constructor
unsetPendingRelations($name)
Parameter Summary
(array) completeDefinition($def)
Parameter Summary
getIdentifiers(( ) $table)
Parameter Summary
(array) getRelations()
Parameter Summary
getRelations returns an array containing all relation objects
<strong>returns</strong> an array of Doctrine_Relation objects
Doctrine_Search
Method Summary
Returns Name Description
setTableDefinition
batchUpdateIndex
analyze
readTableData
integer updateIndex
__construct
mixed search
Method Details
setTableDefinition()
Parameter Summary
buildDefinition
Parameter Summary
Parameter Summary
analyze a text in the encoding format
Parameter Summary
<strong>returns</strong> The collection of results
Parameter Summary
updateIndex updates the index
__construct($options)
Parameter Summary
Parameter Summary
$query Query object to alter. Adds where condition to limit the results using the search
index
Doctrine_Search_Analyzer
Method Summary
Returns Name Description
analyze
Method Details
analyze($text, $encoding = 'ISO8859-15')
Parameter Summary
Doctrine_Search_Analyzer_Interface
Method Summary
Returns Name Description
analyze
Method Details
analyze($text, $encoding = 'ISO8859-15')
Parameter Summary
Doctrine_Search_Analyzer_Standard
Method Summary
Returns Name Description
analyze
Method Details
analyze($text, $encoding = 'ISO-8859-15')
Parameter Summary
Doctrine_Search_Analyzer_Utf8
Method Summary
Returns Name Description
analyze
Method Details
analyze($text, $encoding = 'ISO8859-15')
Parameter Summary
Doctrine_Search_File
Method Summary
Returns Name Description
indexDirectory
__construct
buildRelation
Method Details
indexDirectory($dir)
Parameter Summary
__construct($options = array())
Parameter Summary
constructor
buildRelation()
Parameter Summary
Doctrine_Search_Indexer
Method Summary
Returns Name Description
indexDirectory
Method Details
indexDirectory($dir)
Parameter Summary
Doctrine_Search_Indexer_Dir
Method Summary
Returns Name Description
add
Method Details
add($dir)
Parameter Summary
Doctrine_Search_Listener
Method Summary
Returns Name Description
postUpdate
__construct
postInsert
preUpdate
Method Details
postUpdate(( ) $event)
Parameter Summary
__construct(( ) $search)
Parameter Summary
postInsert(( ) $event)
Parameter Summary
preUpdate(( ) $event)
Parameter Summary
Doctrine_Search_Parser
Method Summary
Returns Name Description
parse
Method Details
parse($file)
Parameter Summary
Doctrine_Search_Query
Method Summary
Returns Name Description
getParams
query
parseClause
isExpression
__construct
getSql
parseTerm
getWords
parseWord
Method Details
getParams()
Parameter Summary
Parameter Summary
Parameter Summary
isExpression($term)
Parameter Summary
Parameter Summary
getSql()
Parameter Summary
parseTerm($term)
Parameter Summary
getWords()
Parameter Summary
parseWord($word)
Parameter Summary
Doctrine_Search_Record
Method Summary
Returns Name Description
setTableDefinition
setUp
Method Details
setTableDefinition()
Parameter Summary
setUp()
Parameter Summary
Doctrine_Sequence
Method Summary
Returns Name Description
lastInsertId
integer currId
integer nextId
Method Details
lastInsertId($table = null, $field = null)
Parameter Summary
$table name of the table into which a new row was inserted
$field name of the field into which a new row was inserted
(integer) currId($seqName)
Parameter Summary
Parameter Summary
Doctrine_Sequence_Db2
Method Summary
Returns Name Description
integer lastInsertId As a convention, on RDBMS brands that support sequences (e.g.
Oracle, PostgreSQL, DB2), this method forms the name of a
sequence from the arguments and returns the last id generated
by that sequence. On RDBMS brands that support IDENTITY/
AUTOINCREMENT
integer lastSequenceId This is supported only on RDBMS brands that support sequences
(e.g. Oracle, PostgreSQL, DB2). Other RDBMS brands return
null.
integer nextSequenceId This is supported only on RDBMS brands that support sequences
(e.g. Oracle, PostgreSQL, DB2). Other RDBMS brands return
null.
Method Details
(integer) lastInsertId($tableName = null, $primaryKey = null)
Parameter Summary
$tableName OPTIONAL
$primaryKey OPTIONAL
(integer) lastSequenceId($sequenceName)
Parameter Summary
Return the most recent value from the specified sequence in the database.
This is supported only on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL,
DB2). Other RDBMS brands return null.
<strong>throws</strong> Doctrine_Adapter_Db2_Exception
(integer) nextSequenceId($sequenceName)
Parameter Summary
Generate a new value from the specified sequence in the database, and return it.
This is supported only on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL,
DB2). Other RDBMS brands return null.
<strong>throws</strong> Doctrine_Adapter_Db2_Exception
Doctrine_Sequence_Firebird
Method Summary
Returns Name Description
lastInsertId
integer currId
integer nextID
Method Details
lastInsertId($table = null, $field = null)
Parameter Summary
$table name of the table into which a new row was inserted
$field name of the field into which a new row was inserted
(integer) currId($seqName)
Parameter Summary
Parameter Summary
Doctrine_Sequence_Mssql
Method Summary
Returns Name Description
bool checkSequence
lastInsertId
integer currId
integer nextId
Method Details
(bool) checkSequence($seqName)
Parameter Summary
Parameter Summary
$table name of the table into which a new row was inserted
$field name of the field into which a new row was inserted
(integer) currId($seqName)
Parameter Summary
Parameter Summary
Doctrine_Sequence_Mysql
Method Summary
Returns Name Description
integer|boolean lastInsertId
integer currId
integer nextId
Method Details
(integer|boolean) lastInsertId($table = null, $field = null)
Parameter Summary
$table name of the table into which a new row was inserted
$field name of the field into which a new row was inserted
(integer) currId($seqName)
Parameter Summary
Parameter Summary
Doctrine_Sequence_Oracle
Method Summary
Returns Name Description
lastInsertID
integer currID
integer nextID
Method Details
lastInsertID($table = null, $field = null)
Parameter Summary
$table name of the table into which a new row was inserted
$field name of the field into which a new row was inserted
(integer) currID($seqName)
Parameter Summary
Parameter Summary
Doctrine_Sequence_Pgsql
Method Summary
Returns Name Description
integer lastInsertId Returns the autoincrement ID if supported or $id or fetches the
current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
integer currId
integer nextId
Method Details
(integer) lastInsertId($table = null, $field = null)
Parameter Summary
$table name of the table into which a new row was inserted
$field name of the field into which a new row was inserted
(integer) currId($seqName)
Parameter Summary
Parameter Summary
Doctrine_Sequence_Sqlite
Method Summary
Returns Name Description
integer|boolean lastInsertId
integer currId
integer nextId
Method Details
(integer|boolean) lastInsertId($table = null, $field = null)
Parameter Summary
$table name of the table into which a new row was inserted
$field name of the field into which a new row was inserted
(integer) currId($seqName)
Parameter Summary
Parameter Summary
Doctrine_Parser_Spyc
Method Summary
Returns Name Description
string dump The dump method, when supplied with an array, will do its best to
convert the array into friendly YAML. Pretty simple. Feel free to save
the returned string as tasteful.yaml and pass it around. Oh, and you
can decide how big the indent is and what the
array load The load method, when supplied with a YAML stream (string or file
path), will do its best to convert the YAML into a PHP array. Pretty
simple. Usage:
<
pre> load('lucky.yaml');
array YAMLLoad The load method, when supplied with a YAML stream (string or file),
will do its best to convert YAML in a file into a PHP array. Pretty
simple. Usage:
<
pre>
_linkRef
string YAMLDump The dump method, when supplied with an array, will do its best to
convert the array into friendly YAML. Pretty simple. Feel free to save
the returned string as nothing.yaml and pass it around. Oh, and you
can decide how big the indent is and what the
Method Details
(string) dump($array, $indent = false, $wordwrap = false)
Parameter Summary
(array) load($input)
Parameter Summary
(array) YAMLLoad($input)
Parameter Summary
The load method, when supplied with a YAML stream (string or file), will do its best to
convert YAML in a file into a PHP array. Pretty simple. Usage: <pre><code> <![CDATA[
$array = Doctrine_Spyc::YAMLLoad('lucky.yaml'); print_r($array);]]>
Parameter Summary
Parameter Summary
Doctrine_Parser_Spyc_YamlNode
Method Summary
Returns Name Description
__construct
Method Details
__construct($nodeId)
Parameter Summary
The constructor assigns the node a unique ID.
Doctrine_Table
Method Summary
Returns Name Description
mixed getOption
addNamedQuery
array getTemplates
boolean hasColumn
mixed find
array getColumnNames
setColumns
__isset
getRepository
array getColumns
boolean removeColumn
clear
getGenerator
createQuery
boolean isIdentifierComposite
setConnection
getRelation
mixed getDefinitionOf
__call Adds support for magic finders.
findByColumnName, findByRelationAlias
findById, findByContactId, etc.
array getOptions
getProxy
addCheckConstraint adds a check constraint to this table
validateUniques
setTableName
getRelationParser
createNamedQuery
array|boolean getIndex
bind
string __toString
construct
setOptions
boolean removeRecord
boolean isInheritedColumn
array getUniques
unique
hasGenerator
getTableName
setData
array getIdentifierColumnNames
getRecord
getComponentName
__get
array getFilters
addTemplate
findBySql
mixed executeOne if no query for given queryKey is being found a
Doctrine_Query_Registry exception is being
thrown
boolean hasRelation
validateField
boolean isIdentifierAutoincrement
getColumnDefinition
string _resolveFindByFieldName regardless of whether the user passes a column
name, field name, or a
Doctrine_Inflector::classified() version of their
column name. It will be inflected with
Doctrine_Inflector::tableize() to get the column
or field name
boolean hasTemplate
initIdentifier
object Empty getRecordInstance
boolean isIdentifier
object unshiftFilter
__construct
findBy
setColumn
mixed getTypeOf
Listing </li>
0-22
<li>
<p>Uncompresses gzip typed columns</p>
</li>
<li>
<p>Gets the appropriate enum values
for enum typed columns</p>
</li>
<li>
getQueryObject
string getFieldName returns a column alias for a column name if no
alias can be found the column name is returned.
mixed getTree getter for associated tree
array getRelations
array getExportableFormat
mixed getIdentifier
integer getIdentifierType
getConnection
addForeignKey adds a foreignKey to this table
boolean export
string getColumnOwner The owner of a column is the name of the
component in a hierarchy that defines the
column.
array getData
array getGenerators
bindQueryPart
string getBoundQueryPart
getTemplate
integer getColumnCount
bindQueryParts
addIndex adds an index to this table
findByDql
array getFieldValidators
initDefinition
string applyInheritance
getMethodOwner
boolean hasDefaultValues
create
string getColumnName returns a column name for column alias if the
actual name for the alias cannot be found this
method returns the given alias
mixed getTypeOfColumn
boolean hasField
boolean addRecord
getFieldLength
Method Details
(mixed) getOption($name)
Parameter Summary
Parameter Summary
(array) getTemplates()
Parameter Summary
getTemplates returns all templates attached to this table
<strong>returns</strong> an array containing all templates
(boolean) hasColumn($columnName)
Parameter Summary
Parameter Summary
Parameter Summary
returns an array containing all the column names.
setColumns($definitions)
Parameter Summary
__isset($option)
Parameter Summary
getRepository()
Parameter Summary
(array) getColumns()
Parameter Summary
returns all columns and their definitions
(boolean) removeColumn($fieldName)
Parameter Summary
Removes the passed field name from the table schema information
clear()
Parameter Summary
clear clears the first level cache (identityMap)
getGenerator($generator)
Parameter Summary
Get generator instance for a passed name
createQuery($alias = '')
Parameter Summary
createQuery creates a new Doctrine_Query object and adds the component name of
this table as the query 'from' part
(boolean) isIdentifierComposite()
Parameter Summary
Checks whether a field identifier is a composite key.
<strong>returns</strong> TRUE if the identifier is a composite key, FALSE otherwise
setConnection(( ) $conn)
Parameter Summary
sets the connection for this class
<strong>returns</strong> this object
Parameter Summary
(mixed) getDefinitionOf($fieldName)
Parameter Summary
<strong>returns</strong> array on success, false on failure
__call($method, $arguments)
Parameter Summary
Adds support for magic finders. findByColumnName, findByRelationAlias findById,
findByContactId, etc.
(array) getOptions()
Parameter Summary
getOptions returns all options of this table and the associated values
<strong>returns</strong> all options and their values
Parameter Summary
<strong>throws</strong> Doctrine_Find_Exception
addCheckConstraint($definition, $name)
Parameter Summary
adds a check constraint to this table
validateUniques(( ) $record)
Parameter Summary
Validate all the unique sets of fields for the given Doctrine_Record instance
setTableName($tableName)
Parameter Summary
getRelationParser()
Parameter Summary
getRelationParser return the relation parser associated with this table
<strong>returns</strong> relation parser object
createNamedQuery(($queryKey) $queryKey)
Parameter Summary
(array|boolean) getIndex($index)
Parameter Summary
<strong>returns</strong> array on success, FALSE on failure
bind($args, $type)
Parameter Summary
DESCRIBE WHAT THIS METHOD DOES, PLEASE!
(string) __toString()
Parameter Summary
returns a string representation of this object
construct()
Parameter Summary
construct Empty template method to provide concrete Table classes with the
possibility to hook into the constructor procedure
setOptions($options)
Parameter Summary
Parameter Summary
removeRecord removes a record from the identity map, returning true if the record
was found and removed and false if the record wasn't found.
Parameter Summary
(array) getUniques()
Parameter Summary
Get array of sets of unique fields
unique($fields)
Parameter Summary
Add set of fields to be unique. Will automatically create unique index and validate
the values on save
hasGenerator($generator)
Parameter Summary
Check if a generator name exists
getTableName()
Parameter Summary
setData($data)
Parameter Summary
setData doctrine uses this function internally users are strongly discouraged to use
this function
(array) getIdentifierColumnNames()
Parameter Summary
returns an array with all the identifier column names.
getRecord()
Parameter Summary
getRecord first checks if record exists in identityMap, if not returns a new record
getComponentName()
Parameter Summary
__get($option)
Parameter Summary
__get an alias for getOption
(array) getFilters()
Parameter Summary
addTemplate($template, ( ) $impl)
Parameter Summary
Add template to the table
Parameter Summary
findBySql finds records with given SQL where clause returns a collection of records
Parameter Summary
executeOne fetches data using the provided queryKey and the associated query in
the query registry
if no query for given queryKey is being found a Doctrine_Query_Registry exception is being
thrown
<strong>returns</strong> the fetched data
(boolean) hasRelation($alias)
Parameter Summary
Parameter Summary
(boolean) isIdentifierAutoincrement()
Parameter Summary
Checks whether a field identifier is of type autoincrement
<strong>returns</strong> TRUE if the identifier is autoincrement FALSE otherwise
getColumnDefinition($columnName)
Parameter Summary
(string) _resolveFindByFieldName($name)
Parameter Summary
Resolve the passed find by field name to the appropriate field name
(boolean) hasTemplate($template)
Parameter Summary
Check if the table has a template name
initIdentifier()
Parameter Summary
Initializes the table identifier(s)/primary key(s)
Parameter Summary
Gets the record instance for this table. The Doctrine_Table instance always holds at
least one instance of a model so that it can be reused for several things, but
primarily it is first used to instantiate all the internal in memory meta da
<strong>returns</strong> instance of the record
(boolean) isIdentifier($fieldName)
Parameter Summary
Parameter Summary
Parameter Summary
the constructor
Parameter Summary
Parameter Summary
$prepend Whether to prepend or append the new column to the column list. By default the
column gets appended.
(mixed) getTypeOf($fieldName)
Parameter Summary
<strong>returns</strong> string on success, false on failure
(string) getClassnameToReturn()
Parameter Summary
Get the classname to return. Most often this is just the options&[apos;name']
Check the subclasses option and the inheritanceMap for each subclass to see if all the maps
in a subclass is met. If this is the case return that subclass name. If no subclasses match or if
there are no subclasses defined return the name of the class f
<strong>returns</strong> The name of the class to create
(integer) count()
Parameter Summary
Parameter Summary
execute fetches data using the provided queryKey and the associated query in the
query registry
Parameter Summary
Add a generate to the table instance
Parameter Summary
findAll($hydrationMode = null)
Parameter Summary
Parameter Summary
(array) getFieldNames()
Parameter Summary
returns an array containing all the field names.
Parameter Summary
(array) getEnumValues($fieldName)
Parameter Summary
(mixed) getDefaultValueOf($fieldName)
Parameter Summary
getDefaultValueOf returns the default value(if any) for given column
setOption($name, $value)
Parameter Summary
setOption sets an option and returns this object in order to allow flexible method
chaining
<strong>returns</strong> this object
(mixed) isTree()
Parameter Summary
determine if table acts as tree
<strong>returns</strong> if tree return true, otherwise returns false
setMethodOwner($method, $class)
Parameter Summary
Parameter Summary
prepareValue this method performs special data preparation depending on the type
of the given column
<orderedlist> <li> <p>It unserializes array and object typed columns</p> </li> <li>
<p>Uncompresses gzip typed columns</p> </li> <li> <p>Gets the appropriate enum
values for enum typed columns</p> </li> <li>
<strong>returns</strong> prepared value
<strong>throws</strong> Doctrine_Table_Exception if uncompression of gzip typed column
fails *
getQueryObject()
Parameter Summary
<strong>returns</strong> a Doctrine_Query object
(string) getFieldName($columnName)
Parameter Summary
getColumnAlias
returns a column alias for a column name if no alias can be found the column name is
returned.
<strong>returns</strong> column alias
(mixed) getTree()
Parameter Summary
getter for associated tree
<strong>returns</strong> if tree return instance of Doctrine_Tree, otherwise returns false
(array) getRelations()
Parameter Summary
getRelations returns an array containing all relation objects
<strong>returns</strong> an array of Doctrine_Relation objects
Parameter Summary
getExportableFormat returns exportable presentation of this object
(mixed) getIdentifier()
Parameter Summary
(integer) getIdentifierType()
Parameter Summary
getConnection()
Parameter Summary
returns the connection associated with this table (if any)
<strong>returns</strong> the connection object
addForeignKey($definition)
Parameter Summary
adds a foreignKey to this table
(boolean) export()
Parameter Summary
export exports this table to database based on column and option definitions
<strong>returns</strong> whether or not the export operation was successful false if table
already existed in the database
<strong>throws</strong> Doctrine_Connection_Exception if some error other than
Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
(string) getColumnOwner($columnName)
Parameter Summary
(array) getData()
Parameter Summary
returns internal data, used by Doctrine_Record instances when retrieving data from
database
(array) getGenerators()
Parameter Summary
Get all the generators for the table
bindQueryPart($queryPart, $value)
Parameter Summary
bindQueryPart binds given value to given query part
<strong>returns</strong> this object
(string) getBoundQueryPart($queryPart)
Parameter Summary
getTemplate($template)
Parameter Summary
(integer) getColumnCount()
Parameter Summary
<strong>returns</strong> the number of columns in this table
bindQueryParts($queryParts)
Parameter Summary
addIndex($index, $definition)
Parameter Summary
adds an index to this table
Parameter Summary
findByDql finds records with given DQL where clause returns a collection of records
(array) getFieldValidators($fieldName)
Parameter Summary
<strong>returns</strong> The names of all validators that are applied on the specified field.
initDefinition($name)
Parameter Summary
Initializes the in-memory table definition.
Parameter Summary
getMethodOwner($method)
Parameter Summary
(boolean) hasDefaultValues()
Parameter Summary
hasDefaultValues returns true if this table has default values, otherwise false
create($array = array())
Parameter Summary
$array an array where keys are field names and values representing field values
Parameter Summary
returns a column name for column alias if the actual name for the alias cannot be found this
method returns the given alias
<strong>returns</strong> column name
(mixed) getTypeOfColumn($columnName)
Parameter Summary
<strong>returns</strong> The column type or FALSE if the type cant be determined.
(boolean) hasField($fieldName)
Parameter Summary
Parameter Summary
getFieldLength($fieldName)
Parameter Summary
Gets the (maximum) length of a field.
Doctrine_Table_Exception
Method Summary
Returns Name Description
__construct
Method Details
__construct($message)
Parameter Summary
Doctrine_Table_Repository
Method Summary
Returns Name Description
integer evictAll
boolean add
contains
get
boolean evict
getTable
__construct
integer count Doctrine_Registry implements interface Countable
ArrayIterator getIterator
loadAll
Method Details
(integer) evictAll()
Parameter Summary
<strong>returns</strong> number of records evicted
Parameter Summary
contains($oid)
Parameter Summary
get($oid)
Parameter Summary
<strong>throws</strong> Doctrine_Table_Repository_Exception
(boolean) evict($oid)
Parameter Summary
getTable()
Parameter Summary
__construct(( ) $table)
Parameter Summary
constructor
(integer) count()
Parameter Summary
Doctrine_Registry implements interface Countable
<strong>returns</strong> the number of records this registry has
(ArrayIterator) getIterator()
Parameter Summary
loadAll()
Parameter Summary
Doctrine_Task
Method Summary
Returns Name Description
notify
array getArguments
array getRequiredArgumentsDescriptions
ask
bool validate Validates that all required fields are present
string getTaskName
__construct Since this is an abstract classes that extend
this must follow a patter of
Doctrine_Task_{TASK_NAME} This is what
determines the task name for executing it.
array getOptionalArgumentsDescriptions
array getOptionalArguments
execute Override with each task class
mixed getArgument
setArguments
string getDescription
addArgument
array getRequiredArguments
Method Details
notify($notification = null)
Parameter Summary
(array) getArguments()
Parameter Summary
(array) getRequiredArgumentsDescriptions()
Parameter Summary
ask()
Parameter Summary
(bool) validate()
Parameter Summary
Validates that all required fields are present
<strong>returns</strong> true
(string) getTaskName()
Parameter Summary
__construct($dispatcher = null)
Parameter Summary
Since this is an abstract classes that extend this must follow a patter of
Doctrine_Task_{TASK_NAME} This is what determines the task name for executing it.
(array) getOptionalArgumentsDescriptions()
Parameter Summary
(array) getOptionalArguments()
Parameter Summary
execute()
Parameter Summary
Override with each task class
Parameter Summary
setArguments($args)
Parameter Summary
(string) getDescription()
Parameter Summary
addArgument($name, $value)
Parameter Summary
(array) getRequiredArguments()
Parameter Summary
Doctrine_Task_BuildAll
Method Summary
Returns Name Description
__construct
execute
Method Details
__construct($dispatcher = null)
Parameter Summary
execute()
Parameter Summary
Doctrine_Task_BuildAllLoad
Method Summary
Returns Name Description
__construct
execute
Method Details
__construct($dispatcher = null)
Parameter Summary
execute()
Parameter Summary
Doctrine_Task_BuildAllReload
Method Summary
Returns Name Description
__construct
execute
Method Details
__construct($dispatcher = null)
Parameter Summary
execute()
Parameter Summary
Doctrine_Task_Compile
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_CreateDb
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_CreateTables
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_Dql
Method Summary
Returns Name Description
execute
_printResults
Method Details
execute()
Parameter Summary
_printResults($array)
Parameter Summary
Doctrine_Task_DropDb
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_DumpData
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_GenerateMigration
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_GenerateMigrationsDb
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_GenerateMigrationsModels
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_GenerateModelsDb
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_GenerateModelsYaml
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_GenerateSql
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_GenerateYamlDb
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_GenerateYamlModels
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_LoadData
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_Migrate
Method Summary
Returns Name Description
execute
Method Details
execute()
Parameter Summary
Doctrine_Task_RebuildDb
Method Summary
Returns Name Description
__construct
execute
Method Details
__construct($dispatcher = null)
Parameter Summary
execute()
Parameter Summary
Doctrine_Template
Method Summary
Returns Name Description
setTableDefinition
setTable
mixed getOption
getPlugin
array getOptions
Doctrine_Template. addChild
get
getTable
__construct
getInvoker
set
setInvoker
setUp
Method Details
setTableDefinition()
Parameter Summary
Blank method for template table definition
setTable(( ) $table)
Parameter Summary
Set the table object that this Template belongs to
(mixed) getOption($name)
Parameter Summary
getPlugin()
Parameter Summary
Get plugin instance
(array) getOptions()
Parameter Summary
getOptions returns all options of this template and the associated values
<strong>returns</strong> all options and their values
Parameter Summary
Adds a plugin as a child to this plugin
<strong>returns</strong> Chainable.
get($name)
Parameter Summary
getTable()
Parameter Summary
returns the associated table object
<strong>returns</strong> the associated table object
Parameter Summary
getInvoker()
Parameter Summary
returns the last used invoker
<strong>returns</strong> the record that invoked the last delegated call
set($name, $value)
Parameter Summary
setInvoker(( ) $invoker)
Parameter Summary
setUp()
Parameter Summary
Blank method for template setup
Doctrine_Template_Geographical
Method Summary
Returns Name Description
setTableDefinition
getDistanceQuery
integer getDistance
Method Details
setTableDefinition()
Parameter Summary
Set table definition for Geographical behavior
getDistanceQuery()
Parameter Summary
Initiate and get a distance query with the select parts for the number of kilometers
and miles between this record and other zipcode records in the database
Parameter Summary
Get distance between this record and another
Doctrine_Template_I18n
Method Summary
Returns Name Description
__construct
getI18n
setUp
Method Details
__construct($options = array(), $array)
Parameter Summary
getI18n()
Parameter Summary
Get the plugin instance for the I18n template
setUp()
Parameter Summary
Initialize the I18n plugin for the template
Doctrine_Template_Listener_Sluggable
Method Summary
Returns Name Description
string buildSlug
preInsert
__construct
string getUniqueSlug
preUpdate
Method Details
(string) buildSlug((Doctrine_Record) $record)
Parameter Summary
Generate the slug for a given Doctrine_Record based on the configured options
preInsert(( ) $event)
Parameter Summary
Set the slug value automatically when a record is inserted
__construct($options, $array)
Parameter Summary
Parameter Summary
Creates a unique slug for a given Doctrine_Record. This function enforces the
uniqueness by incrementing the values with a postfix if the slug is not unique
preUpdate(( ) $event)
Parameter Summary
Set the slug value automatically when a record is updated if the options are
configured to allow it
Doctrine_Template_Listener_SoftDelete
Method Summary
Returns Name Description
preDelete
__construct
preDqlDelete
preDqlSelect
postDelete
Method Details
preDelete(( ) $event)
Parameter Summary
Skip the normal delete options so we can override it with our own
__construct($options)
Parameter Summary
preDqlDelete(( ) $event)
Parameter Summary
Implement preDqlDelete() hook and modify a dql delete query so it updates the
deleted flag instead of deleting the record
preDqlSelect(( ) $event)
Parameter Summary
Implement preDqlSelect() hook and add the deleted flag to all queries for which this
model is being used in.
postDelete(( ) $event)
Parameter Summary
Implement postDelete() hook and set the deleted flag to true
Doctrine_Template_Listener_Timestampab
Method Summary
Returns Name Description
getTimestamp
preDqlUpdate
preInsert
__construct
preUpdate
Method Details
getTimestamp($type)
Parameter Summary
Gets the timestamp in the correct format based on the way the behavior is
configured
Parameter Summary
Set the updated field for dql update queries
preInsert(( ) $event)
Parameter Summary
Set the created and updated Timestampable columns when a record is inserted
__construct($options)
Parameter Summary
Parameter Summary
Set updated Timestampable column when a record is updated
Doctrine_Template_NestedSet
Method Summary
Returns Name Description
setTableDefinition
setUp
Method Details
setTableDefinition()
Parameter Summary
Call set table definition for the NestedSet behavior
setUp()
Parameter Summary
Set up NestedSet template
Doctrine_Template_Searchable
Method Summary
Returns Name Description
batchUpdateIndex
__construct
mixed searchTableProxy
setUp
Method Details
batchUpdateIndex($limit = null, $offset = null)
Parameter Summary
Make the batchUpdateIndex() function available to the template so Doctrine_Record
child classes with the behavior enabled can all the function
__construct($options = array())
Parameter Summary
Parameter Summary
$query Query object to alter. Adds where condition to limit the results using the search
index
setUp()
Parameter Summary
Setup the Searchable template behavior
Doctrine_Template_Sluggable
Method Summary
Returns Name Description
setTableDefinition
Method Details
setTableDefinition()
Parameter Summary
Set table definition for Sluggable behavior
Doctrine_Template_SoftDelete
Method Summary
Returns Name Description
setTableDefinition
Method Details
setTableDefinition()
Parameter Summary
Set table definition for SoftDelete behavior
Doctrine_Template_Timestampable
Method Summary
Returns Name Description
setTableDefinition
Method Details
setTableDefinition()
Parameter Summary
Set table definition for Timestampable behavior
Doctrine_Template_Versionable
Method Summary
Returns Name Description
revert
__construct
getAuditLog
setUp
Method Details
revert($version)
Parameter Summary
revert reverts this record to given version, this method only works if versioning
plugin is enabled
<strong>returns</strong> this object
<strong>throws</strong> Doctrine_Record_Exception if given version does not exist
__construct($options = array())
Parameter Summary
getAuditLog()
Parameter Summary
Get plugin for Versionable template
setUp()
Parameter Summary
Setup the Versionable behavior for the template
Doctrine_Transaction
Method Summary
Returns Name Description
createSavePoint
string getIsolation fetches the current session
transaction isolation level note:
some drivers may support
setting the transaction isolation
level but not fetching it
beginInternalTransaction This method must only be used
by Doctrine itself to initiate
transactions. Userland-code
must use beginTransaction .
boolean commit Listeners:
preTransactionCommit,
postTransactionCommit
integer beginTransaction if trying to set a savepoint and rollbackSavePoint
there is no active transaction a
new transaction is being started
This method should only be
used by userland-code to
initiate transactions. To initiate
a transaction from inside
Doctrine use
boolean rollback Cancel any database changes
done during a transaction or
since a specific savepoint that is
in progress. This function may
only be called when auto-
committing is disabled,
otherwise it will fail. Therefore,
a new transaction is implicitly
started after
_doCommit
integer getTransactionLevel
setIsolation('READ Listing
0-23
UNCOMMITTED');]]>
boolean addInvalid
getInternalTransactionLevel
_doBeginTransaction
integer getState
releaseSavePoint
_doRollback
Method Details
createSavePoint($savepoint)
Parameter Summary
(string) getIsolation()
Parameter Summary
getTransactionIsolation
fetches the current session transaction isolation level note: some drivers may support setting
the transaction isolation level but not fetching it
<strong>returns</strong> returns the current session transaction isolation level
<strong>throws</strong> PDOException if something fails at the PDO level
beginInternalTransaction($savepoint = null)
Parameter Summary
Initiates a transaction.
This method must only be used by Doctrine itself to initiate transactions. Userland-code must
use <a href="package.default.doctrine.transaction.doctrine-transaction.begintransaction">
<function>beginTransaction</function> </a> .
Parameter Summary
Parameter Summary
rollbackSavePoint($savepoint)
Parameter Summary
Parameter Summary
Cancel any database changes done during a transaction or since a specific savepoint that is in
progress. This function may only be called when auto-committing is disabled, otherwise it will
fail. Therefore, a new transaction is implicitly started after
<strong>returns</strong> false if rollback couldn't be performed, true otherwise
<strong>throws</strong> Doctrine_Transaction_Exception if the rollback operation fails at
database level
_doCommit()
Parameter Summary
Performs the commit.
(integer) getTransactionLevel()
Parameter Summary
getTransactionLevel get the current transaction nesting level
addCollection(( ) $coll)
Parameter Summary
(array) getInvalid()
Parameter Summary
Return the invalid records
<strong>returns</strong> An array of invalid records
setIsolation($isolation)
Parameter Summary
$isolation standard isolation level READ UNCOMMITTED (allows dirty reads) READ
COMMITTED (prevents dirty reads) REPEATABLE READ (prevents
nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
Set the transacton isolation level. (implemented by the connection drivers) example:
<pre><code> <![CDATA[ $tx->setIsolation('READ UNCOMMITTED');]]> </code></pre>
<strong>throws</strong> PDOException if something fails at the PDO level
Parameter Summary
addInvalid adds record into invalid records list
<strong>returns</strong> false if record already existed in invalid records list, otherwise
true
getInternalTransactionLevel()
Parameter Summary
_doBeginTransaction()
Parameter Summary
Begins a database transaction.
(integer) getState()
Parameter Summary
getState returns the state of this transaction module.
<strong>returns</strong> the connection state
releaseSavePoint($savepoint)
Parameter Summary
_doRollback()
Parameter Summary
Performs the rollback.
Doctrine_Transaction_Firebird
Method Summary
Returns Name Description
createSavePoint
rollbackSavePoint
setIsolation
releaseSavePoint
Method Details
createSavePoint($savepoint)
Parameter Summary
rollbackSavePoint($savepoint)
Parameter Summary
Parameter Summary
$isolation standard isolation level (SQL-92) READ UNCOMMITTED (allows dirty reads)
READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents
nonrepeatable reads) SERIALIZABLE (prevents
releaseSavePoint($savepoint)
Parameter Summary
Doctrine_Transaction_Mssql
Method Summary
Returns Name Description
_doCommit
setIsolation
_doBeginTransaction
_doRollback
Method Details
_doCommit()
Parameter Summary
Performs the commit.
Parameter Summary
$isolation standard isolation level (SQL-92) portable modes: READ UNCOMMITTED (allows
dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ
(prevents nonrepeatable reads) S
_doBeginTransaction()
Parameter Summary
Begins a database transaction.
_doRollback()
Parameter Summary
Performs the rollback.
Doctrine_Transaction_Mysql
Method Summary
Returns Name Description
createSavePoint
string getIsolation
rollbackSavePoint
setIsolation
releaseSavePoint
Method Details
createSavePoint($savepoint)
Parameter Summary
(string) getIsolation()
Parameter Summary
getTransactionIsolation
<strong>returns</strong> returns the current session transaction isolation level
rollbackSavePoint($savepoint)
Parameter Summary
setIsolation($isolation)
Parameter Summary
$isolation standard isolation level READ UNCOMMITTED (allows dirty reads) READ
COMMITTED (prevents dirty reads) REPEATABLE READ (prevents
nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
releaseSavePoint($savepoint)
Parameter Summary
Doctrine_Transaction_Oracle
Method Summary
Returns Name Description
createSavePoint
rollbackSavePoint
setIsolation
releaseSavePoint
Method Details
createSavePoint($savepoint)
Parameter Summary
rollbackSavePoint($savepoint)
Parameter Summary
setIsolation($isolation)
Parameter Summary
$isolation standard isolation level READ UNCOMMITTED (allows dirty reads) READ
COMMITTED (prevents dirty reads) REPEATABLE READ (prevents
nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
releaseSavePoint($savepoint)
Parameter Summary
Doctrine_Transaction_Pgsql
Method Summary
Returns Name Description
createSavePoint
rollbackSavePoint
setIsolation
releaseSavePoint
Method Details
createSavePoint($savepoint)
Parameter Summary
rollbackSavePoint($savepoint)
Parameter Summary
setIsolation($isolation)
Parameter Summary
$isolation standard isolation level READ UNCOMMITTED (allows dirty reads) READ
COMMITTED (prevents dirty reads) REPEATABLE READ (prevents
nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
releaseSavePoint($savepoint)
Parameter Summary
Doctrine_Transaction_Sqlite
Method Summary
Returns Name Description
setIsolation
Method Details
setIsolation($isolation)
Parameter Summary
$isolation standard isolation level READ UNCOMMITTED (allows dirty reads) READ
COMMITTED (prevents dirty reads) REPEATABLE READ (prevents
nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
Doctrine_Tree
Method Summary
Returns Name Description
setTableDefinition
getBaseComponent
__construct
getAttribute
object factory
setUp
setAttribute
Method Details
setTableDefinition()
Parameter Summary
Used to define table attributes required for the given implementation
<strong>throws</strong> Doctrine_Tree_Exception if table attributes have not been defined
getBaseComponent()
Parameter Summary
Returns the base tree component.
Parameter Summary
getAttribute($name)
Parameter Summary
gets tree attribute value
Parameter Summary
setUp()
Parameter Summary
this method is used for setting up relations and attributes and should be used by
specific implementations
setAttribute($name, $value)
Parameter Summary
sets tree attribute value
Doctrine_Tree_Interface
Method Summary
Returns Name Description
createRoot
object findRoot
iterator fetchBranch
object fetchTree
Method Details
createRoot(( ) $record = null)
Parameter Summary
(object) findRoot($root_id = 1)
Parameter Summary
returns root node
<strong>returns</strong> instance of Doctrine_Record
Parameter Summary
$pk primary key as used by table::find() to locate node to traverse tree from
$options options
$fetchmode One of the Doctrine::HYDRATE_* constants.
optimised method that returns iterator for traversal of the tree from the given
record primary key
<strong>returns</strong> instance of
Doctrine_Node_<Implementation>_PreOrderIterator
Parameter Summary
$options options
$fetchmode One of the Doctrine::HYDRATE_* constants.
optimised method to returns iterator for traversal of the entire tree from root
<strong>returns</strong> instance of
Doctrine_Node_<Implementation>_PreOrderIterator
Doctrine_Tree_NestedSet
Method Summary
Returns Name Description
setTableDefinition adds lft and rgt columns for corresponding left and right
values
returnQueryWithRootId
mixed fetchRoots
setBaseQuery
__construct
createRoot Note: When using a tree with multiple root nodes
(hasManyRoots), you MUST pass in a record to use as
the root. This can either be a new/transient record that
already has the root id column set to some numeric value
OR a persistent record. In the latter
integer getMaxRootId
unknown getBaseQuery
object findRoot
mixed fetchBranch
getBaseAlias
mixed fetchTree
resetBaseQuery
fetchRoot
integer getNextRootId
Method Details
setTableDefinition()
Parameter Summary
used to define table attributes required for the NestetSet implementation
adds lft and rgt columns for corresponding left and right values
Parameter Summary
$query Doctrine_Query
$root_id id of destination root
(mixed) fetchRoots()
Parameter Summary
Fetches all root nodes. If the tree has only one root this is the same as fetchRoot().
<strong>returns</strong> The root nodes.
setBaseQuery(( ) $query)
Parameter Summary
Enter description here...
Parameter Summary
constructor, creates tree with reference to table and sets default root options
Parameter Summary
(integer) getMaxRootId()
Parameter Summary
calculates the current max root id
(unknown) getBaseQuery($options)
Parameter Summary
Enter description here...
(object) findRoot($rootId = 1)
Parameter Summary
returns root node
<strong>returns</strong> instance of Doctrine_Record
Parameter Summary
$pk primary key as used by table::find() to locate node to traverse tree from
$options Options.
$fetchmode One of the Doctrine::HYDRATE_* constants.
getBaseAlias()
Parameter Summary
Enter description here...
Parameter Summary
$options Options
$fetchmode One of the Doctrine::HYDRATE_* constants.
Fetches a tree.
<strong>returns</strong> The tree or FALSE if the tree could not be found.
resetBaseQuery()
Parameter Summary
Enter description here...
fetchRoot($rootId = 1)
Parameter Summary
Fetches a/the root node.
(integer) getNextRootId()
Parameter Summary
calculates the next available root id
Doctrine_Validator
Method Summary
Returns Name Description
boolean isValidType
boolean validateLength
integer getStringLength
validateRecord
boolean hasErrors
Doctrine_Validator_Interface getValidator
Method Details
(boolean) isValidType($var, $type)
Parameter Summary
Parameter Summary
(integer) getStringLength($string)
Parameter Summary
Get length of passed string. Will use multibyte character functions if they exist
validateRecord(( ) $record)
Parameter Summary
Validates a given record and saves possible errors in Doctrine_Validator::$stack
(boolean) hasErrors()
Parameter Summary
Whether or not errors exist on this validator
<strong>returns</strong> True/false for whether or not this validate instance has error
(Doctrine_Validator_Interface) getValidator($name)
Parameter Summary
Doctrine_Validator_Country
Method Summary
Returns Name Description
boolean validate
array getCountries
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is a valid country code
(array) getCountries()
Parameter Summary
returns all available country codes
Doctrine_Validator_Creditcard
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is a valid credit card number
Doctrine_Validator_Date
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is a valid date
Doctrine_Validator_Driver
Method Summary
Returns Name Description
__isset
__get
array getArgs
mixed getArg
setArg
__set
Method Details
__isset($arg)
Parameter Summary
__get($arg)
Parameter Summary
__get an alias for getOption
(array) getArgs()
Parameter Summary
Parameter Summary
Parameter Summary
Parameter Summary
Doctrine_Validator_Email
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is a valid email address
Doctrine_Validator_ErrorStack
Method Summary
Returns Name Description
add
clear
boolean contains
mixed get
__construct
integer count
string getClassname
unknown getIterator
set
array getValidators
remove
toArray
Method Details
add($invalidFieldName, $errorCode = 'general', $errorType)
Parameter Summary
clear()
Parameter Summary
Removes all errors from the stack.
(boolean) contains($fieldName)
Parameter Summary
Check if a field has an error
(mixed) get($fieldName)
Parameter Summary
Get errors for field
__construct($className)
Parameter Summary
Constructor
(integer) count()
Parameter Summary
Count the number of errors
(string) getClassname()
Parameter Summary
Get the classname where the errors occured
(unknown) getIterator()
Parameter Summary
Enter description here...
set($fieldName, $errorCode)
Parameter Summary
Alias for add()
(array) getValidators()
Parameter Summary
Get array of failed validators
remove($fieldName)
Parameter Summary
Removes all existing errors for the specified field from the stack.
toArray()
Parameter Summary
Doctrine_Validator_Exception
Method Summary
Returns Name Description
inspect
string __toString
__construct
count
getInvalidRecords
getIterator
Method Details
inspect($function)
Parameter Summary
$function Either string with function name or array with object, functionname. See
call_user_func in php manual for more inforamtion
This method will apply the value of the $function variable as a user_func to tall
errorstack objects in the exception
(string) __toString()
Parameter Summary
Parameter Summary
count()
Parameter Summary
getInvalidRecords()
Parameter Summary
getIterator()
Parameter Summary
Doctrine_Validator_Future
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
Doctrine_Validator_HtmlColor
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is a valid html color code
Doctrine_Validator_Ip
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is valid ip address
Doctrine_Validator_Minlength
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is more length than the minimum length required
Doctrine_Validator_Nospace
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks that value doesn't contain any space chars
Doctrine_Validator_Notblank
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks that value isn't blank a value is blank when its either null or contains only
space characters
Doctrine_Validator_Notnull
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks that given value isn't null
Doctrine_Validator_Past
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if the given value is a valid date in the past.
Doctrine_Validator_Range
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if value is within given range
Doctrine_Validator_Readonly
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if value has been modified
Doctrine_Validator_Regexp
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value, $args)
Parameter Summary
checks if given value satisfies a regular expression
Doctrine_Validator_Time
Method Summary
Returns Name Description
boolean validate checks if given value is a valid time
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is a valid time
Doctrine_Validator_Timestamp
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is a valid timestamp (YYYY-MM-DD HH:MM:SS)
Doctrine_Validator_Unique
Method Summary
Returns Name Description
boolean validate
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is unique
Doctrine_Validator_Unsigned
Method Summary
Returns Name Description
boolean validate valid values: null, '', 5, '5', 5.9, '5.9' invalid values: -5, '-5', 'five', -5.9,
'-5.9', '5.5.5'
Method Details
(boolean) validate($value)
Parameter Summary
checks if given value is a valid unsigned integer or float
valid values: null, '', 5, '5', 5.9, '5.9' invalid values: -5,
'-5', 'five', -5.9, '-5.9', '5.5.5'
Doctrine_Validator_Usstate
Method Summary
Returns Name Description
boolean validate
getStates
Method Details
(boolean) validate($value, $args)
Parameter Summary
checks if given value is a valid US state code
getStates()
Parameter Summary
Doctrine_View
Method Summary
Returns Name Description
string getViewSql
string getName
drop
getQuery
__construct
string getViewDql
execute
getConnection
string getSelectSql
create
Method Details
(string) getViewSql()
Parameter Summary
Get the view sql string
(string) getName()
Parameter Summary
returns the name of this view
drop()
Parameter Summary
drops this view from the database
<strong>throws</strong> Doctrine_View_Exception
getQuery()
Parameter Summary
returns the associated query object
Parameter Summary
constructor
(string) getViewDql()
Parameter Summary
Get the view dql string
execute()
Parameter Summary
returns a collection of Doctrine_Record objects
getConnection()
Parameter Summary
returns the connection object
(string) getSelectSql()
Parameter Summary
returns the select sql for this view
create()
Parameter Summary
creates this view
<strong>throws</strong> Doctrine_View_Exception