| @@ 277-282 (lines=6) @@ | ||
| 274 | { |
|
| 275 | $ret = array(); |
|
| 276 | $count = count($this->methods); |
|
| 277 | for($i = 0; $i < $count; $i++) |
|
| 278 | { |
|
| 279 | if($this->methods[$i]->supplement === false) |
|
| 280 | { |
|
| 281 | continue; |
|
| 282 | } |
|
| 283 | ||
| 284 | array_push($ret, $this->methods[$i]->getSupplementLink()); |
|
| 285 | } |
|
| @@ 424-432 (lines=9) @@ | ||
| 421 | public function getSuplementalProviderByHost($host) |
|
| 422 | { |
|
| 423 | $count = count($this->methods); |
|
| 424 | for($i = 0; $i < $count; $i++) |
|
| 425 | { |
|
| 426 | if($this->methods[$i]->supplement === false) |
|
| 427 | { |
|
| 428 | continue; |
|
| 429 | } |
|
| 430 | ||
| 431 | if($this->methods[$i]->getHostName() === $host) |
|
| 432 | { |
|
| 433 | return $this->methods[$i]; |
|
| 434 | } |
|
| 435 | } |
|