| @@ 151-161 (lines=11) @@ | ||
| 148 | ) |
|
| 149 | ); |
|
| 150 | ||
| 151 | if ($languageId !== false) { |
|
| 152 | $query->where( |
|
| 153 | $query->expr->gt( |
|
| 154 | $query->expr->bitAnd( |
|
| 155 | $this->dbHandler->quoteColumn('lang_mask'), |
|
| 156 | $query->bindValue($languageId, null, \PDO::PARAM_INT) |
|
| 157 | ), |
|
| 158 | 0 |
|
| 159 | ) |
|
| 160 | ); |
|
| 161 | } |
|
| 162 | ||
| 163 | $statement = $query->prepare(); |
|
| 164 | $statement->execute(); |
|
| @@ 215-229 (lines=15) @@ | ||
| 212 | $limit, |
|
| 213 | $offset |
|
| 214 | ); |
|
| 215 | if (isset($languageCode)) { |
|
| 216 | $query->where( |
|
| 217 | $query->expr->gt( |
|
| 218 | $query->expr->bitAnd( |
|
| 219 | $this->dbHandler->quoteColumn('lang_mask'), |
|
| 220 | $query->bindValue( |
|
| 221 | $this->languageMaskGenerator->generateLanguageIndicator($languageCode, false), |
|
| 222 | null, |
|
| 223 | \PDO::PARAM_INT |
|
| 224 | ) |
|
| 225 | ), |
|
| 226 | 0 |
|
| 227 | ) |
|
| 228 | ); |
|
| 229 | } |
|
| 230 | $statement = $query->prepare(); |
|
| 231 | $statement->execute(); |
|
| 232 | ||
| @@ 1797-1807 (lines=11) @@ | ||
| 1794 | } |
|
| 1795 | ||
| 1796 | // relation type |
|
| 1797 | if (isset($relationType)) { |
|
| 1798 | $query->where( |
|
| 1799 | $query->expr->gt( |
|
| 1800 | $query->expr->bitAnd( |
|
| 1801 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1802 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1803 | ), |
|
| 1804 | 0 |
|
| 1805 | ) |
|
| 1806 | ); |
|
| 1807 | } |
|
| 1808 | ||
| 1809 | $statement = $query->prepare(); |
|
| 1810 | $statement->execute(); |
|
| @@ 1854-1864 (lines=11) @@ | ||
| 1851 | ); |
|
| 1852 | ||
| 1853 | // relation type |
|
| 1854 | if (isset($relationType)) { |
|
| 1855 | $query->where( |
|
| 1856 | $query->expr->gt( |
|
| 1857 | $query->expr->bitAnd( |
|
| 1858 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1859 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1860 | ), |
|
| 1861 | 0 |
|
| 1862 | ) |
|
| 1863 | ); |
|
| 1864 | } |
|
| 1865 | ||
| 1866 | $statement = $query->prepare(); |
|
| 1867 | ||