Модули c namespace

This commit is contained in:
CORP\phedor 2018-03-27 17:31:49 +03:00
parent 0f4b2fb722
commit e9f7c23990
11 changed files with 92 additions and 80 deletions

View file

@ -1,13 +1,16 @@
<?php
class Database_PDOStatement extends PDOStatement implements IteratorAggregate
namespace ctiso\Database\PDOStatement;
use ctiso\Database\StatementIterator;
class PDOStatement extends \PDOStatement implements \IteratorAggregate
{
protected $cursorPos = 0;
public $cache = array();
public $fields;
function getIterator() {
return new Database_StatementIterator($this);
return new StatementIterator($this);
}
protected function __construct() {