XOOPS Cube Legacy base repository
Revision | 27f18238ca01614e514f17f028bcfe139fbd0342 (tree) |
---|---|
Time | 2013-04-12 16:53:58 |
Author | kilica <kilica.hikawa@gmai...> |
Commiter | kilica |
#44 refactoring for user module
@@ -107,39 +107,39 @@ class User_UserFilterForm extends User_AbstractFilterForm | ||
107 | 107 | $option_field = $root->mContext->mRequest->getRequest('option_field'); |
108 | 108 | $search = $root->mContext->mRequest->getRequest('search'); |
109 | 109 | |
110 | - if (isset($_REQUEST['uid'])) { | |
111 | - $this->mNavi->addExtra('uid', xoops_getrequest('uid')); | |
112 | - $this->_mCriteria->add(new Criteria('uid', xoops_getrequest('uid'))); | |
110 | + if (isset($uid)) { | |
111 | + $this->mNavi->addExtra('uid', $uid); | |
112 | + $this->_mCriteria->add(new Criteria('uid', $uid)); | |
113 | 113 | } |
114 | 114 | |
115 | - if (isset($_REQUEST['email'])) { | |
116 | - $this->mNavi->addExtra('email', xoops_getrequest('email')); | |
117 | - $this->_mCriteria->add(new Criteria('email', xoops_getrequest('email'))); | |
115 | + if (isset($email)) { | |
116 | + $this->mNavi->addExtra('email', $email); | |
117 | + $this->_mCriteria->add(new Criteria('email', $email)); | |
118 | 118 | } |
119 | 119 | |
120 | - if (isset($_REQUEST['attachsig'])) { | |
121 | - $this->mNavi->addExtra('attachsig', xoops_getrequest('attachsig')); | |
122 | - $this->_mCriteria->add(new Criteria('attachsig', xoops_getrequest('attachsig'))); | |
120 | + if (isset($attachsig)) { | |
121 | + $this->mNavi->addExtra('attachsig', $attachsig); | |
122 | + $this->_mCriteria->add(new Criteria('attachsig', $attachsig)); | |
123 | 123 | } |
124 | 124 | |
125 | - if (isset($_REQUEST['rank'])) { | |
126 | - $this->mNavi->addExtra('rank', xoops_getrequest('rank')); | |
127 | - $this->_mCriteria->add(new Criteria('rank', xoops_getrequest('rank'))); | |
125 | + if (isset($rank)) { | |
126 | + $this->mNavi->addExtra('rank', $rank); | |
127 | + $this->_mCriteria->add(new Criteria('rank', $rank)); | |
128 | 128 | } |
129 | 129 | |
130 | - if (isset($_REQUEST['level'])) { | |
131 | - $this->mNavi->addExtra('level', xoops_getrequest('level')); | |
132 | - $this->_mCriteria->add(new Criteria('level', xoops_getrequest('level'))); | |
130 | + if (isset($level)) { | |
131 | + $this->mNavi->addExtra('level', $level); | |
132 | + $this->_mCriteria->add(new Criteria('level', $level)); | |
133 | 133 | } |
134 | 134 | |
135 | - if (isset($_REQUEST['timezone_offset'])) { | |
136 | - $this->mNavi->addExtra('timezone_offset', xoops_getrequest('timezone_offset')); | |
137 | - $this->_mCriteria->add(new Criteria('timezone_offset', xoops_getrequest('timezone_offset'))); | |
135 | + if (isset($timezone_offset)) { | |
136 | + $this->mNavi->addExtra('timezone_offset', $timezone_offset); | |
137 | + $this->_mCriteria->add(new Criteria('timezone_offset', $timezone_offset)); | |
138 | 138 | } |
139 | 139 | |
140 | - if (isset($_REQUEST['user_mailok'])) { | |
141 | - $this->mNavi->addExtra('user_mailok', xoops_getrequest('user_mailok')); | |
142 | - $this->_mCriteria->add(new Criteria('user_mailok', xoops_getrequest('user_mailok'))); | |
140 | + if (isset($user_mailok)) { | |
141 | + $this->mNavi->addExtra('user_mailok', $user_mailok); | |
142 | + $this->_mCriteria->add(new Criteria('user_mailok', $user_mailok)); | |
143 | 143 | } |
144 | 144 | |
145 | 145 | //wanikoo |