Lines Matching refs:args
132 $args = array();
133 parse_str($query, $args);
135 … $args['provider'] = in_array($provider, $this->providers)? $provider : $this->getConf('provider');
137 $args['zoom'] = intval($args['zoom']);
138 if($args['zoom'] < 3 || $args['zoom'] > 19)
139 $args['zoom'] = $this->getConf('zoom');
141 if(preg_match($this->css_len_pattern, $args['width']) != 1 )
142 $args['width'] = $this->getConf('width');
144 if(preg_match($this->css_len_pattern, $args['height']) != 1 )
145 $args['height'] = $this->getConf('height');
147 if(!isset($args['title']))
148 $args['title']='';
150 if(!isset($args['mark']))
151 $args['mark']= $this->getConf('mark');
154 $args['mark'] = strtolower($args['mark']);
155 … $args['mark'] = (($args['mark'] == 'y') || ($args['mark'] == 'yes')|| ($args['mark'] == 'on'));
158 if(!isset($args['sat']))
159 $args['sat']= $this->getConf('sat');
162 $args['sat'] = strtolower($args['sat']);
163 … $args['sat'] = (($args['sat'] == 'y') || ($args['sat'] == 'yes')|| ($args['sat'] == 'on'));
166 switch($args['provider'])
169 return $this->parseMatchAmap($args);
171 return $this->parseMatchBmap($args);
173 return $this->parseMatchAmap($args);
180 * @param array $args The match of the syntax
185 public function parseMatchAmap($args) { argument
189 $args['title']=addslashes($args['title']);
190 $args['title']=str_replace("<","\\<", $args['title']);
191 $args['title']=str_replace(">","\\>", $args['title']);
199 array_push($data, $args['width']);
200 array_push($data, $args['height']);
203 array_push($data, $args['lng']);
204 array_push($data, $args['lat']);
206 array_push($data, $args['zoom']);
207 array_push($data, $args['mark']?"true":"false");
208 array_push($data, $args['title']);
209 array_push($data, $args['sat']?"true":"false");
212 $data['provider']= $args['provider'];
220 * @param array $args The match of the syntax
225 public function parseMatchBmap($args) { argument
229 $args['title']=addslashes($args['title']);
230 $args['title']=str_replace("<","\\<", $args['title']);
231 $args['title']=str_replace(">","\\>", $args['title']);
239 array_push($data, $args['width']);
240 array_push($data, $args['height']);
243 array_push($data, $args['lng']);
244 array_push($data, $args['lat']);
246 array_push($data, $args['zoom']);
247 array_push($data, $args['mark']?"true":"false");
248 array_push($data, $args['title']);
249 array_push($data, $args['sat']?"true":"false");
252 $data['provider']= $args['provider'];