function getForm()
 {
     global $wgWikiaBatchTasks, $wgRequest;
     $aSorting = array();
     $iStatus = $wgRequest->getVal("wpStatus");
     $sType = $wgRequest->getArray("wpType");
     #--- get data from session
     if (!empty($_SESSION["taskmanager.filters"])) {
         $aSorting = $_SESSION["taskmanager.filters"];
     }
     if (!is_null($iStatus)) {
         if ($iStatus != -1) {
             $aSorting["task_status"] = $iStatus;
         } else {
             unset($aSorting["task_status"]);
         }
     }
     if (!is_null($sType) || $wgRequest->wasPosted()) {
         if (count($sType) != 0) {
             $aSorting["task_type"] = $sType;
         } else {
             unset($aSorting["task_type"]);
         }
     }
     $this->mQueryConds = $aSorting;
     $_SESSION["taskmanager.filters"] = $aSorting;
     $oTmpl = new EasyTemplate(dirname(__FILE__) . "/templates/");
     $oTmpl->set_vars(array("title" => $this->mTitle, "types" => $wgWikiaBatchTasks, "current" => $this->mQueryConds, "statuses" => BatchTask::getStatuses()));
     return $oTmpl->render("form");
 }