| @@ 284-289 (lines=6) @@ | ||
| 281 | { |
|
| 282 | $ret = array(); |
|
| 283 | $count = count($this->methods); |
|
| 284 | for($i = 0; $i < $count; $i++) |
|
| 285 | { |
|
| 286 | if($this->methods[$i]->supplement === false) |
|
| 287 | { |
|
| 288 | continue; |
|
| 289 | } |
|
| 290 | ||
| 291 | array_push($ret, $this->methods[$i]->getSupplementLink()); |
|
| 292 | } |
|
| @@ 431-439 (lines=9) @@ | ||
| 428 | public function getSuplementalProviderByHost($host) |
|
| 429 | { |
|
| 430 | $count = count($this->methods); |
|
| 431 | for($i = 0; $i < $count; $i++) |
|
| 432 | { |
|
| 433 | if($this->methods[$i]->supplement === false) |
|
| 434 | { |
|
| 435 | continue; |
|
| 436 | } |
|
| 437 | ||
| 438 | if($this->methods[$i]->getHostName() === $host) |
|
| 439 | { |
|
| 440 | return $this->methods[$i]; |
|
| 441 | } |
|
| 442 | } |
|