| @@ 9-23 (lines=15) @@ | ||
| 6 | ||
| 7 | class NeedsModerationNarrower extends EmbeddingQueryNarrower |
|
| 8 | { |
|
| 9 | public function __construct() |
|
| 10 | { |
|
| 11 | $parts = [ |
|
| 12 | '(%s)', |
|
| 13 | 'wfstatus:"readyforvalidation"', |
|
| 14 | 'startdate:[NOW TO *]', |
|
| 15 | ]; |
|
| 16 | ||
| 17 | $query = implode( |
|
| 18 | ' AND ', |
|
| 19 | $parts |
|
| 20 | ); |
|
| 21 | ||
| 22 | parent::__construct($query); |
|
| 23 | } |
|
| 24 | } |
|
| 25 | ||
| @@ 9-23 (lines=15) @@ | ||
| 6 | ||
| 7 | class NeedsModerationNarrower extends EmbeddingQueryNarrower |
|
| 8 | { |
|
| 9 | public function __construct() |
|
| 10 | { |
|
| 11 | $parts = [ |
|
| 12 | '(%s)', |
|
| 13 | 'workflowStatus:READY_FOR_VALIDATION', |
|
| 14 | 'availableRange:[now TO *]', |
|
| 15 | ]; |
|
| 16 | ||
| 17 | $query = implode( |
|
| 18 | ' AND ', |
|
| 19 | $parts |
|
| 20 | ); |
|
| 21 | ||
| 22 | parent::__construct($query); |
|
| 23 | } |
|
| 24 | } |
|
| 25 | ||