| @@ 359-364 (lines=6) @@ | ||
| 356 | { |
|
| 357 | $ret = array(); |
|
| 358 | $count = count($this->methods); |
|
| 359 | for($i = 0; $i < $count; $i++) |
|
| 360 | { |
|
| 361 | if($this->methods[$i]->supplement === false) |
|
| 362 | { |
|
| 363 | continue; |
|
| 364 | } |
|
| 365 | ||
| 366 | array_push($ret, $this->methods[$i]->getSupplementLink()); |
|
| 367 | } |
|
| @@ 534-542 (lines=9) @@ | ||
| 531 | public function getSuplementalProviderByHost($host) |
|
| 532 | { |
|
| 533 | $count = count($this->methods); |
|
| 534 | for($i = 0; $i < $count; $i++) |
|
| 535 | { |
|
| 536 | if($this->methods[$i]->supplement === false) |
|
| 537 | { |
|
| 538 | continue; |
|
| 539 | } |
|
| 540 | ||
| 541 | if($this->methods[$i]->getHostName() === $host) |
|
| 542 | { |
|
| 543 | return $this->methods[$i]; |
|
| 544 | } |
|
| 545 | } |
|