Commit with composer.json
This commit is contained in:
@ -53,7 +53,7 @@ abstract class DbStatement
|
||||
* @param mixed $style
|
||||
* @return array
|
||||
*/
|
||||
public function fetchAll($style = Db::FETCH_OBJ)
|
||||
public function fetchAll($style = \Majestic\Db::FETCH_OBJ)
|
||||
{
|
||||
$data = array();
|
||||
while ($row = $this->fetch($style)) {
|
||||
@ -69,7 +69,7 @@ abstract class DbStatement
|
||||
public function fetchColumn($field)
|
||||
{
|
||||
$data = array();
|
||||
while ($row = $this->fetch(Db::FETCH_ASSOC)) {
|
||||
while ($row = $this->fetch(\Majestic\Db::FETCH_ASSOC)) {
|
||||
$data[] = $row[$field];
|
||||
}
|
||||
return $data;
|
||||
@ -81,7 +81,7 @@ abstract class DbStatement
|
||||
*/
|
||||
public function fetchField($field)
|
||||
{
|
||||
$row = $this->fetch(Db::FETCH_ASSOC);
|
||||
$row = $this->fetch(\Majestic\Db::FETCH_ASSOC);
|
||||
if (isset($row[$field])) {
|
||||
return $row[$field];
|
||||
}
|
||||
@ -94,7 +94,7 @@ abstract class DbStatement
|
||||
|
||||
abstract protected function assemble();
|
||||
|
||||
abstract public function fetch($style = Db::FETCH_OBJ);
|
||||
abstract public function fetch($style = \Majestic\Db::FETCH_OBJ);
|
||||
|
||||
abstract public function fetchObject($class = 'stdClass');
|
||||
|
||||
|
Reference in New Issue
Block a user