PKPAssignPublicIdentifiersForm::__construct PHP Method

__construct() public method

Constructor.
public __construct ( $template, $pubObject, $approval, $confirmationText )
$template string Form template
$pubObject object
$approval boolean
$confirmationText string
    function __construct($template, $pubObject, $approval, $confirmationText)
    {
        parent::__construct($template);
        $this->_pubObject = $pubObject;
        $this->_approval = $approval;
        $this->_confirmationText = $confirmationText;
        $request = Application::getRequest();
        $context = $request->getContext();
        $this->_contextId = $context->getId();
        $this->addCheck(new FormValidatorPost($this));
        $this->addCheck(new FormValidatorCSRF($this));
    }

Usage Example

コード例 #1
0
 /**
  * Constructor.
  * @param $template string Form template
  * @param $pubObject object
  * @param $approval boolean
  * @param $confirmationText string
  * @param $formParams array
  */
 function __construct($template, $pubObject, $approval, $confirmationText, $formParams = null)
 {
     parent::__construct($template, $pubObject, $approval, $confirmationText);
     $this->_formParams = $formParams;
 }