| @@ 1603-1613 (lines=11) @@ | ||
| 1600 | } |
|
| 1601 | ||
| 1602 | // relation type |
|
| 1603 | if (isset($relationType)) { |
|
| 1604 | $query->where( |
|
| 1605 | $query->expr->gt( |
|
| 1606 | $query->expr->bitAnd( |
|
| 1607 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1608 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1609 | ), |
|
| 1610 | 0 |
|
| 1611 | ) |
|
| 1612 | ); |
|
| 1613 | } |
|
| 1614 | ||
| 1615 | $statement = $query->prepare(); |
|
| 1616 | $statement->execute(); |
|
| @@ 1660-1670 (lines=11) @@ | ||
| 1657 | ); |
|
| 1658 | ||
| 1659 | // relation type |
|
| 1660 | if (isset($relationType)) { |
|
| 1661 | $query->where( |
|
| 1662 | $query->expr->gt( |
|
| 1663 | $query->expr->bitAnd( |
|
| 1664 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1665 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1666 | ), |
|
| 1667 | 0 |
|
| 1668 | ) |
|
| 1669 | ); |
|
| 1670 | } |
|
| 1671 | ||
| 1672 | $statement = $query->prepare(); |
|
| 1673 | ||
| @@ 128-138 (lines=11) @@ | ||
| 125 | ) |
|
| 126 | ); |
|
| 127 | ||
| 128 | if ($languageId !== false) { |
|
| 129 | $query->where( |
|
| 130 | $query->expr->gt( |
|
| 131 | $query->expr->bitAnd( |
|
| 132 | $this->dbHandler->quoteColumn('lang_mask'), |
|
| 133 | $query->bindValue($languageId, null, \PDO::PARAM_INT) |
|
| 134 | ), |
|
| 135 | 0 |
|
| 136 | ) |
|
| 137 | ); |
|
| 138 | } |
|
| 139 | ||
| 140 | $statement = $query->prepare(); |
|
| 141 | $statement->execute(); |
|
| @@ 192-206 (lines=15) @@ | ||
| 189 | $limit, |
|
| 190 | $offset |
|
| 191 | ); |
|
| 192 | if (isset($languageCode)) { |
|
| 193 | $query->where( |
|
| 194 | $query->expr->gt( |
|
| 195 | $query->expr->bitAnd( |
|
| 196 | $this->dbHandler->quoteColumn('lang_mask'), |
|
| 197 | $query->bindValue( |
|
| 198 | $this->languageMaskGenerator->generateLanguageIndicator($languageCode, false), |
|
| 199 | null, |
|
| 200 | \PDO::PARAM_INT |
|
| 201 | ) |
|
| 202 | ), |
|
| 203 | 0 |
|
| 204 | ) |
|
| 205 | ); |
|
| 206 | } |
|
| 207 | $statement = $query->prepare(); |
|
| 208 | $statement->execute(); |
|
| 209 | ||