21 private $mPagenavi =
null;
24 public function __construct()
26 parent::__construct();
27 $this->mService = $this->root->mServiceManager->getService(
'UserSearch');
30 private function getData($request)
32 $client = $this->root->mServiceManager->createClient($this->mService);
33 $this->listdata = $client->call(
'getUserList', $request);
36 public function execute()
38 if (!$this->chk_use()) {
39 $this->setUrl(
'index.php?action=settings');
40 $this->setErr(_MD_MESSAGE_SETTINGS_MSG5);
42 if (
null == $this->mService) {
43 $this->setErr(
'Service Not loaded.');
46 $this->root->mLanguageManager->loadModuleMessageCatalog(
'usersearch');
47 require_once XOOPS_MODULE_PATH.
'/usersearch/forms/UsersearchForm.class.php';
48 $this->mActionform =
new UsersearchForm();
49 $this->mActionform->prepare();
51 $this->mActionform->fetch();
52 if (1 == $this->mActionform->get(
'dosearch')) {
53 $this->mActionform->validate();
54 if ($this->mActionform->hasError()) {
55 $this->setErr($this->mActionform->getErrorMessages());
59 'uname' => $this->mActionform->get(
'uname'),
60 'stype' => $this->mActionform->get(
'searchtype'),
62 'url' =>
'index.php?action=search'
64 $this->getData($request);
66 $this->mActionform->set(
'searchtype', 0);
71 public function executeView(&$render)
73 $render->setTemplateName(
'message_usersearch.html');
74 $render->setAttribute(
'mActionform', $this->mActionform);
75 $render->setAttribute(
'listdata', $this->listdata);