client_service.php
935 Bytes
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
<?php
class client_service{
public $Response;
public $KT;
public $Request;
public $AuthInfo;
public function __construct(&$ResponseObject,&$KT_Instance,&$Request,&$AuthInfo){
// set the response object
// if(get_class($ResponseObject)=='jsonResponseObject'){
// $this->Response=&$ResponseObject;
// }else{
// $this->Response=new jsonResponseObject();
// }
$this->Response=&$ResponseObject;
$this->KT=&$KT_Instance;
$this->AuthInfo=&$AuthInfo;
$this->Request=&$Request;
}
protected function addResponse($name,$value){
$this->Response->setData($name,$value);
}
protected function addDebug($name,$value){
$this->Response->setDebug($name,$value);
}
protected function setResponse($value){
$this->Response->overwriteData($value);
}
protected function addError($message,$code){
$this->Response->addError($message,$code);
}
protected function xlate($var=NULL){
return $var;
}
}
?>