| @@ 140-150 (lines=11) @@ | ||
| 137 | ) |
|
| 138 | ); |
|
| 139 | ||
| 140 | if ($languageId !== false) { |
|
| 141 | $query->where( |
|
| 142 | $query->expr->gt( |
|
| 143 | $query->expr->bitAnd( |
|
| 144 | $this->dbHandler->quoteColumn('lang_mask'), |
|
| 145 | $query->bindValue($languageId, null, \PDO::PARAM_INT) |
|
| 146 | ), |
|
| 147 | 0 |
|
| 148 | ) |
|
| 149 | ); |
|
| 150 | } |
|
| 151 | ||
| 152 | $statement = $query->prepare(); |
|
| 153 | $statement->execute(); |
|
| @@ 204-218 (lines=15) @@ | ||
| 201 | $limit, |
|
| 202 | $offset |
|
| 203 | ); |
|
| 204 | if (isset($languageCode)) { |
|
| 205 | $query->where( |
|
| 206 | $query->expr->gt( |
|
| 207 | $query->expr->bitAnd( |
|
| 208 | $this->dbHandler->quoteColumn('lang_mask'), |
|
| 209 | $query->bindValue( |
|
| 210 | $this->languageMaskGenerator->generateLanguageIndicator($languageCode, false), |
|
| 211 | null, |
|
| 212 | \PDO::PARAM_INT |
|
| 213 | ) |
|
| 214 | ), |
|
| 215 | 0 |
|
| 216 | ) |
|
| 217 | ); |
|
| 218 | } |
|
| 219 | $statement = $query->prepare(); |
|
| 220 | $statement->execute(); |
|
| 221 | ||
| @@ 1685-1695 (lines=11) @@ | ||
| 1682 | } |
|
| 1683 | ||
| 1684 | // relation type |
|
| 1685 | if (isset($relationType)) { |
|
| 1686 | $query->where( |
|
| 1687 | $query->expr->gt( |
|
| 1688 | $query->expr->bitAnd( |
|
| 1689 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1690 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1691 | ), |
|
| 1692 | 0 |
|
| 1693 | ) |
|
| 1694 | ); |
|
| 1695 | } |
|
| 1696 | ||
| 1697 | $statement = $query->prepare(); |
|
| 1698 | $statement->execute(); |
|
| @@ 1742-1752 (lines=11) @@ | ||
| 1739 | ); |
|
| 1740 | ||
| 1741 | // relation type |
|
| 1742 | if (isset($relationType)) { |
|
| 1743 | $query->where( |
|
| 1744 | $query->expr->gt( |
|
| 1745 | $query->expr->bitAnd( |
|
| 1746 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1747 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1748 | ), |
|
| 1749 | 0 |
|
| 1750 | ) |
|
| 1751 | ); |
|
| 1752 | } |
|
| 1753 | ||
| 1754 | $statement = $query->prepare(); |
|
| 1755 | ||