- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
do {
if ( array_key_exists( 'smd', $_GET ) ) {
$this->response[] = $this->getServiceMap();
$this->hasCalls = TRUE;
break;
}
$error = $this->getRequest();
if ( $error ) {
$this->response[] = $this->getError( $error );
$this->hasCalls = TRUE;
break;
}
foreach( $this->calls as $call ) {
$error = $this->validateCall( $call );
if ( $error ) {
$this->response[] = $this->getError( $error[0], $error[1], $error[2] );
$this->hasCalls = TRUE;
} else {
$result = $this->processCall( $call );
if ( $result ) {
$this->response[] = $result;
$this->hasCalls = TRUE;
}
}
}
} while(FALSE);