| @@ 272-277 (lines=6) @@ | ||
| 269 |     { | 
                                |
| 270 | $ret = array();  | 
                                |
| 271 | $count = count($this->methods);  | 
                                |
| 272 | for($i = 0; $i < $count; $i++)  | 
                                |
| 273 |         { | 
                                |
| 274 | if($this->methods[$i]->supplement === false)  | 
                                |
| 275 |             { | 
                                |
| 276 | continue;  | 
                                |
| 277 | }  | 
                                |
| 278 | ||
| 279 | array_push($ret, $this->methods[$i]->getSupplementLink());  | 
                                |
| 280 | }  | 
                                |
| @@ 419-427 (lines=9) @@ | ||
| 416 | public function getSuplementalProviderByHost($host)  | 
                                |
| 417 |     { | 
                                |
| 418 | $count = count($this->methods);  | 
                                |
| 419 | for($i = 0; $i < $count; $i++)  | 
                                |
| 420 |         { | 
                                |
| 421 | if($this->methods[$i]->supplement === false)  | 
                                |
| 422 |             { | 
                                |
| 423 | continue;  | 
                                |
| 424 | }  | 
                                |
| 425 | ||
| 426 | if($this->methods[$i]->getHostName() === $host)  | 
                                |
| 427 |             { | 
                                |
| 428 | return $this->methods[$i];  | 
                                |
| 429 | }  | 
                                |
| 430 | }  | 
                                |