/** * @static * @param $categoryInserts * @param $categoryDeletes * @param Title $title * @return bool */ public static function onAfterCategoriesUpdate($categoryInserts, $categoryDeletes, $title) { $ce = new CategoryExhibitionSection(null); $categores = $categoryInserts + $categoryDeletes; foreach (array_keys($categores) as $value) { $title = Title::newFromText($value, NS_CATEGORY); $ce->setTouched($title); } return true; }
function getFormHTML() { global $wgTitle; $categoryExhibitionSection = new CategoryExhibitionSection($wgTitle); $categoryExhibitionSection->setSortTypeFromParam(); $categoryExhibitionSection->setDisplayTypeFromParam(); $oTmpl = new EasyTemplate(dirname(__FILE__) . "/templates/"); $oTmpl->set_vars(array('path' => $wgTitle->getFullURL(), 'current' => $categoryExhibitionSection->getSortType(), 'sortTypes' => $categoryExhibitionSection->getSortTypes(), 'displayType' => $categoryExhibitionSection->getDisplayType())); return $oTmpl->render("form"); }