One of our event databases tracked events as start-time and duration.
Can I setup and aliased field (like id(end)) in the render_table method and use a “beforeRender” event to go ahead and calculate the actual end times based on start-time + duration?
Yep, you can use something like
function alter_time($data){
$time = $data->get_value(start)+$data->get_value(duration); //probably some more complex logic need to be used
$data->set_value("duration",$time);
}
$some->event->attach("beforeRender", "alter_time")
$some->render_table("table","id","start,duration,text");
Names of start, end, text parameters doesn’t matter , so you need not care about aliases