Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 226 to 232

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 April 2024 16:05 Europe/London time based on the source file dated 23rd February 2024 17:00 Europe/London time.