public function reverse() { $event = $this->event; $related_event = $this->related_event; $type_of_chain_of_events = $this->type_of_chain_of_events; $this->event = $related_event; $this->related_event = $event; $this->type_of_chain_of_events = get_chaintype_reverse($type_of_chain_of_events); }
?> > <td><?php echo ++$key; ?> </td> <td><?php echo $record['initial_date']; ?> </td> <td><?php echo $record['event_title']; ?> </td> <td><?php echo get_mt_term(get_chaintype_reverse($record['type_of_chain_of_events'])); ?> </td> </tr> <?php } ?> </tbody> </table> <?php $coe_form = generate_formarray('chain_of_events', 'view'); $coe = new ChainOfEvents(); foreach ($related_events as $key => $record) { echo '<br /><h3>' . _t('CHANE_OF_EVENTS_') . ++$key . ' : ' . get_mt_term($record['type_of_chain_of_events']) . '</h3>'; echo '<h3>' . _t('RELATED_EVENT') . $key . ' : ' . $record['event_title'] . '</h3><br />';