function fetch() { parent::fetch(); $t_queries = array(); $myts =& MyTextSanitizer::getInstance(); if ($this->get('andor') == 'exact' && strlen($this->get('query')) >= $this->_mKeywordMin) { $this->mQueries[] = $myts->addSlashes($this->get('query')); } else { $query = $this->get('query'); if (defined('XOOPS_USE_MULTIBYTES')) { $query = xoops_trim($query); } $separator = '/[\\s,]+/'; if (defined('_MD_LEGACY_FORMAT_SEARCH_SEPARATOR')) { $separator = _MD_LEGACY_FORMAT_SEARCH_SEPARATOR; } $tmpArr = preg_split($separator, $query); foreach ($tmpArr as $tmp) { if (strlen($tmp) >= $this->_mKeywordMin) { $this->mQueries[] = $myts->addSlashes($tmp); } } } $this->set('query', implode(" ", $this->mQueries)); }
function fetch() { parent::fetch(); if (is_object($this->mState)) { $this->mState->fetch($this); } }
/** * execute. * * @return Enum */ public function execute() { if ($this->mObject == null) { return $this->_getFrameViewStatus('ERROR'); } if ($this->mRoot->mContext->mRequest->getRequest('_form_control_cancel') != null) { return $this->_getFrameViewStatus('CANCEL'); } $this->mActionForm->load($this->mObject); $this->mActionForm->fetch(); $this->mActionForm->validate(); if ($this->mActionForm->hasError()) { return $this->_getFrameViewStatus('INPUT'); } $this->mActionForm->update($this->mObject); return $this->_doExecute(); }
function fetch() { parent::fetch(); $root =& XCube_Root::getSingleton(); $t_arr = $root->mContext->mRequest->getRequest('del_not'); if (!is_array($t_arr)) { $this->addErrorMessage(_MD_LEGACY_LANG_ERROR); $this->mFatalError = true; return; } foreach ($t_arr as $t_modid => $t_idArr) { if (!is_array($t_idArr)) { $this->addErrorMessage(_MD_LEGACY_LANG_ERROR); $this->mFatalError = true; return; } foreach ($t_idArr as $t_id) { $this->mNotifiyIds[] = array('modid' => intval($t_modid), 'id' => intval($t_id)); } } }
function fetch() { parent::fetch(); $this->set('keywords', trim($this->get('keywords'))); }