@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Mouf\Database\TDBM\Filters; |
| 3 | 3 | |
| 4 | -use Mouf\Database\DBConnection\ConnectionInterface; |
|
| 5 | - |
|
| 6 | 4 | /* |
| 7 | 5 | Copyright (C) 2006-2011 David Négrier - THE CODING MACHINE |
| 8 | 6 | |
@@ -4,9 +4,7 @@ |
||
| 4 | 4 | * |
| 5 | 5 | */ |
| 6 | 6 | use Mouf\MoufManager; |
| 7 | - |
|
| 8 | 7 | use Mouf\Database\TDBM\Utils\TDBMDaoGenerator; |
| 9 | - |
|
| 10 | 8 | use Mouf\MoufUtils; |
| 11 | 9 | |
| 12 | 10 | ini_set("display_errors", 1); |
@@ -2,11 +2,8 @@ |
||
| 2 | 2 | namespace Mouf\Database\TDBM\Controllers; |
| 3 | 3 | |
| 4 | 4 | use Mouf\MoufUtils; |
| 5 | - |
|
| 6 | 5 | use Mouf\Actions\InstallUtils; |
| 7 | - |
|
| 8 | 6 | use Mouf\MoufManager; |
| 9 | - |
|
| 10 | 7 | use Mouf\Html\HtmlElement\HtmlBlock; |
| 11 | 8 | use Mouf\Mvc\Splash\Controllers\Controller; |
| 12 | 9 | |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace Mouf\Database\TDBM\Filters; |
| 3 | 3 | |
| 4 | 4 | use Mouf\Database\TDBM\TDBMException; |
| 5 | - |
|
| 6 | 5 | use Mouf\Database\DBConnection\ConnectionInterface; |
| 7 | 6 | |
| 8 | 7 | |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace Mouf\Database\TDBM\Filters; |
| 3 | 3 | |
| 4 | 4 | use Mouf\Database\TDBM\TDBMException; |
| 5 | - |
|
| 6 | 5 | use Mouf\Database\DBConnection\ConnectionInterface; |
| 7 | 6 | |
| 8 | 7 | /* |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Mouf\Database\TDBM\Filters; |
| 3 | 3 | |
| 4 | -use Mouf\Database\DBConnection\ConnectionInterface; |
|
| 5 | - |
|
| 6 | 4 | /* |
| 7 | 5 | Copyright (C) 2006-2011 David Négrier - THE CODING MACHINE |
| 8 | 6 | |
@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | // Ok, let's return the list of all tables. |
| 115 | 115 | // These will be used by the calling script to create Mouf instances. |
| 116 | 116 | $root = simplexml_load_string("<tdbm></tdbm>"); |
| 117 | - foreach ($tableList as $table) { |
|
| 118 | - $root->addChild("table", $table); |
|
| 119 | - } |
|
| 117 | + foreach ($tableList as $table) { |
|
| 118 | + $root->addChild("table", $table); |
|
| 119 | + } |
|
| 120 | 120 | |
| 121 | 121 | return $root; |
| 122 | 122 | } |
@@ -132,10 +132,10 @@ discard block |
||
| 132 | 132 | $beanName = $this->getBeanNameFromTableName($tableName); |
| 133 | 133 | $baseBeanName = $this->getBaseBeanNameFromTableName($tableName); |
| 134 | 134 | |
| 135 | - $connection = $this->dbConnection; |
|
| 136 | - if ($connection instanceof CachedConnection){ |
|
| 137 | - $connection->cacheService->purgeAll(); |
|
| 138 | - } |
|
| 135 | + $connection = $this->dbConnection; |
|
| 136 | + if ($connection instanceof CachedConnection){ |
|
| 137 | + $connection->cacheService->purgeAll(); |
|
| 138 | + } |
|
| 139 | 139 | |
| 140 | 140 | $this->generateBean($beanName.".php", $beanName, $baseBeanName.".php", $baseBeanName, $tableName); |
| 141 | 141 | $this->generateDao($daoName.".php", $daoName."Base.php", $beanName.".php", $daoName, $daoName."Base", $beanName, $tableName); |
@@ -563,46 +563,46 @@ |
||
| 563 | 563 | } |
| 564 | 564 | |
| 565 | 565 | /** |
| 566 | - * Implements array behaviour for our object. |
|
| 567 | - * |
|
| 568 | - * @param string $offset |
|
| 569 | - * @param string $value |
|
| 570 | - */ |
|
| 566 | + * Implements array behaviour for our object. |
|
| 567 | + * |
|
| 568 | + * @param string $offset |
|
| 569 | + * @param string $value |
|
| 570 | + */ |
|
| 571 | 571 | public function offsetSet($offset, $value) { |
| 572 | 572 | $this->__set($offset, $value); |
| 573 | - } |
|
| 573 | + } |
|
| 574 | 574 | /** |
| 575 | 575 | * Implements array behaviour for our object. |
| 576 | 576 | * |
| 577 | 577 | * @param string $offset |
| 578 | 578 | */ |
| 579 | - public function offsetExists($offset) { |
|
| 580 | - $this->_dbLoadIfNotLoaded(); |
|
| 581 | - return isset($this->db_row[$offset]); |
|
| 582 | - } |
|
| 579 | + public function offsetExists($offset) { |
|
| 580 | + $this->_dbLoadIfNotLoaded(); |
|
| 581 | + return isset($this->db_row[$offset]); |
|
| 582 | + } |
|
| 583 | 583 | /** |
| 584 | 584 | * Implements array behaviour for our object. |
| 585 | 585 | * |
| 586 | 586 | * @param string $offset |
| 587 | 587 | */ |
| 588 | - public function offsetUnset($offset) { |
|
| 588 | + public function offsetUnset($offset) { |
|
| 589 | 589 | $this->__set($offset, null); |
| 590 | - } |
|
| 590 | + } |
|
| 591 | 591 | /** |
| 592 | 592 | * Implements array behaviour for our object. |
| 593 | 593 | * |
| 594 | 594 | * @param string $offset |
| 595 | 595 | */ |
| 596 | - public function offsetGet($offset) { |
|
| 597 | - return $this->__get($offset); |
|
| 598 | - } |
|
| 596 | + public function offsetGet($offset) { |
|
| 597 | + return $this->__get($offset); |
|
| 598 | + } |
|
| 599 | 599 | |
| 600 | 600 | private $_validIterator = false; |
| 601 | 601 | /** |
| 602 | 602 | * Implements iterator behaviour for our object (so we can each column). |
| 603 | 603 | */ |
| 604 | 604 | public function rewind() { |
| 605 | - $this->_dbLoadIfNotLoaded(); |
|
| 605 | + $this->_dbLoadIfNotLoaded(); |
|
| 606 | 606 | if (count($this->db_row)>0) { |
| 607 | 607 | $this->_validIterator = true; |
| 608 | 608 | } else { |