function tmgmt_job_item_load in Translation Management Tool 7
Loads a translation job item.
Parameters
$tjiid: A job item id.
Return value
TMGMTJobItem The loaded job item or FALSE if the query returned no results.
Related topics
6 calls to tmgmt_job_item_load()
- TMGMTCRUDTestCase::testJobItems in tests/
tmgmt.crud.test - Test crud operations of job items.
- TMGMTFileformatXLIFF::validateImport in translators/
file/ tmgmt_file.format.xliff.inc - Validates that the given file is valid and can be imported.
- TMGMTLocalTestCase::testBasicWorkflow in translators/
tmgmt_local/ tmgmt_local.test - Test the basic translation workflow
- TMGMTMessage::getJobItem in entity/
tmgmt.entity.message.inc - Loads the job entity that this job message is attached to.
- TMGMTRemote::getJobItem in entity/
tmgmt.entity.remote.inc - Gets translation job item.
File
- ./
tmgmt.module, line 734 - Main module file for the Translation Management module.
Code
function tmgmt_job_item_load($tjiid) {
$jobs = tmgmt_job_item_load_multiple(array(
$tjiid,
), array());
return $jobs ? reset($jobs) : FALSE;
}