Esempio n. 1
0
 /**
  * Crea o modifica una scheda
  * @param scheda $scheda
  * @return istanza save
  */
 public function save(scheda $scheda)
 {
     if ($scheda->getID() === null) {
         return $this->insert($scheda);
     }
     return $this->update($scheda);
 }
Esempio n. 2
0
 private function getParams(scheda $cliente)
 {
     $params = array(':ID' => $cliente->getID(), ':EMAIL' => $cliente->getEMAIL(), ':PASSWORD' => $cliente->getPASSWORD(), ':ATTIVO' => $cliente->getATTIVO(), ':DATAREGISTRAZIONE' => $cliente->getDATAREGISTRAZIONE());
     return $params;
 }