/** * @param JOURNAL $entry Configure commands for this journal entry. */ public function __construct($entry) { parent::__construct($entry); $cmd = $this->command_at('edit'); $cmd->link = "edit_journal.php?id={$entry->id}"; $cmd = $this->command_at('delete'); $cmd->link = "delete_journal.php?id={$entry->id}"; $cmd = $this->command_at('purge'); $cmd->link = "purge_journal.php?id={$entry->id}"; $cmd = $this->command_at('clone'); $cmd->link = "clone_journal.php?id={$entry->id}"; $cmd = $this->command_at('send'); $cmd->link = "send_journal.php?id={$entry->id}"; }