Runner
Runs the same maintenance processors used by cron and the CLI.
Namespace: WebberZone\AutoClose\Maintenance
Since: 3.2.0
Source: includes/maintenance/class-runner.php line 22
Methods
__construct()
Constructor.
Since: 3.2.0
Line: 48
public function __construct( $comments = ..., $revisions = ... );
| Type | Name | Description |
|---|---|---|
Comments|null |
$comments |
Comments processor. |
Revisions|null |
$revisions |
Revisions processor. |
run()
Run maintenance or return a read-only preview.
Since: 3.2.0
Line: 62
public function run( bool $dry_run = ..., int $sample_limit = ... ): array;
| Type | Name | Description |
|---|---|---|
bool |
$dry_run |
Whether to preview without writes. |
int |
$sample_limit |
Maximum sample rows per operation. |
Returns: array — Run or preview summary.
preview()
Return a read-only preview using the processors’ eligibility queries.
Since: 3.2.0
Line: 98
public function preview( int $sample_limit = ... ): array;
| Type | Name | Description |
|---|---|---|
int |
$sample_limit |
Maximum sample rows per operation. |
Returns: array — Preview summary.
deletes_data()
Whether the configured run can delete data.
Since: 3.2.0
Line: 123
public function deletes_data( ): bool;
Returns: bool — Whether revision deletion is enabled.