|
@@ 334-344 (lines=11) @@
|
| 331 |
|
// For "real" workspace numbers, select by that. |
| 332 |
|
// If = -98, select all that are NOT online (zero). |
| 333 |
|
// Anything else below -1 will not select on the wsid and therefore select all! |
| 334 |
|
if ($wsid > self::SELECT_ALL_WORKSPACES) { |
| 335 |
|
$constraints[] = $queryBuilder->expr()->eq( |
| 336 |
|
'A.t3ver_wsid', |
| 337 |
|
$queryBuilder->createNamedParameter($wsid, \PDO::PARAM_INT) |
| 338 |
|
); |
| 339 |
|
} elseif ($wsid === self::SELECT_ALL_WORKSPACES) { |
| 340 |
|
$constraints[] = $queryBuilder->expr()->neq( |
| 341 |
|
'A.t3ver_wsid', |
| 342 |
|
$queryBuilder->createNamedParameter(0, \PDO::PARAM_INT) |
| 343 |
|
); |
| 344 |
|
} |
| 345 |
|
|
| 346 |
|
// lifecycle filter: |
| 347 |
|
// 1 = select all drafts (never-published), |
|
@@ 453-462 (lines=10) @@
|
| 450 |
|
'C.t3ver_wsid', |
| 451 |
|
$queryBuilder->createNamedParameter($wsid, \PDO::PARAM_INT) |
| 452 |
|
); |
| 453 |
|
} elseif ($wsid === self::SELECT_ALL_WORKSPACES) { |
| 454 |
|
$constraints[] = $queryBuilder->expr()->neq( |
| 455 |
|
'A.t3ver_wsid', |
| 456 |
|
$queryBuilder->createNamedParameter(0, \PDO::PARAM_INT) |
| 457 |
|
); |
| 458 |
|
$constraints[] = $queryBuilder->expr()->neq( |
| 459 |
|
'C.t3ver_wsid', |
| 460 |
|
$queryBuilder->createNamedParameter(0, \PDO::PARAM_INT) |
| 461 |
|
); |
| 462 |
|
} |
| 463 |
|
|
| 464 |
|
// lifecycle filter: |
| 465 |
|
// 1 = select all drafts (never-published), |