Subversion Repositories SmartDukaan

Rev

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

Rev 11811 Rev 11845
Line 34... Line 34...
34
		$responses = $this->mcurl->execute();
34
		$responses = $this->mcurl->execute();
35
		$responses = $this->parser->parse_response($responses);
35
		$responses = $this->parser->parse_response($responses);
36
		return $responses;
36
		return $responses;
37
	}
37
	}
38
*/
38
*/
39
	function getProducts($get=array(),$post=array(),$module=array(), $userId)
39
	function getProducts($get=array(),$post=array(),$module=array(), $userId,$page=1)
40
	{
40
	{
41
		$output =array();
41
		$output =array();
42
		if(isset($module) and !empty($module))
42
		if(isset($module) and !empty($module))
43
		{
43
		{
44
			if(isset($module['header']) and !empty($module['header']))
44
			if(isset($module['header']) and !empty($module['header']))
Line 70... Line 70...
70
 
70
 
71
					}
71
					}
72
					else
72
					else
73
					{
73
					{
74
						
74
						
75
						$this->curlURL($response,'get',$get,$userId);
75
						$this->curlURL($response,'get',$get,$userId,$page);
76
					}
76
					}
77
				}
77
				}
78
			}
78
			}
79
 
79
 
80
			
80
			
Line 88... Line 88...
88
	
88
	
89
		
89
		
90
		return $responses;
90
		return $responses;
91
	}
91
	}
92
	
92
	
93
	function curlURL($configurl=null,$methodtype='get',$parameter=array(),$userId=null)	{		
93
	function curlURL($configurl=null,$methodtype='get',$parameter=array(),$userId=null,$page=1)	{		
94
		$params ='';
94
		$params ='';
95
		$display='';
95
		$display='';
96
		$url = $this->config->item('curl_base_url');
96
		$url = $this->config->item('curl_base_url');
97
		$productsurl =$this->config->item($configurl);
97
		$productsurl =$this->config->item($configurl);
98
		if(isset($productsurl['url']) and !empty($productsurl['url']))
98
		if(isset($productsurl['url']) and !empty($productsurl['url']))
Line 117... Line 117...
117
			}
117
			}
118
			if(!isset($parameter) || empty($parameter))
118
			if(!isset($parameter) || empty($parameter))
119
				{$params =$this->parser->prepareParams('',$display,$configurl);}
119
				{$params =$this->parser->prepareParams('',$display,$configurl);}
120
			*/
120
			*/
121
			if(isset($userId) && $userId != null){
121
			if(isset($userId) && $userId != null){
122
				$url .= '/?isLoggedIn=true&userId='.$userId;
122
				$url .= '/'.$page.'/?isLoggedIn=true&userId='.$userId;
123
			}
123
			}
124
			/*
124
			/*
125
			if(isset($query) && $query != null){
125
			if(isset($query) && $query != null){
126
				$params = $query;
126
				$params = $query;
127
			}		
127
			}