예제 #1
0
 /**
  * Constructor method for FileIntoAction
  * @param int $index Index - specifies a guaranteed order for the action elements
  * @param string $folderPath Folder path
  * @return self
  */
 public function __construct($index, $folderPath = null)
 {
     parent::__construct($index);
     if (null !== $folderPath) {
         $this->setProperty('folderPath', trim($folderPath));
     }
 }
예제 #2
0
 /**
  * Constructor method for ReplyAction
  * @param int $index
  * @param string $content
  * @return self
  */
 public function __construct($index, $content = null)
 {
     parent::__construct($index);
     if (null !== $content) {
         $this->child('content', trim($content));
     }
 }
예제 #3
0
 /**
  * Constructor method for FlagAction
  * @param int $index Index - specifies a guaranteed order for the action elements
  * @param string $flagName Flag name
  * @return self
  */
 public function __construct($index, $flagName = null)
 {
     parent::__construct($index);
     if (null !== $flagName) {
         $this->property('flagName', trim($flagName));
     }
 }
예제 #4
0
 /**
  * Constructor method for TagAction
  * @param int $index
  * @param string $tagName
  * @return self
  */
 public function __construct($index, $tagName = null)
 {
     parent::__construct($index);
     if (null !== $tagName) {
         $this->setProperty('tagName', trim($tagName));
     }
 }
예제 #5
0
 /**
  * Constructor method for RedirectAction
  * @param int $index
  * @param string $a
  * @return self
  */
 public function __construct($index, $a = null)
 {
     parent::__construct($index);
     if (null !== $a) {
         $this->setProperty('a', trim($a));
     }
 }
예제 #6
0
 /**
  * Constructor method for NotifyAction
  * @param int $index Index - specifies a guaranteed order for the action elements
  * @param string $content
  * @param string $a
  * @param string $su
  * @param int    $maxBodySize
  * @param string $origHeaders
  * @return self
  */
 public function __construct($index, $content = null, $a = null, $su = null, $maxBodySize = null, $origHeaders = null)
 {
     parent::__construct($index);
     if (null !== $content) {
         $this->setChild('content', trim($content));
     }
     if (null !== $a) {
         $this->setProperty('a', trim($a));
     }
     if (null !== $su) {
         $this->setProperty('su', trim($su));
     }
     if (null !== $maxBodySize) {
         $this->setProperty('maxBodySize', (int) $maxBodySize);
     }
     if (null !== $origHeaders) {
         $this->setProperty('origHeaders', trim($origHeaders));
     }
 }