/** * 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); }
private function getParams(scheda $cliente) { $params = array(':ID' => $cliente->getID(), ':EMAIL' => $cliente->getEMAIL(), ':PASSWORD' => $cliente->getPASSWORD(), ':ATTIVO' => $cliente->getATTIVO(), ':DATAREGISTRAZIONE' => $cliente->getDATAREGISTRAZIONE()); return $params; }