Subversion Repositories SmartDukaan

Rev

Rev 12990 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12990 Rev 12996
Line 28... Line 28...
28
 
28
 
29
	
29
	
30
 
30
 
31
	function getList($get=array(),$post=array(),$module=array())
31
	function getList($get=array(),$post=array(),$module=array())
32
	{
32
	{
33
	
-
 
34
 
-
 
35
		$output =array();
33
		$output =array();
36
		if(isset($module) and !empty($module))
34
		if(isset($module) and !empty($module))
37
		{
35
		{
38
			if(isset($module['header']) and !empty($module['header']))
36
			if(isset($module['header']) and !empty($module['header']))
39
			{
37
			{
Line 71... Line 69...
71
				}
69
				}
72
			}
70
			}
73
 
71
 
74
			
72
			
75
		}
73
		}
76
		
-
 
77
		//add_call( KEY, METHOD, URL, array of PARAMS, array of CURL_OPTS )
-
 
78
		//$this->curlURL('products','get',$get);
-
 
79
		$responses = $this->mcurl->execute();
74
		$responses = $this->mcurl->execute();		
80
		//print_r($responses);
-
 
81
		if(isset($responses) and !empty($responses))
75
		if(isset($responses) and !empty($responses))
82
		$responses = $this->parser->parse_response($responses,$module);
76
		$responses = $this->parser->parse_response($responses,$module);
83
	
-
 
84
	error_log("reponse ".print_r($responses,1));	
-
 
85
		return $responses;
77
		return $responses;
86
	}
78
	}
87
function curlURL($configurl=null,$methodtype='get',$parameter=array())
79
function curlURL($configurl=null,$methodtype='get',$parameter=array())
88
{
80
{
89
		//echo $configurl;
81
		//echo $configurl;