Пример #1
0
 /**
  * Constructs a new ezcMailMultipartDigest
  *
  * The constructor accepts an arbitrary number of ezcMail/ezcMailRfc822Digest objects
  * or arrays with objects of these types.
  *
  * Objects of the type ezcMail are wrapped into an ezcMailRfc822Digest object.
  *
  * Parts are added in the order provided. Parameters of the wrong
  * type are ignored.
  *
  * @param ezcMailRfc822Digest|array(ezcMailRfc822Digest) $...
  */
 public function __construct()
 {
     $args = func_get_args();
     parent::__construct(array());
     foreach ($args as $part) {
         if ($part instanceof ezcMail) {
             $this->parts[] = new ezcMailRfc822Digest($part);
         } else {
             if ($part instanceof ezcMailRfc822Digest) {
                 $this->parts[] = $part;
             } else {
                 if (is_array($part)) {
                     foreach ($part as $array_part) {
                         if ($array_part instanceof ezcMail) {
                             $this->parts[] = new ezcMailRfc822Digest($array_part);
                         } else {
                             if ($array_part instanceof ezcMailRfc822Digest) {
                                 $this->parts[] = $array_part;
                             }
                         }
                     }
                 }
             }
         }
     }
 }
Пример #2
0
 /**
  * Constructs a new ezcMailMultipartMixed
  *
  * The constructor accepts an arbitrary number of ezcMailParts or arrays with ezcMailparts.
  * Parts are added in the order provided. Parameters of the wrong
  * type are ignored.
  *
  * @param ezcMailPart|array(ezcMailPart) $...
  */
 public function __construct()
 {
     $args = func_get_args();
     parent::__construct($args);
 }
Пример #3
0
 /**
  * Returns true if the property $name is set, otherwise false.
  *
  * @param string $name
  * @return bool
  * @ignore
  */
 public function __isset($name)
 {
     switch ($name) {
         case 'reportType':
             return isset($this->properties[$name]);
         default:
             return parent::__isset($name);
     }
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct(func_get_args());
 }