tjid); } /** * Gets translation job item. * * @return TMGMTJobItem */ function getJobItem() { if (!empty($this->tjiid)) { return tmgmt_job_item_load($this->tjiid); } return NULL; } /** * Adds data to the remote_data storage. * * @param string $key * Key through which the data will be accessible. * @param $value * Value to store. */ function addRemoteData($key, $value) { $this->remote_data[$key] = $value; } /** * Gets data from remote_data storage. * * @param string $key * Access key for the data. * * @return mixed * Stored data. */ function getRemoteData($key) { return $this->remote_data[$key]; } /** * Removes data from remote_data storage. * * @param string $key * Access key for the data that are to be removed. */ function removeRemoteData($key) { unset($this->remote_data[$key]); } }