array('execute', 0), ); } public function execute(TaskEvent $event) { if (isset($event['task_id'])) { $this->container['db']->table(Task::TABLE)->eq('id', $event['task_id'])->update(array('date_moved' => time())); } } }