public function url() { $resourceID = DataManager::getGlobalInstanceIDFromModuleInstanceID($this->tableName, $this->row->id); return new moodle_url('/mod/' . $this->tableName . '/view.php', array('id' => $resourceID)); }