public function process() { $params = array(); $params["title"] = array(array("title" => "Привет!")); $party = mParty::getInstance(); $res = $party->chooseCharacter(Request::getVarAsInteger("guest", "POST"), Request::getVarAsInteger("id", "POST"), Request::getVarAsInteger("character", "POST")); $c = $this->_view->compose($res); Response::setContent($c); return true; }
public function process() { $p = mParty::getInstance(); if ($p->unsetMe()) { $res = $p->getCharacters(); } else { $res = -1; } Response::setContent($this->_view->compose($res)); return true; }
public function process() { $params = array(); $params["title"] = array(array("title" => "Привет!")); $party = mParty::getInstance(); $params["characterList"] = $party->getCharacters(); $params["guestList"] = $party->getGuests(); $gb = mGuestBook::getInstance(); $params["guestBookSite"] = $gb->getPage(array("n", "nick", "email", "date", "msg", "admin_answer", "admin_answer_date"), 1); $vote = mVote::getInstance(); $params["voteList"] = $vote->getAll(); $c = $this->_view->compose($params); Response::setContent($c); return true; }