| @@ 139-149 (lines=11) @@ | ||
| 136 | ) |
|
| 137 | ); |
|
| 138 | ||
| 139 | if ($languageId !== false) { |
|
| 140 | $query->where( |
|
| 141 | $query->expr->gt( |
|
| 142 | $query->expr->bitAnd( |
|
| 143 | $this->dbHandler->quoteColumn('lang_mask'), |
|
| 144 | $query->bindValue($languageId, null, \PDO::PARAM_INT) |
|
| 145 | ), |
|
| 146 | 0 |
|
| 147 | ) |
|
| 148 | ); |
|
| 149 | } |
|
| 150 | ||
| 151 | $statement = $query->prepare(); |
|
| 152 | $statement->execute(); |
|
| @@ 203-217 (lines=15) @@ | ||
| 200 | $limit, |
|
| 201 | $offset |
|
| 202 | ); |
|
| 203 | if (isset($languageCode)) { |
|
| 204 | $query->where( |
|
| 205 | $query->expr->gt( |
|
| 206 | $query->expr->bitAnd( |
|
| 207 | $this->dbHandler->quoteColumn('lang_mask'), |
|
| 208 | $query->bindValue( |
|
| 209 | $this->languageMaskGenerator->generateLanguageIndicator($languageCode, false), |
|
| 210 | null, |
|
| 211 | \PDO::PARAM_INT |
|
| 212 | ) |
|
| 213 | ), |
|
| 214 | 0 |
|
| 215 | ) |
|
| 216 | ); |
|
| 217 | } |
|
| 218 | $statement = $query->prepare(); |
|
| 219 | $statement->execute(); |
|
| 220 | ||
| @@ 1715-1725 (lines=11) @@ | ||
| 1712 | } |
|
| 1713 | ||
| 1714 | // relation type |
|
| 1715 | if (isset($relationType)) { |
|
| 1716 | $query->where( |
|
| 1717 | $query->expr->gt( |
|
| 1718 | $query->expr->bitAnd( |
|
| 1719 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1720 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1721 | ), |
|
| 1722 | 0 |
|
| 1723 | ) |
|
| 1724 | ); |
|
| 1725 | } |
|
| 1726 | ||
| 1727 | $statement = $query->prepare(); |
|
| 1728 | $statement->execute(); |
|
| @@ 1772-1782 (lines=11) @@ | ||
| 1769 | ); |
|
| 1770 | ||
| 1771 | // relation type |
|
| 1772 | if (isset($relationType)) { |
|
| 1773 | $query->where( |
|
| 1774 | $query->expr->gt( |
|
| 1775 | $query->expr->bitAnd( |
|
| 1776 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1777 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1778 | ), |
|
| 1779 | 0 |
|
| 1780 | ) |
|
| 1781 | ); |
|
| 1782 | } |
|
| 1783 | ||
| 1784 | $statement = $query->prepare(); |
|
| 1785 | ||