Heratio Framework API Reference

QubitPdo
in package

QubitPdo — Standalone PDO wrapper (Symfony-free).

Drop-in replacement for lib/QubitPdo.class.php that uses Laravel's database connection instead of Propel::getConnection().

All static methods behave identically to the original: QubitPdo::fetchAll($sql, $params) QubitPdo::fetchOne($sql, $params) QubitPdo::fetchColumn($sql, $params, $col) QubitPdo::modify($sql, $params) QubitPdo::prepare($sql) QubitPdo::prepareAndExecute($sql, $params) QubitPdo::lastInsertId()

Connection resolution order:

  1. Laravel Capsule (if booted)
  2. Propel (if available — legacy fallback)
  3. Raw PDO from config/config.php

Original: Vic Cherubini / David Juhasz (Artefactual Systems) Standalone adaptation: AHG Framework

Table of Contents

Methods

fetchAll()  : mixed
fetchColumn()  : mixed
fetchOne()  : mixed
lastInsertId()  : mixed
modify()  : mixed
prepare()  : mixed
prepareAndExecute()  : mixed
reset()  : void
Reset the cached connection (for testing or reconnection).

Methods

fetchAll()

public static fetchAll(mixed $query[, mixed $parameters = [] ][, mixed $options = [] ]) : mixed
Parameters
$query : mixed
$parameters : mixed = []
$options : mixed = []

fetchColumn()

public static fetchColumn(mixed $query[, mixed $parameters = [] ][, mixed $column = 0 ]) : mixed
Parameters
$query : mixed
$parameters : mixed = []
$column : mixed = 0

fetchOne()

public static fetchOne(mixed $query[, mixed $parameters = [] ]) : mixed
Parameters
$query : mixed
$parameters : mixed = []

lastInsertId()

public static lastInsertId() : mixed

modify()

public static modify(mixed $query[, mixed $parameters = [] ]) : mixed
Parameters
$query : mixed
$parameters : mixed = []

prepare()

public static prepare(mixed $query) : mixed
Parameters
$query : mixed

prepareAndExecute()

public static prepareAndExecute(mixed $query[, mixed $parameters = [] ]) : mixed
Parameters
$query : mixed
$parameters : mixed = []

reset()

Reset the cached connection (for testing or reconnection).

public static reset() : void

        
On this page

Search results