public function newRun($request) { $groups_model = new GroupsModel(); $this->data['groups'] = $groups_model->getAll(); $this->view = 'edit'; $this->data['form_action'] = 'create'; }
public function deleteSave($request) { $groups_model = new GroupsModel(); $status = $groups_model->delete($request['id']); if ($status) { $this->data['status'] = "success"; } else { $this->data['status'] = "failed"; } }
public function messageDeleteAction() { $model = new GroupsModel(); $model->deleteMessage($this->request['mid']); Project::getResponse()->redirect(Project::getRequest()->createUrl('Groups', 'messagesView') . '/pid:' . $this->request['pid'] . '/tid:' . $this->request['tid']); }
} echo $Forums->showExternalGroupThreads($group_id, $this->isGroupMember(), false, $showNewTopicButton); ?> </div> <!-- floatbox --> </div> <!-- subcl --> </div> <!-- c62l --> <div class="c38r"> <div class="subcr"> <?php if (!APP_user::isBWLoggedIn('NeedMore,Pending')) { // not logged in users cannot join groups echo $words->get('GroupsJoinLoginFirst'); } else { $model = new GroupsModel(); if ($this->member) { $memberId = $this->member->id; } else { $memberId = null; } switch ($model->getMembershipStatus($this->group, $memberId)) { case 'Kicked': // tell user he got banned echo $words->getSilent('GroupsBanned'); break; case 'WantToBeIn': // tell user he already applied but still needs to wait confirmation echo $words->getSilent('GroupsAlreadyApplied'); break; default: