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


PHP Handler::__construct方法代码示例

本文整理汇总了PHP中Handler::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Handler::__construct方法的具体用法?PHP Handler::__construct怎么用?PHP Handler::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Handler的用法示例。


在下文中一共展示了Handler::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($type = USE_ECHO, $separator = self::DEFAULT_SEPARATOR, $expandArrays = true)
 {
     parent::__construct(null);
     $this->_type = $type;
     $this->_separator = $separator;
     $this->_expandArrays = $expandArrays;
 }
开发者ID:burdiuz,项目名称:php-pap,代码行数:7,代码来源:OutputHandler.php

示例2: array

 /**
  * Constructor.
  */
 function __construct()
 {
     parent::__construct();
     $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:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:10,代码来源:PKPManageFileApiHandler.inc.php

示例3: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // 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:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:12,代码来源:InformationCenterHandler.inc.php

示例4:

 function __construct($letter = 'A')
 {
     parent::__construct();
     if (preg_match('/^[A-Z0-9\\."]$/', $letter)) {
         $this->letter = $letter;
     } else {
         $this->letter = 'A';
     }
 }
开发者ID:roboshed,项目名称:leaguerunner,代码行数:9,代码来源:list.php

示例5: __construct

 function __construct($filename, $mode = 'a', $encoding = null, $delay = 0)
 {
     $this->baseFilename = realpath($filename);
     $this->mode = $mode;
     $this->delay = $delay;
     if ($delay) {
         Handler::__construct();
         $this->stream = null;
     } else {
         parent::__construct($this->_open());
     }
 }
开发者ID:iHunt101,项目名称:phlite,代码行数:12,代码来源:FileHandler.php

示例6: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SITE_ADMIN, ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_AUTHOR, ROLE_ID_REVIEWER, ROLE_ID_ASSISTANT), array('index', 'tasks', 'myQueue', 'active', 'archives'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:DashboardHandler.inc.php

示例7: construct

 function construct($request)
 {
     parent::__construct($request);
 }
开发者ID:runderwood,项目名称:redberry,代码行数:4,代码来源:handler.frontpage.php

示例8: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('submissionMetadata', 'saveForm'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:PublicationEntryTabHandler.inc.php

示例9: __construct

 public function __construct($target, $name, $ignoreArgumentCount = false)
 {
     parent::__construct($target);
     $this->_name = $name;
     $this->_ignoreArgumentCount = $ignoreArgumentCount;
 }
开发者ID:burdiuz,项目名称:php-pap,代码行数:6,代码来源:PropertyHandler.php

示例10: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_AUTHOR, ROLE_ID_REVIEWER, ROLE_ID_ASSISTANT), array('startWizard', 'displayFileUploadForm', 'uploadFile', 'confirmRevision', 'editMetadata', 'finishFileSubmission'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:PKPFileUploadWizardHandler.inc.php

示例11: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchRepresentation'));
 }
开发者ID:NateWr,项目名称:omp,代码行数:8,代码来源:PublicationFormatHandler.inc.php

示例12: array

 /**
  * Constructor
  **/
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(ROLE_ID_MANAGER, array('fetchReportGenerator', 'saveReportGenerator', 'fetchArticlesInfo', 'fetchRegions'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:ReportGeneratorHandler.inc.php

示例13: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('startWizard'));
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:ContextSettingsWizardHandler.inc.php

示例14:

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_COMMON);
 }
开发者ID:PublishingWithoutWalls,项目名称:pkp-lib,代码行数:8,代码来源:AboutContextHandler.inc.php

示例15: array

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('index'));
 }
开发者ID:NateWr,项目名称:omp,代码行数:8,代码来源:ManageCatalogHandler.inc.php


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