/** Add the activity results to the table; */ function after() { if (!empty($this->_activity_result)) { foreach ($this->_activity_result as $result) { $activity = new Model_Activity(); $activity->create_activity($result); } } }