public function __construct()
 {
     parent::__construct();
     $this->addStrategy('requestTime', new DateTime());
     $this->addStrategy('responded', new TrueFalse());
     return $this;
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $dateTime = new DateTimeStrategy();
     //$this->addStrategy('dateCreated', $dateTime);
     $this->addStrategy('dateModified', $dateTime);
     return $this;
 }
 public function __construct()
 {
     parent::__construct();
     $dateTime = new DateTimeStrategy();
     $this->addStrategy('sent', new TrueFalse());
     $this->addStrategy('dateCreated', $dateTime);
     $this->addStrategy('dateSent', $dateTime);
 }
Example #4
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $serialize = new Serialize();
     $this->addStrategy('dateCreated', new DateTimeStrategy());
     $this->addStrategy('layout', $serialize);
     $this->addStrategy('body', $serialize);
     $this->addStrategy('sender', $serialize);
     $this->addStrategy('recipient', $serialize);
 }
 public function __construct()
 {
     parent::__construct();
     $this->addStrategy('dateTime', new DateTime());
 }
 /**
  * Newsletter constructor. Set up strategies
  */
 public function __construct()
 {
     parent::__construct();
     $this->addStrategy('visible', new TrueFalse());
 }