@@ -64,10 +64,10 @@ discard block |
||
64 | 64 | * @return string URL |
65 | 65 | * @see parseUrl |
66 | 66 | */ |
67 | - public function constructUrl($serviceID,$serviceParam,$getItems,$encodeAmpersand,$encodeGetItems) |
|
67 | + public function constructUrl($serviceID, $serviceParam, $getItems, $encodeAmpersand, $encodeGetItems) |
|
68 | 68 | { |
69 | 69 | $url=$serviceID.'='.urlencode($serviceParam); |
70 | - $amp=$encodeAmpersand?'&':'&'; |
|
70 | + $amp=$encodeAmpersand ? '&' : '&'; |
|
71 | 71 | $request=$this->getRequest(); |
72 | 72 | if(is_array($getItems) || $getItems instanceof Traversable) |
73 | 73 | { |
@@ -103,9 +103,9 @@ discard block |
||
103 | 103 | switch($request->getUrlFormat()) |
104 | 104 | { |
105 | 105 | case THttpRequestUrlFormat::Path: |
106 | - return $request->getApplicationUrl().'/'.strtr($url,array($amp=>'/','?'=>'/','='=>$request->getUrlParamSeparator())); |
|
106 | + return $request->getApplicationUrl().'/'.strtr($url, array($amp=>'/', '?'=>'/', '='=>$request->getUrlParamSeparator())); |
|
107 | 107 | case THttpRequestUrlFormat::HiddenPath: |
108 | - return rtrim(dirname($request->getApplicationUrl()), '/').'/'.strtr($url,array($amp=>'/','?'=>'/','='=>$request->getUrlParamSeparator())); |
|
108 | + return rtrim(dirname($request->getApplicationUrl()), '/').'/'.strtr($url, array($amp=>'/', '?'=>'/', '='=>$request->getUrlParamSeparator())); |
|
109 | 109 | default: |
110 | 110 | return $request->getApplicationUrl().'?'.$url; |
111 | 111 | } |
@@ -127,24 +127,24 @@ discard block |
||
127 | 127 | public function parseUrl() |
128 | 128 | { |
129 | 129 | $request=$this->getRequest(); |
130 | - $pathInfo=trim($request->getPathInfo(),'/'); |
|
130 | + $pathInfo=trim($request->getPathInfo(), '/'); |
|
131 | 131 | if(($request->getUrlFormat()===THttpRequestUrlFormat::Path || |
132 | 132 | $request->getUrlFormat()===THttpRequestUrlFormat::HiddenPath) && |
133 | 133 | $pathInfo!=='') |
134 | 134 | { |
135 | 135 | $separator=$request->getUrlParamSeparator(); |
136 | - $paths=explode('/',$pathInfo); |
|
136 | + $paths=explode('/', $pathInfo); |
|
137 | 137 | $getVariables=array(); |
138 | 138 | foreach($paths as $path) |
139 | 139 | { |
140 | 140 | if(($path=trim($path))!=='') |
141 | 141 | { |
142 | - if(($pos=strpos($path,$separator))!==false) |
|
142 | + if(($pos=strpos($path, $separator))!==false) |
|
143 | 143 | { |
144 | - $name=substr($path,0,$pos); |
|
145 | - $value=substr($path,$pos+1); |
|
146 | - if(($pos=strpos($name,'[]'))!==false) |
|
147 | - $getVariables[substr($name,0,$pos)][]=$value; |
|
144 | + $name=substr($path, 0, $pos); |
|
145 | + $value=substr($path, $pos + 1); |
|
146 | + if(($pos=strpos($name, '[]'))!==false) |
|
147 | + $getVariables[substr($name, 0, $pos)][]=$value; |
|
148 | 148 | else |
149 | 149 | $getVariables[$name]=$value; |
150 | 150 | } |
@@ -80,12 +80,10 @@ discard block |
||
80 | 80 | $name=urlencode($name.'[]'); |
81 | 81 | foreach($value as $v) |
82 | 82 | $url.=$amp.$name.'='.urlencode($v); |
83 | - } |
|
84 | - else |
|
83 | + } else |
|
85 | 84 | $url.=$amp.urlencode($name).'='.urlencode($value); |
86 | 85 | } |
87 | - } |
|
88 | - else |
|
86 | + } else |
|
89 | 87 | { |
90 | 88 | foreach($getItems as $name=>$value) |
91 | 89 | { |
@@ -93,8 +91,7 @@ discard block |
||
93 | 91 | { |
94 | 92 | foreach($value as $v) |
95 | 93 | $url.=$amp.$name.'[]='.$v; |
96 | - } |
|
97 | - else |
|
94 | + } else |
|
98 | 95 | $url.=$amp.$name.'='.$value; |
99 | 96 | } |
100 | 97 | } |
@@ -147,14 +144,12 @@ discard block |
||
147 | 144 | $getVariables[substr($name,0,$pos)][]=$value; |
148 | 145 | else |
149 | 146 | $getVariables[$name]=$value; |
150 | - } |
|
151 | - else |
|
147 | + } else |
|
152 | 148 | $getVariables[$path]=''; |
153 | 149 | } |
154 | 150 | } |
155 | 151 | return $getVariables; |
156 | - } |
|
157 | - else |
|
152 | + } else |
|
158 | 153 | return array(); |
159 | 154 | } |
160 | 155 | } |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | $status=TPropertyValue::ensureInteger($status); |
282 | 282 | if(isset(self::$HTTP_STATUS_CODES[$status])) { |
283 | 283 | $this->_reason=self::$HTTP_STATUS_CODES[$status]; |
284 | - }else{ |
|
284 | + } else{ |
|
285 | 285 | if($reason===null || $reason==='') { |
286 | 286 | throw new TInvalidDataValueException("response_status_reason_missing"); |
287 | 287 | } |
@@ -377,8 +377,7 @@ discard block |
||
377 | 377 | { |
378 | 378 | foreach($headers as $h) |
379 | 379 | header($h); |
380 | - } |
|
381 | - else |
|
380 | + } else |
|
382 | 381 | { |
383 | 382 | header('Pragma: public'); |
384 | 383 | header('Expires: 0'); |
@@ -488,13 +487,11 @@ discard block |
||
488 | 487 | { |
489 | 488 | $this->_bufferOutput = false; |
490 | 489 | ob_end_flush(); |
491 | - } |
|
492 | - else |
|
490 | + } else |
|
493 | 491 | ob_flush(); |
494 | 492 | flush(); |
495 | 493 | } |
496 | - } |
|
497 | - else |
|
494 | + } else |
|
498 | 495 | flush(); |
499 | 496 | } |
500 | 497 | |
@@ -645,8 +642,7 @@ discard block |
||
645 | 642 | $cookie->getSecure(), |
646 | 643 | $cookie->getHttpOnly() |
647 | 644 | ); |
648 | - } |
|
649 | - else { |
|
645 | + } else { |
|
650 | 646 | setcookie( |
651 | 647 | $cookie->getName(), |
652 | 648 | $cookie->getValue(), |
@@ -232,6 +232,7 @@ discard block |
||
232 | 232 | |
233 | 233 | /** |
234 | 234 | * @param string|boolean output charset. |
235 | + * @param string $charset |
|
235 | 236 | */ |
236 | 237 | public function setCharset($charset) |
237 | 238 | { |
@@ -604,6 +605,7 @@ discard block |
||
604 | 605 | * Sends a header. |
605 | 606 | * @param string header |
606 | 607 | * @param boolean whether the header should replace a previous similar header, or add a second header of the same type |
608 | + * @param string $value |
|
607 | 609 | */ |
608 | 610 | public function appendHeader($value, $replace=true) |
609 | 611 | { |
@@ -629,6 +631,7 @@ discard block |
||
629 | 631 | * Sends a cookie. |
630 | 632 | * Do not call this method directly. Operate with the result of {@link getCookies} instead. |
631 | 633 | * @param THttpCookie cook to be sent |
634 | + * @param THttpCookie $cookie |
|
632 | 635 | */ |
633 | 636 | public function addCookie($cookie) |
634 | 637 | { |
@@ -713,6 +716,7 @@ discard block |
||
713 | 716 | * This method is used internally. Please use {@link createHtmlWriter} instead. |
714 | 717 | * @param string type of HTML writer to be created. |
715 | 718 | * @param ITextWriter text writer holding the contents. |
719 | + * @param THttpResponse $writer |
|
716 | 720 | */ |
717 | 721 | public function createNewHtmlWriter($type, $writer) |
718 | 722 | { |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | */ |
65 | 65 | class THttpResponse extends TModule implements ITextWriter |
66 | 66 | { |
67 | - const DEFAULT_CONTENTTYPE = 'text/html'; |
|
68 | - const DEFAULT_CHARSET = 'UTF-8'; |
|
67 | + const DEFAULT_CONTENTTYPE='text/html'; |
|
68 | + const DEFAULT_CHARSET='UTF-8'; |
|
69 | 69 | |
70 | 70 | /** |
71 | 71 | * @var The differents defined status code by RFC 2616 {@link http://www.faqs.org/rfcs/rfc2616} |
72 | 72 | */ |
73 | - private static $HTTP_STATUS_CODES = array( |
|
73 | + private static $HTTP_STATUS_CODES=array( |
|
74 | 74 | 100 => 'Continue', 101 => 'Switching Protocols', |
75 | 75 | 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', |
76 | 76 | 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 307 => 'Temporary Redirect', |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | */ |
202 | 202 | public function setCacheControl($value) |
203 | 203 | { |
204 | - session_cache_limiter(TPropertyValue::ensureEnum($value,array('none','nocache','private','private_no_expire','public'))); |
|
204 | + session_cache_limiter(TPropertyValue::ensureEnum($value, array('none', 'nocache', 'private', 'private_no_expire', 'public'))); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | /** |
@@ -209,9 +209,9 @@ discard block |
||
209 | 209 | */ |
210 | 210 | public function setContentType($type) |
211 | 211 | { |
212 | - if ($this->_contentTypeHeaderSent) |
|
212 | + if($this->_contentTypeHeaderSent) |
|
213 | 213 | throw new Exception('Unable to alter content-type as it has been already sent'); |
214 | - $this->_contentType = $type; |
|
214 | + $this->_contentType=$type; |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | /** |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | */ |
236 | 236 | public function setCharset($charset) |
237 | 237 | { |
238 | - $this->_charset = (strToLower($charset) === 'false') ? false : (string)$charset; |
|
238 | + $this->_charset=(strToLower($charset)==='false') ? false : (string) $charset; |
|
239 | 239 | } |
240 | 240 | |
241 | 241 | /** |
@@ -276,12 +276,12 @@ discard block |
||
276 | 276 | */ |
277 | 277 | public function setStatusCode($status, $reason=null) |
278 | 278 | { |
279 | - if ($this->_httpHeaderSent) |
|
279 | + if($this->_httpHeaderSent) |
|
280 | 280 | throw new Exception('Unable to alter response as HTTP header already sent'); |
281 | 281 | $status=TPropertyValue::ensureInteger($status); |
282 | 282 | if(isset(self::$HTTP_STATUS_CODES[$status])) { |
283 | 283 | $this->_reason=self::$HTTP_STATUS_CODES[$status]; |
284 | - }else{ |
|
284 | + } else { |
|
285 | 285 | if($reason===null || $reason==='') { |
286 | 286 | throw new TInvalidDataValueException("response_status_reason_missing"); |
287 | 287 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | public function write($str) |
320 | 320 | { |
321 | 321 | // when starting output make sure we send the headers first |
322 | - if (!$this->_bufferOutput and !$this->_httpHeaderSent) |
|
322 | + if(!$this->_bufferOutput and !$this->_httpHeaderSent) |
|
323 | 323 | $this->ensureHeadersSent(); |
324 | 324 | echo $str; |
325 | 325 | } |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | * @param integer size of file or content in bytes if already known. Defaults to 'null' means auto-detect. |
337 | 337 | * @throws TInvalidDataValueException if the file cannot be found |
338 | 338 | */ |
339 | - public function writeFile($fileName,$content=null,$mimeType=null,$headers=null,$forceDownload=true,$clientFileName=null,$fileSize=null) |
|
339 | + public function writeFile($fileName, $content=null, $mimeType=null, $headers=null, $forceDownload=true, $clientFileName=null, $fileSize=null) |
|
340 | 340 | { |
341 | 341 | static $defaultMimeTypes=array( |
342 | 342 | 'css'=>'text/css', |
@@ -356,9 +356,9 @@ discard block |
||
356 | 356 | $mimeType='text/plain'; |
357 | 357 | if(function_exists('mime_content_type')) |
358 | 358 | $mimeType=mime_content_type($fileName); |
359 | - else if(($ext=strrchr($fileName,'.'))!==false) |
|
359 | + else if(($ext=strrchr($fileName, '.'))!==false) |
|
360 | 360 | { |
361 | - $ext=substr($ext,1); |
|
361 | + $ext=substr($ext, 1); |
|
362 | 362 | if(isset($defaultMimeTypes[$ext])) |
363 | 363 | $mimeType=$defaultMimeTypes[$ext]; |
364 | 364 | } |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | $clientFileName=basename($clientFileName); |
371 | 371 | |
372 | 372 | if($fileSize===null || $fileSize < 0) |
373 | - $fileSize = ($content===null?filesize($fileName):strlen($content)); |
|
373 | + $fileSize=($content===null ? filesize($fileName) : strlen($content)); |
|
374 | 374 | |
375 | 375 | $this->sendHttpHeader(); |
376 | 376 | if(is_array($headers)) |
@@ -384,11 +384,11 @@ discard block |
||
384 | 384 | header('Expires: 0'); |
385 | 385 | header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); |
386 | 386 | header("Content-Type: $mimeType"); |
387 | - $this->_contentTypeHeaderSent = true; |
|
387 | + $this->_contentTypeHeaderSent=true; |
|
388 | 388 | } |
389 | 389 | |
390 | 390 | header('Content-Length: '.$fileSize); |
391 | - header("Content-Disposition: " . ($forceDownload ? 'attachment' : 'inline') . "; filename=\"$clientFileName\""); |
|
391 | + header("Content-Disposition: ".($forceDownload ? 'attachment' : 'inline')."; filename=\"$clientFileName\""); |
|
392 | 392 | header('Content-Transfer-Encoding: binary'); |
393 | 393 | if($content===null) |
394 | 394 | readfile($fileName); |
@@ -428,25 +428,25 @@ discard block |
||
428 | 428 | |
429 | 429 | // Under IIS, explicitly send an HTTP response including the status code |
430 | 430 | // this is handled automatically by PHP on Apache and others |
431 | - $isIIS = (stripos($this->getRequest()->getServerSoftware(), "microsoft-iis") !== false); |
|
431 | + $isIIS=(stripos($this->getRequest()->getServerSoftware(), "microsoft-iis")!==false); |
|
432 | 432 | if($url[0]==='/') |
433 | 433 | $url=$this->getRequest()->getBaseUrl().$url; |
434 | - if ($this->_status >= 300 && $this->_status < 400) |
|
434 | + if($this->_status >= 300 && $this->_status < 400) |
|
435 | 435 | { |
436 | 436 | // The status code has been modified to a valid redirection status, send it |
437 | 437 | if($isIIS) |
438 | 438 | { |
439 | - header('HTTP/1.1 ' . $this->_status . ' ' . self::$HTTP_STATUS_CODES[ |
|
439 | + header('HTTP/1.1 '.$this->_status.' '.self::$HTTP_STATUS_CODES[ |
|
440 | 440 | array_key_exists($this->_status, self::$HTTP_STATUS_CODES) |
441 | 441 | ? $this->_status |
442 | 442 | : 302 |
443 | 443 | ]); |
444 | 444 | } |
445 | - header('Location: '.str_replace('&','&',$url), true, $this->_status); |
|
445 | + header('Location: '.str_replace('&', '&', $url), true, $this->_status); |
|
446 | 446 | } else { |
447 | 447 | if($isIIS) |
448 | 448 | header('HTTP/1.1 302 '.self::$HTTP_STATUS_CODES[302]); |
449 | - header('Location: '.str_replace('&','&',$url)); |
|
449 | + header('Location: '.str_replace('&', '&', $url)); |
|
450 | 450 | } |
451 | 451 | |
452 | 452 | if(!$this->getApplication()->getRequestCompleted()) |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | /** |
469 | 469 | * Flush the response contents and headers. |
470 | 470 | */ |
471 | - public function flush($continueBuffering = true) |
|
471 | + public function flush($continueBuffering=true) |
|
472 | 472 | { |
473 | 473 | if($this->getHasAdapter()) |
474 | 474 | $this->_adapter->flushContent($continueBuffering); |
@@ -490,18 +490,18 @@ discard block |
||
490 | 490 | * This method is used internally. Please use {@link flush} instead. |
491 | 491 | * @param boolean whether to continue buffering after flush if buffering was active |
492 | 492 | */ |
493 | - public function flushContent($continueBuffering = true) |
|
493 | + public function flushContent($continueBuffering=true) |
|
494 | 494 | { |
495 | - Prado::trace("Flushing output",'System.Web.THttpResponse'); |
|
495 | + Prado::trace("Flushing output", 'System.Web.THttpResponse'); |
|
496 | 496 | $this->ensureHeadersSent(); |
497 | 497 | if($this->_bufferOutput) |
498 | 498 | { |
499 | 499 | // avoid forced send of http headers (ob_flush() does that) if there's no output yet |
500 | - if (ob_get_length()>0) |
|
500 | + if(ob_get_length() > 0) |
|
501 | 501 | { |
502 | - if (!$continueBuffering) |
|
502 | + if(!$continueBuffering) |
|
503 | 503 | { |
504 | - $this->_bufferOutput = false; |
|
504 | + $this->_bufferOutput=false; |
|
505 | 505 | ob_end_flush(); |
506 | 506 | } |
507 | 507 | else |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | */ |
519 | 519 | protected function ensureHttpHeaderSent() |
520 | 520 | { |
521 | - if (!$this->_httpHeaderSent) |
|
521 | + if(!$this->_httpHeaderSent) |
|
522 | 522 | $this->sendHttpHeader(); |
523 | 523 | } |
524 | 524 | |
@@ -528,15 +528,15 @@ discard block |
||
528 | 528 | protected function sendHttpHeader() |
529 | 529 | { |
530 | 530 | $protocol=$this->getRequest()->getHttpProtocolVersion(); |
531 | - if($this->getRequest()->getHttpProtocolVersion() === null) |
|
531 | + if($this->getRequest()->getHttpProtocolVersion()===null) |
|
532 | 532 | $protocol='HTTP/1.1'; |
533 | 533 | |
534 | - $phpSapiName = substr(php_sapi_name(), 0, 3); |
|
535 | - $cgi = $phpSapiName == 'cgi' || $phpSapiName == 'fpm'; |
|
534 | + $phpSapiName=substr(php_sapi_name(), 0, 3); |
|
535 | + $cgi=$phpSapiName=='cgi' || $phpSapiName=='fpm'; |
|
536 | 536 | |
537 | 537 | header(($cgi ? 'Status:' : $protocol).' '.$this->_status.' '.$this->_reason, true, TPropertyValue::ensureInteger($this->_status)); |
538 | 538 | |
539 | - $this->_httpHeaderSent = true; |
|
539 | + $this->_httpHeaderSent=true; |
|
540 | 540 | } |
541 | 541 | |
542 | 542 | /** |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | */ |
545 | 545 | protected function ensureContentTypeHeaderSent() |
546 | 546 | { |
547 | - if (!$this->_contentTypeHeaderSent) |
|
547 | + if(!$this->_contentTypeHeaderSent) |
|
548 | 548 | $this->sendContentTypeHeader(); |
549 | 549 | } |
550 | 550 | |
@@ -553,9 +553,9 @@ discard block |
||
553 | 553 | */ |
554 | 554 | protected function sendContentTypeHeader() |
555 | 555 | { |
556 | - $contentType=$this->_contentType===null?self::DEFAULT_CONTENTTYPE:$this->_contentType; |
|
556 | + $contentType=$this->_contentType===null ? self::DEFAULT_CONTENTTYPE : $this->_contentType; |
|
557 | 557 | $charset=$this->getCharset(); |
558 | - if($charset === false) { |
|
558 | + if($charset===false) { |
|
559 | 559 | $this->appendHeader('Content-Type: '.$contentType); |
560 | 560 | return; |
561 | 561 | } |
@@ -563,10 +563,10 @@ discard block |
||
563 | 563 | if($charset==='' && ($globalization=$this->getApplication()->getGlobalization(false))!==null) |
564 | 564 | $charset=$globalization->getCharset(); |
565 | 565 | |
566 | - if($charset==='') $charset = self::DEFAULT_CHARSET; |
|
566 | + if($charset==='') $charset=self::DEFAULT_CHARSET; |
|
567 | 567 | $this->appendHeader('Content-Type: '.$contentType.';charset='.$charset); |
568 | 568 | |
569 | - $this->_contentTypeHeaderSent = true; |
|
569 | + $this->_contentTypeHeaderSent=true; |
|
570 | 570 | } |
571 | 571 | |
572 | 572 | /** |
@@ -577,8 +577,8 @@ discard block |
||
577 | 577 | */ |
578 | 578 | public function getContents() |
579 | 579 | { |
580 | - Prado::trace("Retrieving output",'System.Web.THttpResponse'); |
|
581 | - return $this->_bufferOutput?ob_get_contents():''; |
|
580 | + Prado::trace("Retrieving output", 'System.Web.THttpResponse'); |
|
581 | + return $this->_bufferOutput ? ob_get_contents() : ''; |
|
582 | 582 | } |
583 | 583 | |
584 | 584 | /** |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | { |
589 | 589 | if($this->_bufferOutput) |
590 | 590 | ob_clean(); |
591 | - Prado::trace("Clearing output",'System.Web.THttpResponse'); |
|
591 | + Prado::trace("Clearing output", 'System.Web.THttpResponse'); |
|
592 | 592 | } |
593 | 593 | |
594 | 594 | /** |
@@ -597,19 +597,19 @@ discard block |
||
597 | 597 | */ |
598 | 598 | public function getHeaders($case=null) |
599 | 599 | { |
600 | - $result = array(); |
|
601 | - $headers = headers_list(); |
|
600 | + $result=array(); |
|
601 | + $headers=headers_list(); |
|
602 | 602 | foreach($headers as $header) { |
603 | - $tmp = explode(':', $header); |
|
604 | - $key = trim(array_shift($tmp)); |
|
605 | - $value = trim(implode(':', $tmp)); |
|
603 | + $tmp=explode(':', $header); |
|
604 | + $key=trim(array_shift($tmp)); |
|
605 | + $value=trim(implode(':', $tmp)); |
|
606 | 606 | if(isset($result[$key])) |
607 | - $result[$key] .= ', ' . $value; |
|
607 | + $result[$key].=', '.$value; |
|
608 | 608 | else |
609 | - $result[$key] = $value; |
|
609 | + $result[$key]=$value; |
|
610 | 610 | } |
611 | 611 | |
612 | - if($case !== null) |
|
612 | + if($case!==null) |
|
613 | 613 | return array_change_key_case($result, $case); |
614 | 614 | |
615 | 615 | return $result; |
@@ -622,7 +622,7 @@ discard block |
||
622 | 622 | */ |
623 | 623 | public function appendHeader($value, $replace=true) |
624 | 624 | { |
625 | - Prado::trace("Sending header '$value'",'System.Web.THttpResponse'); |
|
625 | + Prado::trace("Sending header '$value'", 'System.Web.THttpResponse'); |
|
626 | 626 | header($value, $replace); |
627 | 627 | } |
628 | 628 | |
@@ -635,9 +635,9 @@ discard block |
||
635 | 635 | * @param string The extra headers. It's used when the message parameter is set to 1. This message type uses the same internal function as mail() does. |
636 | 636 | * @see http://us2.php.net/manual/en/function.error-log.php |
637 | 637 | */ |
638 | - public function appendLog($message,$messageType=0,$destination='',$extraHeaders='') |
|
638 | + public function appendLog($message, $messageType=0, $destination='', $extraHeaders='') |
|
639 | 639 | { |
640 | - error_log($message,$messageType,$destination,$extraHeaders); |
|
640 | + error_log($message, $messageType, $destination, $extraHeaders); |
|
641 | 641 | } |
642 | 642 | |
643 | 643 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $this->loadConfig($dom); |
121 | 121 | } |
122 | 122 | else |
123 | - throw new TConfigurationException('soapservice_configfile_invalid',$this->_configFile); |
|
123 | + throw new TConfigurationException('soapservice_configfile_invalid', $this->_configFile); |
|
124 | 124 | } |
125 | 125 | $this->loadConfig($config); |
126 | 126 | |
@@ -137,16 +137,16 @@ discard block |
||
137 | 137 | protected function resolveRequest() |
138 | 138 | { |
139 | 139 | $serverID=$this->getRequest()->getServiceParameter(); |
140 | - if(($pos=strrpos($serverID,'.wsdl'))===strlen($serverID)-5) |
|
140 | + if(($pos=strrpos($serverID, '.wsdl'))===strlen($serverID) - 5) |
|
141 | 141 | { |
142 | - $serverID=substr($serverID,0,$pos); |
|
142 | + $serverID=substr($serverID, 0, $pos); |
|
143 | 143 | $this->_wsdlRequest=true; |
144 | 144 | } |
145 | 145 | else |
146 | 146 | $this->_wsdlRequest=false; |
147 | 147 | $this->_serverID=$serverID; |
148 | 148 | if(!isset($this->_servers[$serverID])) |
149 | - throw new THttpException(400,'soapservice_request_invalid',$serverID); |
|
149 | + throw new THttpException(400, 'soapservice_request_invalid', $serverID); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
@@ -162,9 +162,9 @@ discard block |
||
162 | 162 | { |
163 | 163 | foreach($config['soap'] as $id => $server) |
164 | 164 | { |
165 | - $properties = isset($server['properties'])?$server['properties']:array(); |
|
165 | + $properties=isset($server['properties']) ? $server['properties'] : array(); |
|
166 | 166 | if(isset($this->_servers[$id])) |
167 | - throw new TConfigurationException('soapservice_serverid_duplicated',$id); |
|
167 | + throw new TConfigurationException('soapservice_serverid_duplicated', $id); |
|
168 | 168 | $this->_servers[$id]=$properties; |
169 | 169 | } |
170 | 170 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | if(($id=$properties->remove('id'))===null) |
178 | 178 | throw new TConfigurationException('soapservice_serverid_required'); |
179 | 179 | if(isset($this->_servers[$id])) |
180 | - throw new TConfigurationException('soapservice_serverid_duplicated',$id); |
|
180 | + throw new TConfigurationException('soapservice_serverid_duplicated', $id); |
|
181 | 181 | $this->_servers[$id]=$properties; |
182 | 182 | } |
183 | 183 | } |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | */ |
199 | 199 | public function setConfigFile($value) |
200 | 200 | { |
201 | - if(($this->_configFile=Prado::getPathOfNamespace($value,Prado::getApplication()->getConfigurationFileExt()))===null) |
|
202 | - throw new TConfigurationException('soapservice_configfile_invalid',$value); |
|
201 | + if(($this->_configFile=Prado::getPathOfNamespace($value, Prado::getApplication()->getConfigurationFileExt()))===null) |
|
202 | + throw new TConfigurationException('soapservice_configfile_invalid', $value); |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
@@ -210,9 +210,9 @@ discard block |
||
210 | 210 | * @param boolean whether to encode the GET parameters (their names and values), defaults to true. |
211 | 211 | * @return string URL for the page and GET parameters |
212 | 212 | */ |
213 | - public function constructUrl($serverID,$getParams=null,$encodeAmpersand=true,$encodeGetItems=true) |
|
213 | + public function constructUrl($serverID, $getParams=null, $encodeAmpersand=true, $encodeGetItems=true) |
|
214 | 214 | { |
215 | - return $this->getRequest()->constructUrl($this->getID(),$serverID,$getParams,$encodeAmpersand,$encodeGetItems); |
|
215 | + return $this->getRequest()->constructUrl($this->getID(), $serverID, $getParams, $encodeAmpersand, $encodeGetItems); |
|
216 | 216 | } |
217 | 217 | |
218 | 218 | /** |
@@ -248,13 +248,13 @@ discard block |
||
248 | 248 | if($serverClass===null) |
249 | 249 | $serverClass=self::DEFAULT_SOAP_SERVER; |
250 | 250 | Prado::using($serverClass); |
251 | - $className=($pos=strrpos($serverClass,'.'))!==false?substr($serverClass,$pos+1):$serverClass; |
|
252 | - if($className!==self::DEFAULT_SOAP_SERVER && !is_subclass_of($className,self::DEFAULT_SOAP_SERVER)) |
|
253 | - throw new TConfigurationException('soapservice_server_invalid',$serverClass); |
|
251 | + $className=($pos=strrpos($serverClass, '.'))!==false ? substr($serverClass, $pos + 1) : $serverClass; |
|
252 | + if($className!==self::DEFAULT_SOAP_SERVER && !is_subclass_of($className, self::DEFAULT_SOAP_SERVER)) |
|
253 | + throw new TConfigurationException('soapservice_server_invalid', $serverClass); |
|
254 | 254 | $server=new $className; |
255 | 255 | $server->setID($this->_serverID); |
256 | 256 | foreach($properties as $name=>$value) |
257 | - $server->setSubproperty($name,$value); |
|
257 | + $server->setSubproperty($name, $value); |
|
258 | 258 | return $server; |
259 | 259 | } |
260 | 260 | |
@@ -266,21 +266,21 @@ discard block |
||
266 | 266 | */ |
267 | 267 | public function run() |
268 | 268 | { |
269 | - Prado::trace("Running SOAP service",'System.Web.Services.TSoapService'); |
|
269 | + Prado::trace("Running SOAP service", 'System.Web.Services.TSoapService'); |
|
270 | 270 | $server=$this->createServer(); |
271 | 271 | $this->getResponse()->setContentType('text/xml'); |
272 | 272 | $this->getResponse()->setCharset($server->getEncoding()); |
273 | 273 | if($this->getIsWsdlRequest()) |
274 | 274 | { |
275 | 275 | // server WSDL file |
276 | - Prado::trace("Generating WSDL",'System.Web.Services.TSoapService'); |
|
276 | + Prado::trace("Generating WSDL", 'System.Web.Services.TSoapService'); |
|
277 | 277 | $this->getResponse()->clear(); |
278 | 278 | $this->getResponse()->write($server->getWsdl()); |
279 | 279 | } |
280 | 280 | else |
281 | 281 | { |
282 | 282 | // provide SOAP service |
283 | - Prado::trace("Handling SOAP request",'System.Web.Services.TSoapService'); |
|
283 | + Prado::trace("Handling SOAP request", 'System.Web.Services.TSoapService'); |
|
284 | 284 | $server->run(); |
285 | 285 | } |
286 | 286 | } |
@@ -331,8 +331,8 @@ discard block |
||
331 | 331 | */ |
332 | 332 | public function setID($id) |
333 | 333 | { |
334 | - if(strrpos($this->_id,'.wsdl')===strlen($this->_id)-5) |
|
335 | - throw new TInvalidDataValueException('soapserver_id_invalid',$id); |
|
334 | + if(strrpos($this->_id, '.wsdl')===strlen($this->_id) - 5) |
|
335 | + throw new TInvalidDataValueException('soapserver_id_invalid', $id); |
|
336 | 336 | $this->_id=$id; |
337 | 337 | } |
338 | 338 | |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | if(($provider=$this->getProvider())!==null) |
345 | 345 | { |
346 | 346 | Prado::using($provider); |
347 | - $providerClass=($pos=strrpos($provider,'.'))!==false?substr($provider,$pos+1):$provider; |
|
347 | + $providerClass=($pos=strrpos($provider, '.'))!==false ? substr($provider, $pos + 1) : $provider; |
|
348 | 348 | $this->guessMethodCallRequested($providerClass); |
349 | 349 | $server=$this->createServer(); |
350 | 350 | $server->setClass($providerClass, $this); |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | { |
358 | 358 | $server->handle(); |
359 | 359 | } |
360 | - catch (Exception $e) |
|
360 | + catch(Exception $e) |
|
361 | 361 | { |
362 | 362 | if($this->getApplication()->getMode()===TApplicationMode::Debug) |
363 | 363 | $this->fault($e->getMessage(), $e->__toString()); |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | */ |
377 | 377 | public function fault($title, $details='', $code='SERVER', $actor='', $name='') |
378 | 378 | { |
379 | - Prado::trace('SOAP-Fault '.$code. ' '.$title.' : '.$details, 'System.Web.Services.TSoapService'); |
|
379 | + Prado::trace('SOAP-Fault '.$code.' '.$title.' : '.$details, 'System.Web.Services.TSoapService'); |
|
380 | 380 | $this->_server->fault($code, $title, $actor, $details, $name); |
381 | 381 | } |
382 | 382 | |
@@ -387,14 +387,14 @@ discard block |
||
387 | 387 | */ |
388 | 388 | protected function guessMethodCallRequested($class) |
389 | 389 | { |
390 | - $namespace = $class.'wsdl'; |
|
391 | - $message = file_get_contents("php://input"); |
|
392 | - $matches= array(); |
|
390 | + $namespace=$class.'wsdl'; |
|
391 | + $message=file_get_contents("php://input"); |
|
392 | + $matches=array(); |
|
393 | 393 | if(preg_match('/xmlns:([^=]+)="urn:'.$namespace.'"/', $message, $matches)) |
394 | 394 | { |
395 | 395 | if(preg_match('/<'.$matches[1].':([a-zA-Z_]+[a-zA-Z0-9_]+)/', $message, $method)) |
396 | 396 | { |
397 | - $this->_requestedMethod = $method[1]; |
|
397 | + $this->_requestedMethod=$method[1]; |
|
398 | 398 | } |
399 | 399 | } |
400 | 400 | } |
@@ -417,8 +417,8 @@ discard block |
||
417 | 417 | if($this->_server===null) |
418 | 418 | { |
419 | 419 | if($this->getApplication()->getMode()===TApplicationMode::Debug) |
420 | - ini_set("soap.wsdl_cache_enabled",0); |
|
421 | - $this->_server = new SoapServer($this->getWsdlUri(),$this->getOptions()); |
|
420 | + ini_set("soap.wsdl_cache_enabled", 0); |
|
421 | + $this->_server=new SoapServer($this->getWsdlUri(), $this->getOptions()); |
|
422 | 422 | } |
423 | 423 | return $this->_server; |
424 | 424 | } |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | if($this->_wsdlUri==='') |
460 | 460 | { |
461 | 461 | $provider=$this->getProvider(); |
462 | - $providerClass=($pos=strrpos($provider,'.'))!==false?substr($provider,$pos+1):$provider; |
|
462 | + $providerClass=($pos=strrpos($provider, '.'))!==false ? substr($provider, $pos + 1) : $provider; |
|
463 | 463 | Prado::using($provider); |
464 | 464 | if($this->getApplication()->getMode()===TApplicationMode::Performance && ($cache=$this->getApplication()->getCache())!==null) |
465 | 465 | { |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | return $wsdl; |
469 | 469 | Prado::using('System.3rdParty.WsdlGen.WsdlGenerator'); |
470 | 470 | $wsdl=WsdlGenerator::generate($providerClass, $this->getUri(), $this->getEncoding()); |
471 | - $cache->set(self::WSDL_CACHE_PREFIX.$providerClass,$wsdl); |
|
471 | + $cache->set(self::WSDL_CACHE_PREFIX.$providerClass, $wsdl); |
|
472 | 472 | return $wsdl; |
473 | 473 | } |
474 | 474 | else |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | public function getWsdlUri() |
488 | 488 | { |
489 | 489 | if($this->_wsdlUri==='') |
490 | - return $this->getRequest()->getBaseUrl().$this->getService()->constructUrl($this->getID().'.wsdl',false); |
|
490 | + return $this->getRequest()->getBaseUrl().$this->getService()->constructUrl($this->getID().'.wsdl', false); |
|
491 | 491 | else |
492 | 492 | return $this->_wsdlUri; |
493 | 493 | } |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | public function getUri() |
507 | 507 | { |
508 | 508 | if($this->_uri==='') |
509 | - return $this->getRequest()->getBaseUrl().$this->getService()->constructUrl($this->getID(),false); |
|
509 | + return $this->getRequest()->getBaseUrl().$this->getService()->constructUrl($this->getID(), false); |
|
510 | 510 | else |
511 | 511 | return $this->_uri; |
512 | 512 | } |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | if($value==='1.1' || $value==='1.2' || $value==='') |
553 | 553 | $this->_version=$value; |
554 | 554 | else |
555 | - throw new TInvalidDataValueException('soapserver_version_invalid',$value); |
|
555 | + throw new TInvalidDataValueException('soapserver_version_invalid', $value); |
|
556 | 556 | } |
557 | 557 | |
558 | 558 | /** |
@@ -616,7 +616,7 @@ discard block |
||
616 | 616 | */ |
617 | 617 | public function setClassMaps($classes) |
618 | 618 | { |
619 | - $this->_classMap = $classes; |
|
619 | + $this->_classMap=$classes; |
|
620 | 620 | } |
621 | 621 | } |
622 | 622 |
@@ -118,8 +118,7 @@ discard block |
||
118 | 118 | $dom=new TXmlDocument; |
119 | 119 | $dom->loadFromFile($this->_configFile); |
120 | 120 | $this->loadConfig($dom); |
121 | - } |
|
122 | - else |
|
121 | + } else |
|
123 | 122 | throw new TConfigurationException('soapservice_configfile_invalid',$this->_configFile); |
124 | 123 | } |
125 | 124 | $this->loadConfig($config); |
@@ -141,8 +140,7 @@ discard block |
||
141 | 140 | { |
142 | 141 | $serverID=substr($serverID,0,$pos); |
143 | 142 | $this->_wsdlRequest=true; |
144 | - } |
|
145 | - else |
|
143 | + } else |
|
146 | 144 | $this->_wsdlRequest=false; |
147 | 145 | $this->_serverID=$serverID; |
148 | 146 | if(!isset($this->_servers[$serverID])) |
@@ -168,8 +166,7 @@ discard block |
||
168 | 166 | $this->_servers[$id]=$properties; |
169 | 167 | } |
170 | 168 | } |
171 | - } |
|
172 | - else |
|
169 | + } else |
|
173 | 170 | { |
174 | 171 | foreach($config->getElementsByTagName('soap') as $serverXML) |
175 | 172 | { |
@@ -276,8 +273,7 @@ discard block |
||
276 | 273 | Prado::trace("Generating WSDL",'System.Web.Services.TSoapService'); |
277 | 274 | $this->getResponse()->clear(); |
278 | 275 | $this->getResponse()->write($server->getWsdl()); |
279 | - } |
|
280 | - else |
|
276 | + } else |
|
281 | 277 | { |
282 | 278 | // provide SOAP service |
283 | 279 | Prado::trace("Handling SOAP request",'System.Web.Services.TSoapService'); |
@@ -350,14 +346,12 @@ discard block |
||
350 | 346 | $server->setClass($providerClass, $this); |
351 | 347 | if($this->_persistent) |
352 | 348 | $server->setPersistence(SOAP_PERSISTENCE_SESSION); |
353 | - } |
|
354 | - else |
|
349 | + } else |
|
355 | 350 | $server=$this->createServer(); |
356 | 351 | try |
357 | 352 | { |
358 | 353 | $server->handle(); |
359 | - } |
|
360 | - catch (Exception $e) |
|
354 | + } catch (Exception $e) |
|
361 | 355 | { |
362 | 356 | if($this->getApplication()->getMode()===TApplicationMode::Debug) |
363 | 357 | $this->fault($e->getMessage(), $e->__toString()); |
@@ -470,14 +464,12 @@ discard block |
||
470 | 464 | $wsdl=WsdlGenerator::generate($providerClass, $this->getUri(), $this->getEncoding()); |
471 | 465 | $cache->set(self::WSDL_CACHE_PREFIX.$providerClass,$wsdl); |
472 | 466 | return $wsdl; |
473 | - } |
|
474 | - else |
|
467 | + } else |
|
475 | 468 | { |
476 | 469 | Prado::using('System.3rdParty.WsdlGen.WsdlGenerator'); |
477 | 470 | return WsdlGenerator::generate($providerClass, $this->getUri(), $this->getEncoding()); |
478 | 471 | } |
479 | - } |
|
480 | - else |
|
472 | + } else |
|
481 | 473 | return file_get_contents($this->_wsdlUri); |
482 | 474 | } |
483 | 475 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function setDecayRate($value) |
81 | 81 | { |
82 | - $decay = TPropertyValue::ensureFloat($value); |
|
82 | + $decay=TPropertyValue::ensureFloat($value); |
|
83 | 83 | if($decay < 0) |
84 | 84 | throw new TConfigurationException('callback_decay_be_not_negative', $this->getID()); |
85 | 85 | $this->setViewState('Decay', $decay); |
@@ -90,10 +90,10 @@ discard block |
||
90 | 90 | */ |
91 | 91 | protected function getTriggerOptions() |
92 | 92 | { |
93 | - $options = parent::getTriggerOptions(); |
|
94 | - $options['PropertyName'] = $this->getPropertyName(); |
|
95 | - $options['Interval'] = $this->getInterval(); |
|
96 | - $options['Decay'] = $this->getDecayRate(); |
|
93 | + $options=parent::getTriggerOptions(); |
|
94 | + $options['PropertyName']=$this->getPropertyName(); |
|
95 | + $options['Interval']=$this->getInterval(); |
|
96 | + $options['Decay']=$this->getDecayRate(); |
|
97 | 97 | return $options; |
98 | 98 | } |
99 | 99 |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function renderCustomScriptFile($writer) |
43 | 43 | { |
44 | - if(($scriptUrl = $this->getScriptUrl())!=='') |
|
44 | + if(($scriptUrl=$this->getScriptUrl())!=='') |
|
45 | 45 | { |
46 | 46 | if($this->getPage()->getIsCallback()) |
47 | 47 | { |
48 | - $cs = $this->getPage()->getClientScript(); |
|
48 | + $cs=$this->getPage()->getClientScript(); |
|
49 | 49 | $uniqueid=$this->ClientID.'_custom'; |
50 | 50 | if(!$cs->isScriptFileRegistered($uniqueid)) |
51 | 51 | $cs->registerScriptFile($uniqueid, $scriptUrl); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | { |
66 | 66 | if($this->getPage()->getIsCallback()) |
67 | 67 | { |
68 | - $extWriter= $this->getPage()->getResponse()->createHtmlWriter(); |
|
68 | + $extWriter=$this->getPage()->getResponse()->createHtmlWriter(); |
|
69 | 69 | $extWriter->write("/*<![CDATA[*/\n"); |
70 | 70 | $this->renderChildren($extWriter); |
71 | 71 | $extWriter->write("\n/*]]>*/"); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | public function getClientSide() |
37 | 37 | { |
38 | 38 | if($this->_clientSide===null) |
39 | - $this->_clientSide = $this->createClientSide(); |
|
39 | + $this->_clientSide=$this->createClientSide(); |
|
40 | 40 | return $this->_clientSide; |
41 | 41 | } |
42 | 42 |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | protected function createRepeatedControl() |
79 | 79 | { |
80 | - $control = new TActiveRadioButtonItem; |
|
80 | + $control=new TActiveRadioButtonItem; |
|
81 | 81 | $control->getAdapter()->setBaseActiveControl($this->getActiveControl()); |
82 | 82 | return $control; |
83 | 83 | } |
@@ -138,8 +138,8 @@ discard block |
||
138 | 138 | * @param string checkbox id |
139 | 139 | * @param string onclick js |
140 | 140 | */ |
141 | - protected function renderInputTag($writer,$clientID,$onclick) |
|
141 | + protected function renderInputTag($writer, $clientID, $onclick) |
|
142 | 142 | { |
143 | - TRadioButton::renderInputTag($writer,$clientID,$onclick); |
|
143 | + TRadioButton::renderInputTag($writer, $clientID, $onclick); |
|
144 | 144 | } |
145 | 145 | } |
146 | 146 | \ No newline at end of file |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | * @param string writer class name. |
44 | 44 | * @param THttpResponse http response handler. |
45 | 45 | */ |
46 | - public function createNewHtmlWriter($type,$response) |
|
46 | + public function createNewHtmlWriter($type, $response) |
|
47 | 47 | { |
48 | - $writer = new TCallbackResponseWriter(); |
|
49 | - $this->_writers[] = $writer; |
|
50 | - return parent::createNewHtmlWriter($type,$writer); |
|
48 | + $writer=new TCallbackResponseWriter(); |
|
49 | + $this->_writers[]=$writer; |
|
50 | + return parent::createNewHtmlWriter($type, $writer); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function setResponseData($data) |
67 | 67 | { |
68 | - $this->_data = $data; |
|
68 | + $this->_data=$data; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | { |
85 | 85 | if($url[0]==='/') |
86 | 86 | $url=$this->getRequest()->getBaseUrl().$url; |
87 | - $this->_redirectUrl=str_replace('&','&',$url); |
|
87 | + $this->_redirectUrl=str_replace('&', '&', $url); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | public function __construct() |
125 | 125 | { |
126 | 126 | parent::__construct(); |
127 | - $this->_boundary = sprintf('%x',crc32(uniqid(null, true))); |
|
127 | + $this->_boundary=sprintf('%x', crc32(uniqid(null, true))); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function setBoundary($value) |
142 | 142 | { |
143 | - $this->_boundary = $value; |
|
143 | + $this->_boundary=$value; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | */ |
151 | 151 | public function flush() |
152 | 152 | { |
153 | - $content = parent::flush(); |
|
153 | + $content=parent::flush(); |
|
154 | 154 | if(empty($content)) |
155 | 155 | return ""; |
156 | 156 | return '<!--'.$this->getBoundary().'-->'.$content.'<!--//'.$this->getBoundary().'-->'; |
@@ -47,8 +47,8 @@ |
||
47 | 47 | */ |
48 | 48 | public function __construct($response, $parameter) |
49 | 49 | { |
50 | - $this->_response = $response; |
|
51 | - $this->_parameter = $parameter; |
|
50 | + $this->_response=$response; |
|
51 | + $this->_parameter=$parameter; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |