APP_Report_Factory
Reports factory class
Package
Description Description
Methods Methods
- _get_reports — Helper method to retrieve reports comment types
- add_post_report — Adds a new report to a post report collection
- add_user_report — Adds a new report to a user report collection
- create_post_report — Creates and retrives an new post report object
- create_user_report — Creates a new user report object
- get_post_reports — Retrieves the reports collection for a specific post
- get_reports — Retrieve a list of reports
- get_user_reports — Retrieves the reports collection for a specific user
- make — Inserts a new comment as a report comment type and retrieves the new ID
- parse_args — Helper function to parse a list of parameteres against the base list
- retrieve — Retrieves an existing report
- set_post_report — Sets an existing WP comment as a report object and retrieves it
- set_user_report — Sets an existing WP_Comment_Query array as a report object and retrieves it