private static function buildEventArray()
 {
     global $wgUser, $wgParser;
     $whodidit = $wgUser->getName();
     $startTime = isset($_POST['timepicker1']) ? $_POST['timepicker1'] : '';
     $endTime = isset($_POST['timepicker2']) ? $_POST['timepicker2'] : '';
     $start = strtotime($_POST["start"] . ' ' . $startTime);
     $end = strtotime($_POST["end"] . ' ' . $endTime);
     $subject = strip_tags($_POST["subject"], '<b><i><s><u>');
     $arrInvites = helpers::invites_str_to_arr($_POST["invites"]);
     $text = $_POST['text'];
     //$text = self::wikiPageParse($_POST['text']);
     $arrEvent = array('id' => $_POST["eventid"], 'calendar' => $_POST["calendar"], 'subject' => $subject, 'location' => $_POST["location"], 'start' => $start, 'end' => $end, 'allday' => isset($_POST["allday"]) ? 1 : 0, 'text' => $text, 'createdby' => $whodidit, 'editedby' => $whodidit, 'invites' => serialize($arrInvites));
     return $arrEvent;
 }