Ejemplo n.º 1
0
 /**
  *
  * Mauro Cerone
  *
  * @param Email $email        	
  * @todo implement the attachment (path to file, or database blob)
  */
 public static function addMailToSend(Email $email)
 {
     if (!empty($email->getStringA())) {
         $newMail = new StesiMail();
         $newMail->setFrom($email->getFrom()->getAddress())->setA($email->getStringA())->setCc($email->getStringCc())->setContent($email->getTemplate()->getHtml())->setSubject($email->getSubject());
         $newMail->save();
     }
 }
Ejemplo n.º 2
0
 /**
  * Exclude object from result
  *
  * @param   ChildStesiMail $stesiMail Object to remove from the list of results
  *
  * @return $this|ChildStesiMailQuery The current query, for fluid interface
  */
 public function prune($stesiMail = null)
 {
     if ($stesiMail) {
         $this->addUsingAlias(StesiMailTableMap::COL_ID, $stesiMail->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }