public function fetch($useMaster = false, $method = null)
{
if ($useMaster) {
$sth =& self::$msth;
} else {
$sth =& $this->sth;
}
if (!is_object($sth)) {
$this->errorCode = 'n/a';
$this->errorMsg = 'Statement handle is not an object.';
return -1;
}
if (is_null($method)) {
$method = \PDO::FETCH_ASSOC;
}
return $sth->fetch($method);
}