* @license PHP License * @package WB * @subpackage content */ /** * Load classes */ WBClass::load('WBDatasource_Callback'); /** * Wombat Incident Ticket System: Callback * * @version 1.0.0 * @package WB * @subpackage content */ class WBITS_DatasourceCallback implements WBDatasource_Callback { /** * callback when receive whole entry * * @param string $src name of source * @param string $key * @param array $data loaded data * @return bool true on success */ public function onDatasourceGet($src, $key, &$data) { $data['id'] = $key; $data['obscureid'] = $data['obscure'] . $key; unset($data['obscure']); $data['status_display'] = patI18n::dgettext('wombat', 'its_status_' . $data['status']); return true; } }