bigquery_job_service
Table of Contents
Properties
- $config : mixed
- $instances : mixed
Methods
- cleanup() : bool
- Cleans up files based on retention policies for hours, days, and months.
- get_instance() : bigquery_job
- get_list_jobs_data() : array<string|int, mixed>
- Retrieves a list of job data, formatted with detailed information such as timestamps and status.
- delete_file() : bool
- Cleans up files based on retention policies for hours, days, and months.
- get_file() : false|stored_file
- Retrieves a file associated with a specific context and item ID.
Properties
$config
protected
static mixed
$config
$instances
protected
static mixed
$instances
= []
Methods
cleanup()
Cleans up files based on retention policies for hours, days, and months.
public
static cleanup(int $itemid[, bool|int $now = false ][, bool|object $config = false ]) : bool
Parameters
- $itemid : int
- $now : bool|int = false
-
The current timestamp to use for retention checks. Defaults to the current time.
- $config : bool|object = false
-
Configuration object containing retention policy settings. Defaults to fetching configuration.
Tags
Return values
bool —returns true if the file was successfully deleted, false otherwise
get_instance()
public
static get_instance([int $id = 0 ]) : bigquery_job
Parameters
- $id : int = 0
Return values
bigquery_jobget_list_jobs_data()
Retrieves a list of job data, formatted with detailed information such as timestamps and status.
public
static get_list_jobs_data(int $id) : array<string|int, mixed>
Parameters
- $id : int
-
the parent identifier used to fetch the related jobs
Return values
array<string|int, mixed> —an array containing job information, including creation time, start time, end time, quantity, status, and HTML link to associated files
delete_file()
Cleans up files based on retention policies for hours, days, and months.
protected
static delete_file() : bool
Return values
bool —returns true if the file was successfully deleted, false otherwise
get_file()
Retrieves a file associated with a specific context and item ID.
protected
static get_file(context $context, int $itemid) : false|stored_file
Parameters
- $context : context
-
the context in which to search for the file
- $itemid : int
-
the item ID associated with the file
Tags
Return values
false|stored_file —the stored file if found, otherwise false