on_table); $ar = $x->links(); // is the name a link.. if (!isset($ar[$this->name])) { return $this->value; } if (empty($this->value) ) { return ''; } // lr = ProjecT:id // get the current value of that... $lr = explode(':', $ar[$this->name]); $x = DB_DataObject::factory($lr[0]); if (!method_exists($x, 'toEventString')) { return $lr[0] .':'. $this->value; } $x->get($this->value); return $x->toEventString(); // big assumption.. } function oldvalue($event) { if (!$this->old_audit_id) { return 'Unknown'; } //var_dump($cg->ontable); $x = DB_DataObject::factory('core_event_audit'); $x->get($this->old_audit_id); return $x->newvalue($event); } }