本文整理汇总了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;
}
示例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);
}
示例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')));
}
示例4:
function __construct($letter = 'A')
{
parent::__construct();
if (preg_match('/^[A-Z0-9\\."]$/', $letter)) {
$this->letter = $letter;
} else {
$this->letter = 'A';
}
}
示例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());
}
}
示例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'));
}
示例7: construct
function construct($request)
{
parent::__construct($request);
}
示例8: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('submissionMetadata', 'saveForm'));
}
示例9: __construct
public function __construct($target, $name, $ignoreArgumentCount = false)
{
parent::__construct($target);
$this->_name = $name;
$this->_ignoreArgumentCount = $ignoreArgumentCount;
}
示例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'));
}
示例11: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchRepresentation'));
}
示例12: array
/**
* Constructor
**/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(ROLE_ID_MANAGER, array('fetchReportGenerator', 'saveReportGenerator', 'fetchArticlesInfo', 'fetchRegions'));
}
示例13: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(array(ROLE_ID_MANAGER), array('startWizard'));
}
示例14:
/**
* Constructor
*/
function __construct()
{
parent::__construct();
AppLocale::requireComponents(LOCALE_COMPONENT_APP_COMMON);
}
示例15: array
/**
* Constructor
*/
function __construct()
{
parent::__construct();
$this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('index'));
}