| @@ 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 | ||
| @@ 1925-1935 (lines=11) @@ | ||
| 1922 | } |
|
| 1923 | ||
| 1924 | // relation type |
|
| 1925 | if (isset($relationType)) { |
|
| 1926 | $query->where( |
|
| 1927 | $query->expr->gt( |
|
| 1928 | $query->expr->bitAnd( |
|
| 1929 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1930 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1931 | ), |
|
| 1932 | 0 |
|
| 1933 | ) |
|
| 1934 | ); |
|
| 1935 | } |
|
| 1936 | ||
| 1937 | $statement = $query->prepare(); |
|
| 1938 | $statement->execute(); |
|
| @@ 1982-1992 (lines=11) @@ | ||
| 1979 | ); |
|
| 1980 | ||
| 1981 | // relation type |
|
| 1982 | if (isset($relationType)) { |
|
| 1983 | $query->where( |
|
| 1984 | $query->expr->gt( |
|
| 1985 | $query->expr->bitAnd( |
|
| 1986 | $this->dbHandler->quoteColumn('relation_type', 'ezcontentobject_link'), |
|
| 1987 | $query->bindValue($relationType, null, \PDO::PARAM_INT) |
|
| 1988 | ), |
|
| 1989 | 0 |
|
| 1990 | ) |
|
| 1991 | ); |
|
| 1992 | } |
|
| 1993 | ||
| 1994 | $statement = $query->prepare(); |
|
| 1995 | ||