Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 224 to 230

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 15th December 2024 18:05 Europe/London time based on the source file dated 18th October 2024 11:40 Europe/London time.