當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。