@@ -515,7 +515,7 @@ |
||
| 515 | 515 | /** |
| 516 | 516 | * Returns the tables used in the filter in an array. |
| 517 | 517 | * |
| 518 | - * @return array<string> |
|
| 518 | + * @return integer[] |
|
| 519 | 519 | */ |
| 520 | 520 | public function getUsedTables() { |
| 521 | 521 | return array_keys($this->dbRows); |
@@ -138,9 +138,7 @@ discard block |
||
| 138 | 138 | * @Action |
| 139 | 139 | * @param string $daonamespace |
| 140 | 140 | * @param string $beannamespace |
| 141 | - * @param int $keepSupport |
|
| 142 | 141 | * @param int $storeInUtc |
| 143 | - * @param int $castDatesToDateTime |
|
| 144 | 142 | * @param string $selfedit |
| 145 | 143 | * @throws \Mouf\MoufException |
| 146 | 144 | */ |
@@ -168,6 +166,9 @@ discard block |
||
| 168 | 166 | |
| 169 | 167 | protected $errorMsg; |
| 170 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $msg |
|
| 171 | + */ |
|
| 171 | 172 | private function displayErrorMsg($msg) { |
| 172 | 173 | $this->errorMsg = $msg; |
| 173 | 174 | $this->content->addFile(dirname(__FILE__)."/../../../../views/installError.php", $this); |
@@ -328,7 +328,7 @@ |
||
| 328 | 328 | /** |
| 329 | 329 | * Returns the tables used in the filter in an array. |
| 330 | 330 | * |
| 331 | - * @return array<string> |
|
| 331 | + * @return string[] |
|
| 332 | 332 | */ |
| 333 | 333 | public function getUsedTables() { |
| 334 | 334 | return array($this->dbTableName); |
@@ -63,6 +63,9 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | private $innerResultIterator; |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param integer $offset |
|
| 68 | + */ |
|
| 66 | 69 | public function __construct(ResultIterator $parentResult, $magicSql, array $parameters, $limit, $offset, array $columnDescriptors, $objectStorage, $className, TDBMService $tdbmService, MagicQuery $magicQuery, $mode) |
| 67 | 70 | { |
| 68 | 71 | $this->parentResult = $parentResult; |
@@ -108,7 +111,7 @@ discard block |
||
| 108 | 111 | } |
| 109 | 112 | |
| 110 | 113 | /** |
| 111 | - * @return int |
|
| 114 | + * @return double |
|
| 112 | 115 | */ |
| 113 | 116 | public function getCurrentPage() |
| 114 | 117 | { |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | along with this program; if not, write to the Free Software |
| 19 | 19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | -use Doctrine\DBAL\Driver\Connection; |
|
| 22 | 21 | |
| 23 | 22 | |
| 24 | 23 | /** |
@@ -35,6 +35,9 @@ discard block |
||
| 35 | 35 | class TDBMObject extends AbstractTDBMObject implements \ArrayAccess, \Iterator |
| 36 | 36 | { |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $var |
|
| 40 | + */ |
|
| 38 | 41 | public function __get($var) |
| 39 | 42 | { |
| 40 | 43 | return $this->get($var); |
@@ -51,6 +54,10 @@ discard block |
||
| 51 | 54 | return $this->has($var); |
| 52 | 55 | } |
| 53 | 56 | |
| 57 | + /** |
|
| 58 | + * @param string $var |
|
| 59 | + * @param string|null $value |
|
| 60 | + */ |
|
| 54 | 61 | public function __set($var, $value) |
| 55 | 62 | { |
| 56 | 63 | $this->set($var, $value); |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | along with this program; if not, write to the Free Software |
| 19 | 19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | -use Doctrine\DBAL\Driver\Connection; |
|
| 22 | 21 | |
| 23 | 22 | |
| 24 | 23 | /** |
@@ -27,8 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Returns the foreignkey the column is part of, if any. null otherwise. |
| 29 | 29 | * |
| 30 | - * @param Column $column |
|
| 31 | - * @return ForeignKeyConstraint|null |
|
| 30 | + * @return boolean |
|
| 32 | 31 | */ |
| 33 | 32 | public function getForeignKey() { |
| 34 | 33 | return false; |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | namespace Mouf\Database\TDBM\Utils; |
| 3 | 3 | |
| 4 | 4 | use Doctrine\DBAL\Driver\Connection; |
| 5 | -use Doctrine\DBAL\Schema\Column; |
|
| 6 | -use Doctrine\DBAL\Schema\ForeignKeyConstraint; |
|
| 7 | 5 | use Doctrine\DBAL\Schema\Schema; |
| 8 | 6 | use Doctrine\DBAL\Schema\Table; |
| 9 | 7 | use Doctrine\DBAL\Types\Type; |
@@ -47,7 +47,6 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * Constructor. |
| 49 | 49 | * |
| 50 | - * @param Connection $dbConnection The connection to the database. |
|
| 51 | 50 | */ |
| 52 | 51 | public function __construct(SchemaAnalyzer $schemaAnalyzer, Schema $schema, TDBMSchemaAnalyzer $tdbmSchemaAnalyzer) { |
| 53 | 52 | $this->schemaAnalyzer = $schemaAnalyzer; |
@@ -100,6 +99,9 @@ discard block |
||
| 100 | 99 | * Generates in one method call the daos and the beans for one table. |
| 101 | 100 | * |
| 102 | 101 | * @param $tableName |
| 102 | + * @param string $daonamespace |
|
| 103 | + * @param string $beannamespace |
|
| 104 | + * @param boolean $storeInUtc |
|
| 103 | 105 | */ |
| 104 | 106 | public function generateDaoAndBean(Table $table, $daonamespace, $beannamespace, ClassNameMapper $classNameMapper, $storeInUtc) { |
| 105 | 107 | $tableName = $table->getName(); |
@@ -135,7 +137,7 @@ discard block |
||
| 135 | 137 | /** |
| 136 | 138 | * Returns the name of the base bean class from the table name. |
| 137 | 139 | * |
| 138 | - * @param $tableName |
|
| 140 | + * @param string $tableName |
|
| 139 | 141 | * @return string |
| 140 | 142 | */ |
| 141 | 143 | public static function getBaseBeanNameFromTableName($tableName) { |
@@ -145,7 +147,7 @@ discard block |
||
| 145 | 147 | /** |
| 146 | 148 | * Returns the name of the base DAO class from the table name. |
| 147 | 149 | * |
| 148 | - * @param $tableName |
|
| 150 | + * @param string $tableName |
|
| 149 | 151 | * @return string |
| 150 | 152 | */ |
| 151 | 153 | public static function getBaseDaoNameFromTableName($tableName) { |
@@ -215,9 +217,10 @@ discard block |
||
| 215 | 217 | /** |
| 216 | 218 | * Writes the PHP bean DAO with simple functions to create/get/save objects. |
| 217 | 219 | * |
| 218 | - * @param string $fileName The file that will be written (without the directory) |
|
| 219 | 220 | * @param string $className The name of the class |
| 220 | - * @param string $tableName The name of the table |
|
| 221 | + * @param string $table The name of the table |
|
| 222 | + * @param string $baseClassName |
|
| 223 | + * @param string $beanClassName |
|
| 221 | 224 | */ |
| 222 | 225 | public function generateDao($className, $baseClassName, $beanClassName, Table $table, $daonamespace, $beannamespace, ClassNameMapper $classNameMapper) { |
| 223 | 226 | $tableName = $table->getName(); |
@@ -461,6 +464,8 @@ discard block |
||
| 461 | 464 | * Generates the factory bean. |
| 462 | 465 | * |
| 463 | 466 | * @param Table[] $tableList |
| 467 | + * @param string $daoFactoryClassName |
|
| 468 | + * @param string $daoNamespace |
|
| 464 | 469 | */ |
| 465 | 470 | private function generateFactory(array $tableList, $daoFactoryClassName, $daoNamespace, ClassNameMapper $classNameMapper) { |
| 466 | 471 | // For each table, let's write a property. |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | along with this program; if not, write to the Free Software |
| 19 | 19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | -use Doctrine\DBAL\Driver\Connection; |
|
| 22 | 21 | |
| 23 | 22 | |
| 24 | 23 | /** |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | along with this program; if not, write to the Free Software |
| 19 | 19 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | 20 | */ |
| 21 | -use Doctrine\DBAL\Driver\Connection; |
|
| 22 | 21 | |
| 23 | 22 | |
| 24 | 23 | /** |
@@ -70,6 +70,13 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | private $mode; |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $magicSql |
|
| 75 | + * @param string $magicSqlCount |
|
| 76 | + * @param WeakrefObjectStorage $objectStorage |
|
| 77 | + * @param string|null $className |
|
| 78 | + * @param integer $mode |
|
| 79 | + */ |
|
| 73 | 80 | public function __construct($magicSql, $magicSqlCount, array $parameters, array $columnDescriptors, $objectStorage, $className, TDBMService $tdbmService, MagicQuery $magicQuery, $mode) |
| 74 | 81 | { |
| 75 | 82 | $this->magicSql = $magicSql; |
@@ -166,6 +173,7 @@ discard block |
||
| 166 | 173 | |
| 167 | 174 | /** |
| 168 | 175 | * @param int $offset |
| 176 | + * @param integer $limit |
|
| 169 | 177 | * @return PageIterator |
| 170 | 178 | */ |
| 171 | 179 | public function take($offset, $limit) |