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