本文整理汇总了PHP中Handler::Handler方法的典型用法代码示例。如果您正苦于以下问题:PHP Handler::Handler方法的具体用法?PHP Handler::Handler怎么用?PHP Handler::Handler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Handler
的用法示例。
在下文中一共展示了Handler::Handler方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AuthorHandler
/**
* Constructor
**/
function AuthorHandler()
{
parent::Handler();
$this->addCheck(new HandlerValidatorConference($this));
$this->addCheck(new HandlerValidatorSchedConf($this));
$this->addCheck(new HandlerValidatorRoles($this, true, null, array('requiresAuthor' => Request::getUserVar('requiresAuthor')), array(ROLE_ID_AUTHOR)));
}
示例2: CustomLocaleHandler
/**
* Constructor
**/
function CustomLocaleHandler($parentPluginName)
{
parent::Handler();
$this->addCheck(new HandlerValidatorJournal($this));
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN, ROLE_ID_MANAGER)));
$this->plugin = PluginRegistry::getPlugin('generic', $parentPluginName);
}
示例3: ArticleHandler
/**
* Constructor
* @param $request Request
*/
function ArticleHandler(&$request)
{
parent::Handler($request);
$router =& $request->getRouter();
$this->addCheck(new HandlerValidatorJournal($this));
$this->addCheck(new HandlerValidatorCustom($this, false, null, null, create_function('$journal', 'return $journal->getSetting(\'publishingMode\') != PUBLISHING_MODE_NONE;'), array($router->getContext($request))));
}
示例4: TranslatorHandler
/**
* Constructor
**/
function TranslatorHandler()
{
parent::Handler();
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN)));
$plugin =& Registry::get('plugin');
$this->plugin =& $plugin;
}
示例5: ReviewerHandler
/**
* Constructor
**/
function ReviewerHandler()
{
parent::Handler();
$this->addCheck(new HandlerValidatorConference($this));
$this->addCheck(new HandlerValidatorSchedConf($this));
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_REVIEWER)));
}
示例6: PKPManageFileApiHandler
/**
* Constructor.
*/
function PKPManageFileApiHandler()
{
parent::Handler();
$this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_REVIEWER, ROLE_ID_AUTHOR), array('deleteFile', 'editMetadata', 'editMetadataTab', 'saveMetadata'));
// Load submission-specific translations
AppLocale::requireComponents(LOCALE_COMPONENT_PKP_SUBMISSION);
}
示例7: CustomLocaleHandler
/**
* Constructor
**/
function CustomLocaleHandler()
{
parent::Handler();
$this->addCheck(new HandlerValidatorJournal($this));
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN, ROLE_ID_JOURNAL_MANAGER)));
$plugin =& PluginRegistry::getPlugin('generic', 'CustomLocalePlugin');
$this->plugin =& $plugin;
}
示例8: InformationCenterHandler
/**
* Constructor
*/
function InformationCenterHandler()
{
parent::Handler();
// Author can do everything except delete notes.
// (Review-related log entries are hidden from the author, but
// that's not implemented here.)
$this->addRoleAssignment(array(ROLE_ID_AUTHOR), $authorOps = array('viewInformationCenter', 'metadata', 'saveForm', 'viewNotes', 'listNotes', 'saveNote', 'viewHistory'));
$this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array_merge($authorOps, array('deleteNote')));
}
示例9: ErrorHandler
function ErrorHandler($params = null)
{
Handler::Handler($params);
// global $DEFAULT_LANGUAGE;
// $this->language_ = $DEFAULT_LANGUAGE;
//$this->caller_class_ = (!empty($params['caller'])) ? $params['caller'] : null ;
//$this->error_message_ = array();
return $this->loadErrorCode();
}
示例10: MinutesHandler
function MinutesHandler()
{
parent::Handler();
$this->addCheck(new HandlerValidatorJournal($this));
// 02-01-2012
$page = Request::getRequestedPage();
if ($page == 'sectionEditor') {
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SECTION_EDITOR)));
} elseif ($page == 'editor') {
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_EDITOR)));
}
}
示例11: ReportsHandler
/**
* Constructor
**/
function ReportsHandler()
{
parent::Handler();
$this->addCheck(new HandlerValidatorJournal($this));
// FIXME This is kind of evil
$page = Request::getRequestedPage();
if ($page == 'sectionEditor') {
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SECTION_EDITOR)));
} elseif ($page == 'editor') {
$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_EDITOR)));
}
}
示例12: GatewayHandler
/**
* Constructor
*/
function GatewayHandler()
{
parent::Handler();
}
示例13: GiftsHandler
/**
* Constructor
*/
function GiftsHandler()
{
parent::Handler();
}
示例14: IssueHandler
/**
* Constructor
**/
function IssueHandler()
{
parent::Handler();
$this->addCheck(new HandlerValidatorJournal($this));
$this->addCheck(new HandlerValidatorCustom($this, false, null, null, create_function('$journal', 'return $journal->getSetting(\'publishingMode\') != PUBLISHING_MODE_NONE;'), array(Request::getJournal())));
}
示例15: CounterHandler
/**
* Constructor
**/
function CounterHandler()
{
parent::Handler();
}