Collections functions
General functions
Render functions
Theme permission functions
Resource functions

job_queue_get_job()

Description

Get details of specified offline job

Parameters

ColumnTypeDefaultDescription
$ref
$job int identifier

Return

array

Location

include/job_functions.php lines 227 to 233

Definition

 
function job_queue_get_job($ref)
    {
    
$sql "SELECT j.ref, j.type, j.job_data, j.user, j.status, j.start_date, j.priority, j.success_text, j.failure_text, j.job_code, u.username, u.fullname FROM job_queue j LEFT JOIN user u ON u.ref = j.user WHERE j.ref = ?";
    
$job_data=ps_query($sql, array("i",(int)$ref));

    return (
is_array($job_data) && count($job_data)>0) ? $job_data[0] : array();
    }    

This article was last updated 25th May 2022 20:35 Europe/London time based on the source file dated 19th May 2022 17:05 Europe/London time.