IssueEntryPublicationMetadataForm::__construct PHP Method

__construct() public method

Constructor.
public __construct ( $submissionId, $userId, $stageId = null, $formParams = null )
$submissionId integer
$userId integer
$stageId integer
$formParams array
    function __construct($submissionId, $userId, $stageId = null, $formParams = null)
    {
        parent::__construct('controllers/tab/issueEntry/form/publicationMetadataFormFields.tpl');
        $submissionDao = Application::getSubmissionDAO();
        $this->_submission = $submissionDao->getById($submissionId);
        $this->_stageId = $stageId;
        $this->_formParams = $formParams;
        $this->_userId = $userId;
        $this->addCheck(new FormValidatorPost($this));
        $this->addCheck(new FormValidatorCSRF($this));
        $this->addCheck(new FormValidatorURL($this, 'licenseURL', 'optional', 'form.url.invalid'));
    }