| @@ 64-76 (lines=13) @@ | ||
| 61 | ||
| 62 | private $totalCount; |
|
| 63 | ||
| 64 | public function __construct($magicSql, array $parameters, $limit, $offset, array $columnDescriptors, $objectStorage, $className, TDBMService $tdbmService, MagicQuery $magicQuery) |
|
| 65 | { |
|
| 66 | $this->magicSql = $magicSql; |
|
| 67 | $this->objectStorage = $objectStorage; |
|
| 68 | $this->className = $className; |
|
| 69 | $this->tdbmService = $tdbmService; |
|
| 70 | $this->parameters = $parameters; |
|
| 71 | $this->limit = $limit; |
|
| 72 | $this->offset = $offset; |
|
| 73 | $this->columnDescriptors = $columnDescriptors; |
|
| 74 | $this->magicQuery = $magicQuery; |
|
| 75 | $this->databasePlatform = $this->tdbmService->getConnection()->getDatabasePlatform(); |
|
| 76 | } |
|
| 77 | ||
| 78 | protected function executeQuery() { |
|
| 79 | $sql = $this->magicQuery->build($this->magicSql, $this->parameters); |
|
| @@ 73-85 (lines=13) @@ | ||
| 70 | ||
| 71 | private $mode; |
|
| 72 | ||
| 73 | public function __construct($magicSql, $magicSqlCount, array $parameters, array $columnDescriptors, $objectStorage, $className, TDBMService $tdbmService, MagicQuery $magicQuery, $mode) |
|
| 74 | { |
|
| 75 | $this->magicSql = $magicSql; |
|
| 76 | $this->magicSqlCount = $magicSqlCount; |
|
| 77 | $this->objectStorage = $objectStorage; |
|
| 78 | $this->className = $className; |
|
| 79 | $this->tdbmService = $tdbmService; |
|
| 80 | $this->parameters = $parameters; |
|
| 81 | $this->columnDescriptors = $columnDescriptors; |
|
| 82 | $this->magicQuery = $magicQuery; |
|
| 83 | $this->databasePlatform = $this->tdbmService->getConnection()->getDatabasePlatform(); |
|
| 84 | $this->mode = $mode; |
|
| 85 | } |
|
| 86 | ||
| 87 | protected function executeCountQuery() { |
|
| 88 | $sql = $this->magicQuery->build($this->magicSqlCount, $this->parameters); |
|