当前位置: 首页>>代码示例>>PHP>>正文


PHP Handler::Handler方法代码示例

本文整理汇总了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)));
 }
开发者ID:pulipulichen,项目名称:ocs,代码行数:10,代码来源:AuthorHandler.inc.php

示例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);
 }
开发者ID:jalperin,项目名称:ojs,代码行数:10,代码来源:CustomLocaleHandler.inc.php

示例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))));
 }
开发者ID:philschatz,项目名称:ojs,代码行数:11,代码来源:ArticleHandler.inc.php

示例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;
 }
开发者ID:ingmarschuster,项目名称:MindResearchRepository,代码行数:10,代码来源:TranslatorHandler.inc.php

示例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)));
 }
开发者ID:jalperin,项目名称:ocs,代码行数:10,代码来源:ReviewerHandler.inc.php

示例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);
 }
开发者ID:jprk,项目名称:pkp-lib,代码行数:10,代码来源:PKPManageFileApiHandler.inc.php

示例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;
 }
开发者ID:philschatz,项目名称:ojs,代码行数:11,代码来源:CustomLocaleHandler.inc.php

示例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')));
 }
开发者ID:doana,项目名称:pkp-lib,代码行数:12,代码来源:InformationCenterHandler.inc.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:hem,代码行数:9,代码来源:class.ErrorHandler.php

示例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)));
     }
 }
开发者ID:elavaud,项目名称:hrp_ct,代码行数:12,代码来源:MinutesHandler.inc.php

示例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)));
     }
 }
开发者ID:JovanyJeff,项目名称:hrp,代码行数:15,代码来源:ReportsHandler.inc.php

示例12: GatewayHandler

 /**
  * Constructor
  */
 function GatewayHandler()
 {
     parent::Handler();
 }
开发者ID:PublishingWithoutWalls,项目名称:omp,代码行数:7,代码来源:GatewayHandler.inc.php

示例13: GiftsHandler

 /**
  * Constructor
  */
 function GiftsHandler()
 {
     parent::Handler();
 }
开发者ID:ucsal,项目名称:ojs,代码行数:7,代码来源:GiftsHandler.inc.php

示例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())));
 }
开发者ID:farhanabbas1983,项目名称:ojs-1,代码行数:9,代码来源:IssueHandler.inc.php

示例15: CounterHandler

 /**
  * Constructor
  **/
 function CounterHandler()
 {
     parent::Handler();
 }
开发者ID:alexukua,项目名称:j2test,代码行数:7,代码来源:CounterHandler.inc.php


注:本文中的Handler::Handler方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。