public function saveUser(GAdmin $user) { $userData = $user->getFullData(); if ($this->getUser($user->uid) == NULL) { // SI NO EXISTE EL USUARIO $this->tableGateway->insert($userData); } else { $this->tableGateway->update($userData, array('UID' => $user->uid)); } }
public static function getTableIO($adapter) { return new GAdminTable(GAdmin::getTableGateway($adapter)); }