示例#1
0
 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));
     }
 }
示例#2
0
 public static function getTableIO($adapter)
 {
     return new GAdminTable(GAdmin::getTableGateway($adapter));
 }