Context
class Context extends Object
Database context.
Methods
__construct(Connection $connection, IStructure $structure, IConventions $conventions = NULL, IStorage $cacheStorage = NULL)
No description
void
beginTransaction()
No description
void
commit()
No description
void
rollBack()
No description
string
getInsertId($name = NULL)
No description
getConnection()
No description
getStructure()
No description
getConventions()
No description
mixed
fetchField($args)
Shortcut for query()->fetchField()
array
fetchPairs($args)
Shortcut for query()->fetchPairs()
array
fetchAll($args)
Shortcut for query()->fetchAll()
static SqlLiteral
literal($value)
No description
Details
at line 32
__construct(Connection $connection, IStructure $structure, IConventions $conventions = NULL, IStorage $cacheStorage = NULL)
No description
at line 42
void
beginTransaction()
No description
at line 49
void
commit()
No description
at line 56
void
rollBack()
No description
at line 66
string
getInsertId($name = NULL)
No description
at line 78
ResultSet
query($sql)
Generates and executes SQL query.
at line 88
ResultSet
queryArgs($sql, array $params)
No description
at line 98
Selection
table($table)
No description
at line 105
Connection
getConnection()
No description
at line 112
IStructure
getStructure()
No description
at line 119
IConventions
getConventions()
No description
at line 126
getDatabaseReflection()
deprecated
deprecated
No description
at line 142
Row
fetch($args)
Shortcut for query()->fetch()
at line 154
mixed
fetchField($args)
Shortcut for query()->fetchField()
at line 166
array
fetchPairs($args)
Shortcut for query()->fetchPairs()
at line 178
array
fetchAll($args)
Shortcut for query()->fetchAll()
at line 187
static SqlLiteral
literal($value)
No description