-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.php
501 lines (431 loc) · 15.9 KB
/
domain.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
<?php
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
// <auto-generated>
//
// Generated from file `domain.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
namespace model
{
global $model__t_CategoriaPersona;
class CategoriaPersona
{
const FUNCIONARIO = 0;
const ACADEMICO = 1;
const ESTUDIANTE = 2;
}
$model__t_CategoriaPersona = IcePHP_defineEnum('::model::CategoriaPersona', array('FUNCIONARIO', 0, 'ACADEMICO', 1, 'ESTUDIANTE', 2));
}
namespace model
{
global $model__t_Sexo;
class Sexo
{
const _VAR = 0;
const MUJ = 1;
const OTHER = 2;
}
$model__t_Sexo = IcePHP_defineEnum('::model::Sexo', array('VAR', 0, 'MUJ', 1, 'OTHER', 2));
}
namespace model
{
global $model__t_Location;
class Location
{
const OUT = 0;
const IN = 1;
}
$model__t_Location = IcePHP_defineEnum('::model::Location', array('OUT', 0, 'IN', 1));
}
namespace model
{
global $model__t_Porteria;
class Porteria
{
const SUR = 0;
const MANCILLA = 1;
const SANGRA = 2;
}
$model__t_Porteria = IcePHP_defineEnum('::model::Porteria', array('SUR', 0, 'MANCILLA', 1, 'SANGRA', 2));
}
namespace model
{
global $model__t_Persona;
class Persona extends \Ice\Value
{
public function __construct($uid=0, $run='', $nombre='', $sexo=\model\Sexo::_VAR, $unidad='', $email='', $telefonoMovil='', $telefonoFijo='', $categoriaPersona=\model\CategoriaPersona::FUNCIONARIO)
{
$this->uid = $uid;
$this->run = $run;
$this->nombre = $nombre;
$this->sexo = $sexo;
$this->unidad = $unidad;
$this->email = $email;
$this->telefonoMovil = $telefonoMovil;
$this->telefonoFijo = $telefonoFijo;
$this->categoriaPersona = $categoriaPersona;
}
public function ice_id()
{
return '::model::Persona';
}
public static function ice_staticId()
{
return '::model::Persona';
}
public function __toString()
{
global $model__t_Persona;
return IcePHP_stringify($this, $model__t_Persona);
}
public $uid;
public $run;
public $nombre;
public $sexo;
public $unidad;
public $email;
public $telefonoMovil;
public $telefonoFijo;
public $categoriaPersona;
}
global $Ice__t_Value;
global $IcePHP__t_int;
global $IcePHP__t_string;
global $model__t_Sexo;
global $model__t_CategoriaPersona;
$model__t_Persona = IcePHP_defineClass('::model::Persona', '\\model\\Persona', -1, false, false, $Ice__t_Value, array(
array('uid', $IcePHP__t_int, false, 0),
array('run', $IcePHP__t_string, false, 0),
array('nombre', $IcePHP__t_string, false, 0),
array('sexo', $model__t_Sexo, false, 0),
array('unidad', $IcePHP__t_string, false, 0),
array('email', $IcePHP__t_string, false, 0),
array('telefonoMovil', $IcePHP__t_string, false, 0),
array('telefonoFijo', $IcePHP__t_string, false, 0),
array('categoriaPersona', $model__t_CategoriaPersona, false, 0)));
}
namespace model
{
global $model__t_Vehiculo;
class Vehiculo extends \Ice\Value
{
public function __construct($uid=0, $patente='', $marca='', $modelo='', $anio=0, $observaciones='', $runDuenio='', $location=\model\Location::OUT)
{
$this->uid = $uid;
$this->patente = $patente;
$this->marca = $marca;
$this->modelo = $modelo;
$this->anio = $anio;
$this->observaciones = $observaciones;
$this->runDuenio = $runDuenio;
$this->location = $location;
}
public function ice_id()
{
return '::model::Vehiculo';
}
public static function ice_staticId()
{
return '::model::Vehiculo';
}
public function __toString()
{
global $model__t_Vehiculo;
return IcePHP_stringify($this, $model__t_Vehiculo);
}
public $uid;
public $patente;
public $marca;
public $modelo;
public $anio;
public $observaciones;
public $runDuenio;
public $location;
}
global $Ice__t_Value;
global $IcePHP__t_int;
global $IcePHP__t_string;
global $model__t_Location;
$model__t_Vehiculo = IcePHP_defineClass('::model::Vehiculo', '\\model\\Vehiculo', -1, false, false, $Ice__t_Value, array(
array('uid', $IcePHP__t_int, false, 0),
array('patente', $IcePHP__t_string, false, 0),
array('marca', $IcePHP__t_string, false, 0),
array('modelo', $IcePHP__t_string, false, 0),
array('anio', $IcePHP__t_int, false, 0),
array('observaciones', $IcePHP__t_string, false, 0),
array('runDuenio', $IcePHP__t_string, false, 0),
array('location', $model__t_Location, false, 0)));
}
namespace model
{
global $model__t_Acceso;
class Acceso extends \Ice\Value
{
public function __construct($uid=0, $horaEntrada='', $patente='', $porteria=\model\Porteria::SUR)
{
$this->uid = $uid;
$this->horaEntrada = $horaEntrada;
$this->patente = $patente;
$this->porteria = $porteria;
}
public function ice_id()
{
return '::model::Acceso';
}
public static function ice_staticId()
{
return '::model::Acceso';
}
public function __toString()
{
global $model__t_Acceso;
return IcePHP_stringify($this, $model__t_Acceso);
}
public $uid;
public $horaEntrada;
public $patente;
public $porteria;
}
global $Ice__t_Value;
global $IcePHP__t_int;
global $IcePHP__t_string;
global $model__t_Porteria;
$model__t_Acceso = IcePHP_defineClass('::model::Acceso', '\\model\\Acceso', -1, false, false, $Ice__t_Value, array(
array('uid', $IcePHP__t_int, false, 0),
array('horaEntrada', $IcePHP__t_string, false, 0),
array('patente', $IcePHP__t_string, false, 0),
array('porteria', $model__t_Porteria, false, 0)));
}
namespace model
{
global $model__t_Vehiculos;
if(!isset($model__t_Vehiculos))
{
global $model__t_Vehiculo;
$model__t_Vehiculos = IcePHP_defineSequence('::model::Vehiculos', $model__t_Vehiculo);
}
}
namespace model
{
global $model__t_Accesos;
if(!isset($model__t_Accesos))
{
global $model__t_Acceso;
$model__t_Accesos = IcePHP_defineSequence('::model::Accesos', $model__t_Acceso);
}
}
namespace model
{
global $model__t_Personas;
if(!isset($model__t_Personas))
{
global $model__t_Persona;
$model__t_Personas = IcePHP_defineSequence('::model::Personas', $model__t_Persona);
}
}
namespace model
{
global $model__t_RunRelationNotFoundException;
class RunRelationNotFoundException extends \Ice\UserException
{
public function __construct($reason="ForeyKey run not found on the persona table")
{
$this->reason = $reason;
}
public function ice_id()
{
return '::model::RunRelationNotFoundException';
}
public function __toString()
{
global $model__t_RunRelationNotFoundException;
return IcePHP_stringifyException($this, $model__t_RunRelationNotFoundException);
}
public $reason;
}
global $IcePHP__t_string;
$model__t_RunRelationNotFoundException = IcePHP_defineException('::model::RunRelationNotFoundException', '\\model\\RunRelationNotFoundException', false, null, array(
array('reason', $IcePHP__t_string, false, 0)));
}
namespace model
{
global $model__t_NotFoundException;
class NotFoundException extends \Ice\UserException
{
public function __construct($reason="information not found on the system's database")
{
$this->reason = $reason;
}
public function ice_id()
{
return '::model::NotFoundException';
}
public function __toString()
{
global $model__t_NotFoundException;
return IcePHP_stringifyException($this, $model__t_NotFoundException);
}
public $reason;
}
global $IcePHP__t_string;
$model__t_NotFoundException = IcePHP_defineException('::model::NotFoundException', '\\model\\NotFoundException', false, null, array(
array('reason', $IcePHP__t_string, false, 0)));
}
namespace model
{
global $model__t_DuplicateDataException;
class DuplicateDataException extends \Ice\UserException
{
public function __construct($reason="information already exist on the system's database")
{
$this->reason = $reason;
}
public function ice_id()
{
return '::model::DuplicateDataException';
}
public function __toString()
{
global $model__t_DuplicateDataException;
return IcePHP_stringifyException($this, $model__t_DuplicateDataException);
}
public $reason;
}
global $IcePHP__t_string;
$model__t_DuplicateDataException = IcePHP_defineException('::model::DuplicateDataException', '\\model\\DuplicateDataException', false, null, array(
array('reason', $IcePHP__t_string, false, 0)));
}
namespace model
{
global $model__t_NotAuthorizedException;
class NotAuthorizedException extends \Ice\UserException
{
public function __construct($reason="the operation can't be authorized", $location=\model\Location::OUT)
{
$this->reason = $reason;
$this->location = $location;
}
public function ice_id()
{
return '::model::NotAuthorizedException';
}
public function __toString()
{
global $model__t_NotAuthorizedException;
return IcePHP_stringifyException($this, $model__t_NotAuthorizedException);
}
public $reason;
public $location;
}
global $IcePHP__t_string;
global $model__t_Location;
$model__t_NotAuthorizedException = IcePHP_defineException('::model::NotAuthorizedException', '\\model\\NotAuthorizedException', false, null, array(
array('reason', $IcePHP__t_string, false, 0),
array('location', $model__t_Location, false, 0)));
}
namespace model
{
global $model__t_ServerException;
class ServerException extends \Ice\UserException
{
public function __construct($reason="internal error server doesn't connect to database ")
{
$this->reason = $reason;
}
public function ice_id()
{
return '::model::ServerException';
}
public function __toString()
{
global $model__t_ServerException;
return IcePHP_stringifyException($this, $model__t_ServerException);
}
public $reason;
}
global $IcePHP__t_string;
$model__t_ServerException = IcePHP_defineException('::model::ServerException', '\\model\\ServerException', false, null, array(
array('reason', $IcePHP__t_string, false, 0)));
}
namespace model
{
global $model__t_Contratos;
global $model__t_ContratosPrx;
class ContratosPrxHelper
{
public static function checkedCast($proxy, $facetOrContext=null, $context=null)
{
return $proxy->ice_checkedCast('::model::Contratos', $facetOrContext, $context);
}
public static function uncheckedCast($proxy, $facet=null)
{
return $proxy->ice_uncheckedCast('::model::Contratos', $facet);
}
public static function ice_staticId()
{
return '::model::Contratos';
}
}
$model__t_Contratos = IcePHP_defineClass('::model::Contratos', '\\model\\Contratos', -1, false, true, null, null);
global $Ice__t_ObjectPrx;
$model__t_ContratosPrx = IcePHP_defineProxy('::model::Contratos', $Ice__t_ObjectPrx, null);
global $IcePHP__t_string;
global $model__t_Porteria;
global $model__t_Acceso;
global $model__t_Vehiculos;
global $model__t_Personas;
IcePHP_defineOperation($model__t_ContratosPrx, 'autorizarVehiculo', 0, 0, 0, array(array($IcePHP__t_string), array($model__t_Porteria)), null, array($model__t_Acceso), array($model__t_ServerException));
IcePHP_defineOperation($model__t_ContratosPrx, 'obtenerVehiculos', 0, 0, 0, null, null, array($model__t_Vehiculos), array($model__t_ServerException));
IcePHP_defineOperation($model__t_ContratosPrx, 'obtenerPersonas', 0, 0, 0, null, null, array($model__t_Personas), array($model__t_ServerException));
}
namespace model
{
global $model__t_TheSystem;
global $model__t_TheSystemPrx;
class TheSystemPrxHelper
{
public static function checkedCast($proxy, $facetOrContext=null, $context=null)
{
return $proxy->ice_checkedCast('::model::TheSystem', $facetOrContext, $context);
}
public static function uncheckedCast($proxy, $facet=null)
{
return $proxy->ice_uncheckedCast('::model::TheSystem', $facet);
}
public static function ice_staticId()
{
return '::model::TheSystem';
}
}
$model__t_TheSystem = IcePHP_defineClass('::model::TheSystem', '\\model\\TheSystem', -1, false, true, null, null);
global $Ice__t_ObjectPrx;
$model__t_TheSystemPrx = IcePHP_defineProxy('::model::TheSystem', $Ice__t_ObjectPrx, null);
global $model__t_Persona;
global $IcePHP__t_string;
global $model__t_Vehiculo;
global $IcePHP__t_long;
global $model__t_Accesos;
global $model__t_Personas;
global $model__t_Vehiculos;
IcePHP_defineOperation($model__t_TheSystemPrx, 'registrarPersona', 0, 0, 0, array(array($model__t_Persona)), null, array($model__t_Persona), array($model__t_DuplicateDataException, $model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'eliminarPersona', 0, 0, 0, array(array($IcePHP__t_string)), null, array($model__t_Persona), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'editarPersona', 0, 0, 0, array(array($model__t_Persona)), null, array($model__t_Persona), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'registrarVehiculo', 0, 0, 0, array(array($model__t_Vehiculo)), null, array($model__t_Vehiculo), array($model__t_DuplicateDataException, $model__t_RunRelationNotFoundException, $model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'eliminarVehiculo', 0, 0, 0, array(array($IcePHP__t_string)), null, array($model__t_Vehiculo), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'editarVehiculo', 0, 0, 0, array(array($model__t_Vehiculo)), null, array($model__t_Vehiculo), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'getDelay', 0, 0, 0, array(array($IcePHP__t_long)), null, array($IcePHP__t_long), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'getPersona', 0, 0, 0, array(array($IcePHP__t_string)), null, array($model__t_Persona), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'getVehiculo', 0, 0, 0, array(array($IcePHP__t_string)), null, array($model__t_Vehiculo), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'getAllAccess', 0, 0, 0, null, null, array($model__t_Accesos), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'getAllPersonas', 0, 0, 0, null, null, array($model__t_Personas), array($model__t_ServerException));
IcePHP_defineOperation($model__t_TheSystemPrx, 'getAllVehiculos', 0, 0, 0, null, null, array($model__t_Vehiculos), array($model__t_ServerException));
}
?>