src/DataTidy.php
protected function response($type = "json"){
			$content = $this->simple_data($this->endpoint, $this->options->toArray());
			$response = new Response;
			$response->setPublic();			
			if($this->options->get('allow_origin'))
				$response->header('Access-Control-Allow-Origin', $this->options->get('allow_origin'));
			$response->setContent($content)->send();
		}
protected function response($type = "json"){
			$content = $this->simple_data($this->endpoint, $this->options->toArray());
			$response = new Response;
			$response->setPublic();			
			if($this->options->get('allow_origin'))
				$response->header('Access-Control-Allow-Origin', $this->options->get('allow_origin'));
			$response->setContent($content)->send();
		}
protected function response ( $ type = "json" ) { $ content = $ this -> simple_data ( $ this -> endpoint , $ this -> options -> toArray ( ) ) ; $ response = new Response ; $ response -> setPublic ( ) ; if ( $ this -> options -> get ( 'allow_origin' ) ) $ response -> header ( 'Access-Control-Allow-Origin' , $ this -> options -> get ( 'allow_origin' ) ) ; $ response -> setContent ( $ content ) -> send ( ) ; }
Returns a full response using the result of a call to simple_data, by default an instance of Collection, otherwise, an array or JSON
Returns a full response using the result of a call to simple_data by default an instance of Collection otherwise an array or JSON