コード例 #1
0
ファイル: Sephpa.php プロジェクト: KoenLav/Sephpa
 /**
  * Creates a SepaXmlFile object and sets the head data
  *
  * @param string $initgPty The name of the initiating party (max. 70 characters)
  * @param string $msgId    The unique id of the file
  * @param int    $type     Sets the type and version of the sepa file. Use the SEPA_PAIN_* constants
  * @param bool   $checkAndSanitize
  */
 public function __construct($initgPty, $msgId, $type, $checkAndSanitize = true)
 {
     $this->checkAndSanitize = $checkAndSanitize;
     if ($this->checkAndSanitize) {
         $this->initgPty = SepaUtilities::checkAndSanitize('initgpty', $initgPty);
         $this->msgId = SepaUtilities::checkAndSanitize('msgid', $msgId);
     } else {
         $this->initgPty = $initgPty;
         $this->msgId = $msgId;
     }
 }