function get_edit_disp($titleKey, $mvd_id = 'new', $ns = MV_NS_MVD) { global $mvgIP, $wgOut, $wgScriptPath, $wgUser, $wgTitle, $mvMetaDataHelpers; $mvd_type = strtolower(array_shift(split(':', $titleKey))); // print "new article title: " . $titleKey; $wgTitle = Title::newFromText($titleKey, $ns); // make a title article with global title: $Article = new Article($wgTitle); // make the ediPageajax obj $editPageAjax = new MV_EditPageAjax($Article); $customPreEditHtml = $this->get_adjust_disp($titleKey, $mvd_id); // add custom data helpers if editing annotative layer: if ($mvd_type == 'anno_en') { $editPageAjax->setBasicHtml($this->get_dataHelpers($titleKey, $mvd_id)); // don't display "advanced" edit $editPageAjax->display_advanced_edit = 'none'; } // add in adjust code & hidden helpers $editPageAjax->setAdjustHtml($customPreEditHtml); // set ts id: $editPageAjax->mvd_id = $mvd_id; // fill wgOUt with edit form: $editPageAjax->edit(); return $wgOut->getHTML(); // @@todo base edit display off of template (some how?) // special structure for editing type ht_en }