| Conditions | 8 |
| Paths | 128 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function __construct($name, $action, $con, $cached=false) |
||
| 24 | { |
||
| 25 | if ($name=="CodeForces") { |
||
| 26 | $crawler = new CodeForces($action, $con, $cached); |
||
| 27 | } |
||
| 28 | if ($name=="ContestHunter") { |
||
| 29 | $crawler = new ContestHunter($action, $con, $cached); |
||
| 30 | } |
||
| 31 | if ($name=="POJ") { |
||
| 32 | $crawler = new POJ($action, $con, $cached); |
||
| 33 | } |
||
| 34 | if ($name=="PTA") { |
||
| 35 | $crawler = new PTA($action, $con, $cached); |
||
| 36 | } |
||
| 37 | if ($name=="Vijos") { |
||
| 38 | $crawler = new Vijos($action, $con, $cached); |
||
| 39 | } |
||
| 40 | if ($name=="UVa") { |
||
| 41 | $crawler = new UVa($action, $con, $cached); |
||
| 42 | } |
||
| 43 | if (isset($crawler)) $this->data = $crawler->data; |
||
| 44 | } |
||
| 46 |