/** * Constructor... * * @param Integer|NULL $affected The number of rows affected by this query * @param Integer|NULL $insertID The ID of the row inserted by this query * @param String $query The query that produced this result */ public function __construct($affected, $insertID, $query) { if (!\r8\isVague($insertID)) { $insertID = (int) $insertID; $this->insertID = $insertID > 0 ? $insertID : NULL; } $this->affected = max((int) $affected, 0); parent::__construct($query); }
/** * Constructor... * * @param String $query The query that produced this result * @param \r8\iface\DB\Adapter\Result $adapter The query result adapter that * provides a standard way to interface with the results */ public function __construct(\r8\iface\DB\Adapter\Result $adapter, $query) { parent::__construct($query); $this->adapter = $adapter; }