Commit with composer.json

This commit is contained in:
2014-05-27 17:56:46 +04:00
parent c62620593f
commit aec1a60985
20 changed files with 70 additions and 46 deletions

View File

@ -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');