$settings $settings : \ManaPHP\Configuration\SettingsInterface Type \ManaPHP\Configuration\SettingsInterface
$redisCache $redisCache : \Redis|\ManaPHP\Data\RedisInterface Type \Redis|\ManaPHP\Data\RedisInterface
$redisBroker $redisBroker : \Redis|\ManaPHP\Data\RedisInterface Type \Redis|\ManaPHP\Data\RedisInterface
$coroutineManager $coroutineManager : \ManaPHP\Coroutine\ManagerInterface Type \ManaPHP\Coroutine\ManagerInterface
getInstance() getInstance(string $class, array $params = array()) : mixed Parameters string $class array $params Returns mixed
inject() inject(string $name, mixed $target) : static Parameters string $name mixed $target Returns static
attachEvent() attachEvent(string $event, callable $handler, boolean $appended = true) : static Attach a listener to the events manager Parameters string $event callable $handler boolean $appended Returns static
detachEvent() detachEvent(string $event, callable $handler) : static Parameters string $event callable $handler Returns static
peekEvent() peekEvent(string $group, callable $handler) : static Parameters string $group callable $handler Returns static
fireEvent() fireEvent(string $event, mixed $data = array(), mixed $source = null) : void Fires an event in the events manager causing that the active listeners will be notified about it Parameters string $event mixed $data mixed $source
on() on(string $event, callable $handler) : static Parameters string $event callable $handler Returns static
off() off(string $event = null, callable $handler = null) : static Parameters string $event callable $handler Returns static
execute() execute(string $type, string $sql, array $bind = array()) : integer Parameters string $type string $sql array $bind Throws \ManaPHP\Data\Db\Exception Returns integer
executeInsert() executeInsert(string $sql, array $bind = array()) : integer Parameters string $sql array $bind Returns integer
executeUpdate() executeUpdate(string $sql, array $bind = array()) : integer Parameters string $sql array $bind Returns integer
executeDelete() executeDelete(string $sql, array $bind = array()) : integer Parameters string $sql array $bind Returns integer
affectedRows() affectedRows() : integer Returns the number of affected rows by the last INSERT/UPDATE/DELETE reported by the database system Returns integer
fetchOne() fetchOne(string $sql, array $bind = array(), integer $mode = \PDO::FETCH_ASSOC, boolean $useMaster = false) : array|false Returns the first row in a SQL query result Parameters string $sql array $bind integer $mode boolean $useMaster Returns array|false
fetchAll() fetchAll(string $sql, array $bind = array(), integer $mode = \PDO::FETCH_ASSOC, boolean $useMaster = false) : array Dumps the complete result of a query into an array Parameters string $sql array $bind integer $mode boolean $useMaster Returns array
insert() insert(string $table, array $record, boolean $fetchInsertId = false) : integer|string|null Parameters string $table array $record boolean $fetchInsertId Returns integer|string|null
insertBySql() insertBySql(string $table, string $sql, array $bind = array()) : integer Parameters string $table string $sql array $bind Returns integer
update() update(string $table, array $fieldValues, string|array $conditions, array $bind = array()) : integer Updates data on a table using custom SQL syntax Parameters string $table array $fieldValues string|array $conditions array $bind Throws \ManaPHP\Data\Db\Exception Returns integer
updateBySql() updateBySql(string $table, string $sql, array $bind = array()) : integer Updates data on a table using custom SQL syntax Parameters string $table string $sql array $bind Returns integer
upsert() upsert(string $table, array $insertFieldValues, array $updateFieldValues = array(), string $primaryKey = null) : integer Updates data on a table using custom SQL syntax Parameters string $table array $insertFieldValues array $updateFieldValues string $primaryKey Returns integer
delete() delete(string $table, string|array $conditions, array $bind = array()) : integer Deletes data from a table using custom SQL syntax Parameters string $table string|array $conditions array $bind Throws \ManaPHP\Data\Db\Exception Returns integer
deleteBySql() deleteBySql(string $table, string $sql, array $bind = array()) : integer Deletes data from a table using custom SQL syntax Parameters string $table string $sql array $bind Returns integer
getEmulatedSQL() getEmulatedSQL(integer $preservedStrLength = -1) : string Active SQL statement in the object with replace the bind with value Parameters integer $preservedStrLength Returns string
isUnderTransaction() isUnderTransaction() : boolean Checks whether the connection is under a transaction Returns boolean
rollback() rollback() : void Rollbacks the active transaction in the connection Throws \ManaPHP\Data\Db\Exception
commit() commit() : void Commits the active transaction in the connection Throws \ManaPHP\Data\Db\Exception
getTables() getTables(string $schema = null) : array Parameters string $schema Throws \ManaPHP\Data\Db\Exception Returns array
getMetadata() getMetadata(string $table) : array Parameters string $table Throws \ManaPHP\Data\Db\Exception Returns array
query() query(string $table = null, string $alias = null) : \ManaPHP\Data\Db\Query Parameters string $table string $alias Returns \ManaPHP\Data\Db\Query
_parseBindValue() _parseBindValue(mixed $value, integer $preservedStrLength) : integer|string Parameters mixed $value integer $preservedStrLength Returns integer|string