public function index() { OW::getDocument()->setDescription(OW::getLanguage()->text('base', 'users_list_user_search_meta_description')); $this->addComponent('menu', BASE_CTRL_UserList::getMenu('search')); if (!OW::getUser()->isAuthorized('base', 'search_users')) { $status = BOL_AuthorizationService::getInstance()->getActionStatus('base', 'search_users'); $this->assign('authMessage', $status['msg']); return; } $mainSearchForm = OW::getClassInstance('MainSearchForm', $this); $mainSearchForm->process($_POST); $this->addForm($mainSearchForm); $displayNameSearchForm = new DisplayNameSearchForm($this); $displayNameSearchForm->process($_POST); $this->addForm($displayNameSearchForm); }
public function index() { OW::getDocument()->setDescription(OW::getLanguage()->text('base', 'users_list_user_search_meta_description')); $this->addComponent('menu', BASE_CTRL_UserList::getMenu('search')); if (!OW::getUser()->isAuthorized('base', 'search_users')) { $this->assign('authMessage', OW::getLanguage()->text('base', 'authorization_failed_feedback')); return; } $eventParams = array('pluginKey' => 'base', 'action' => 'search_users'); $credits = OW::getEventManager()->call('usercredits.check_balance', $eventParams); if ($credits === false) { $this->assign('authMessage', OW::getEventManager()->call('usercredits.error_message', $eventParams)); return; } $mainSearchForm = new MainSearchForm($this); $mainSearchForm->process($_POST); $this->addForm($mainSearchForm); $displayNameSearchForm = new DisplayNameSearchForm($this); $displayNameSearchForm->process($_POST); $this->addForm($displayNameSearchForm); }