' . $this->str['pendingchangescannotbesaved'] . '
' . $this->str['pendingchanges'] . '
'; // The view original XML button if ($origstructure->getTable($tableparam)) { $b .= ' [' . $this->str['vieworiginal'] . ']'; } else { $b .= ' [' . $this->str['vieworiginal'] . ']'; } // The view edited XML button if ($table->hasChanged()) { $b .= ' [' . $this->str['viewedited'] . ']'; } else { $b .= ' [' . $this->str['viewedited'] . ']'; } // The new field button $b .= ' [' . $this->str['newfield'] . ']'; // The new key button $b .= ' [' . $this->str['newkey'] . ']'; // The new index button $b .= ' [' . $this->str['newindex'] . ']'; $b .= '
'; // The view sql code button $b .= '[' .$this->str['viewsqlcode'] . ']'; // The view php code button $b .= ' [' . $this->str['viewphpcode'] . ']'; // The add persistent fields button. $url = new \moodle_url('/admin/tool/xmldb/index.php', [ 'action' => 'add_persistent_mandatory', 'sesskey' => sesskey(), 'table' => $tableparam, 'dir'=> str_replace($CFG->dirroot, '', $dirpath) ]); $b .= ' ' . \html_writer::link($url, '[' . $this->str['addpersistent'] . ']'); // The save button (if possible) if ($cansavenow) { $b .= ' [' . $this->str['save'] . ']'; } // The back to edit xml file button $b .= ' [' . $this->str['back'] . ']'; $b .= '