| @@ 576-586 (lines=11) @@ | ||
| 573 | * |
|
| 574 | * @return array The waiting to be processed post ids queue. |
|
| 575 | */ |
|
| 576 | public function waiting_for_analysis() { |
|
| 577 | ||
| 578 | return get_posts( array( |
|
| 579 | 'posts_per_page' => - 1, |
|
| 580 | 'fields' => 'ids', |
|
| 581 | 'post_status' => 'any', |
|
| 582 | 'meta_key' => self::STATE_META_KEY, |
|
| 583 | 'meta_value' => self::STATE_SUBMIT, |
|
| 584 | 'orderby' => 'ID', |
|
| 585 | ) ); |
|
| 586 | } |
|
| 587 | ||
| 588 | /** |
|
| 589 | * Get the array of post IDS waiting for response. |
|
| @@ 596-606 (lines=11) @@ | ||
| 593 | * |
|
| 594 | * @return array The waiting for response post ids queue. |
|
| 595 | */ |
|
| 596 | public function waiting_for_response() { |
|
| 597 | ||
| 598 | return get_posts( array( |
|
| 599 | 'posts_per_page' => - 1, |
|
| 600 | 'fields' => 'ids', |
|
| 601 | 'post_status' => 'any', |
|
| 602 | 'meta_key' => self::STATE_META_KEY, |
|
| 603 | 'meta_value' => self::STATE_REQUEST, |
|
| 604 | 'orderby' => 'ID', |
|
| 605 | ) ); |
|
| 606 | } |
|
| 607 | ||
| 608 | /** |
|
| 609 | * Request the analysis for the specified {@link WP_Post}. |
|
| @@ 698-707 (lines=10) @@ | ||
| 695 | * |
|
| 696 | * @return array An array of {@link WP_Post}s' ids. |
|
| 697 | */ |
|
| 698 | public function get_warnings() { |
|
| 699 | ||
| 700 | return get_posts( array( |
|
| 701 | 'fields' => 'ids', |
|
| 702 | 'numberposts' => - 1, |
|
| 703 | 'post_status' => 'any', |
|
| 704 | 'meta_key' => self::WARNING_META_KEY, |
|
| 705 | 'meta_value' => 'yes', |
|
| 706 | ) ); |
|
| 707 | } |
|
| 708 | ||
| 709 | } |
|
| 710 | ||