__construct() public method

Constructor
public __construct ( )
Exemplo n.º 1
0
 public function __construct($type = USE_ECHO, $separator = self::DEFAULT_SEPARATOR, $expandArrays = true)
 {
     parent::__construct(null);
     $this->_type = $type;
     $this->_separator = $separator;
     $this->_expandArrays = $expandArrays;
 }
 /**
  * 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);
 }
 /**
  * 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')));
 }
Exemplo n.º 4
0
 function __construct($letter = 'A')
 {
     parent::__construct();
     if (preg_match('/^[A-Z0-9\\."]$/', $letter)) {
         $this->letter = $letter;
     } else {
         $this->letter = 'A';
     }
 }
Exemplo n.º 5
0
 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());
     }
 }
 /**
  * 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'));
 }
Exemplo n.º 7
0
 function construct($request)
 {
     parent::__construct($request);
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('submissionMetadata', 'saveForm'));
 }
Exemplo n.º 9
0
 public function __construct($target, $name, $ignoreArgumentCount = false)
 {
     parent::__construct($target);
     $this->_name = $name;
     $this->_ignoreArgumentCount = $ignoreArgumentCount;
 }
 /**
  * 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'));
 }
Exemplo n.º 11
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchRepresentation'));
 }
 /**
  * Constructor
  **/
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(ROLE_ID_MANAGER, array('fetchReportGenerator', 'saveReportGenerator', 'fetchArticlesInfo', 'fetchRegions'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('startWizard'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     AppLocale::requireComponents(LOCALE_COMPONENT_APP_COMMON);
 }
Exemplo n.º 15
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('index'));
 }
Exemplo n.º 16
0
 /**
  * Constructor
  */
 function __construct($parentPluginName)
 {
     parent::__construct();
     $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN, ROLE_ID_MANAGER)));
     $this->plugin = PluginRegistry::getPlugin('generic', $parentPluginName);
 }
 /**
  * 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('downloadFile', 'downloadLibraryFile', 'downloadAllFiles', 'recordDownload', 'enableLinkAction'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_AUTHOR), array('submission', 'readSubmissionEmail'));
 }
 /**
  * Constructor
  * @param $role string The role keys to be used in role assignment.
  */
 function __construct($role)
 {
     parent::__construct();
     $this->addRoleAssignment($role, array('saveFormData', 'showTab'));
 }
Exemplo n.º 20
0
 /**
  * Constructor.
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('fetch', 'getSubmissions'));
 }
Exemplo n.º 21
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER), array('catalog', 'series', 'category', 'spotlights'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SITE_ADMIN), array('index', 'settings'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_AUTHOR), array('fetchTab'));
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
 }
 /**
  * Constructor.
  */
 function __construct()
 {
     parent::__construct();
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_AUTHOR, ROLE_ID_ASSISTANT), array('documentLibrary'));
 }