public function __construct($vars = null)
 {
     if ($vars) {
         parent::__construct();
         if (array_key_exists('category', $vars)) {
             $this->category = $vars['category'];
         }
     }
 }
 public function __construct($vars = null)
 {
     if ($vars) {
         parent::__construct($vars);
         if (array_key_exists('subject', $vars)) {
             $this->subject = $vars['subject'];
         }
         if (array_key_exists('html', $vars)) {
             $this->html = $vars['html'];
         }
         if (array_key_exists('reply', $vars)) {
             $this->reply = $vars['reply'];
         }
         if (array_key_exists('linktracking', $vars)) {
             $this->linktracking = $vars['linktracking'];
         }
         if (array_key_exists('opentracking', $vars)) {
             $this->opentracking = $vars['opentracking'];
         }
     }
 }