示例#1
0
 public function saveMissatge(sfWebRequest $request)
 {
     $RM = $request->getParameter('missatgesmailing');
     $this->IDM = $RM['idMissatge'];
     $this->FMissatge = MissatgesmailingPeer::initialize($this->IDM, $this->IDS);
     $this->FMissatge->bind($RM);
     if ($this->FMissatge->isValid()) {
         $this->FMissatge->save();
         $this->IDM = $this->FMissatge->getObject()->getIdmissatge();
         $this->getUser()->addLogAction('SAVE_MISS', 'gLlistes', null, $this->FMissatge->getObject());
         return true;
     } else {
         return false;
     }
 }