本文整理汇总了PHP中SearchForm::execute方法的典型用法代码示例。如果您正苦于以下问题:PHP SearchForm::execute方法的具体用法?PHP SearchForm::execute怎么用?PHP SearchForm::execute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SearchForm
的用法示例。
在下文中一共展示了SearchForm::execute方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: saveSearch
function saveSearch($args)
{
$this->validate();
$rtDao =& DAORegistry::getDAO('RTDAO');
$journal = Request::getJournal();
$versionId = isset($args[0]) ? $args[0] : 0;
$version =& $rtDao->getVersion($versionId, $journal->getId());
$contextId = isset($args[1]) ? $args[1] : 0;
$context =& $rtDao->getContext($contextId);
$searchId = isset($args[2]) ? $args[2] : 0;
$search =& $rtDao->getSearch($searchId);
if (isset($version) && isset($context) && isset($search) && $context->getVersionId() == $version->getVersionId() && $search->getContextId() == $context->getContextId()) {
import('classes.rt.ojs.form.SearchForm');
$searchForm = new SearchForm($searchId, $contextId, $versionId);
$searchForm->readInputData();
$searchForm->execute();
}
Request::redirect(null, null, 'searches', array($versionId, $contextId));
}
示例2: saveSearch
function saveSearch($args)
{
$this->validate();
$rtDao =& DAORegistry::getDAO('RTDAO');
$archiveId = array_shift($args);
$versionId = array_shift($args);
$contextId = array_shift($args);
$searchId = array_shift($args);
$version =& $rtDao->getVersion($versionId, $archiveId);
$context =& $rtDao->getContext($contextId);
$search =& $rtDao->getSearch($searchId);
if (isset($version) && isset($context) && isset($search) && $context->getVersionId() == $version->getVersionId() && $search->getContextId() == $context->getContextId()) {
import('classes.rt.harvester2.form.SearchForm');
$searchForm = new SearchForm($searchId, $contextId, $versionId, $archiveId);
$searchForm->readInputData();
$searchForm->execute();
}
Request::redirect(null, 'searches', array($archiveId, $versionId, $contextId));
}