Changeset 240 for dev/common/home.php

Show
Ignore:
Timestamp:
09/25/07 15:26:51 (15 years ago)
Author:
ralle030583
Message:

Implemented exi's involvedloader class

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/home.php

    r233 r240  
    1414 
    1515$kslist = new KillList(); 
    16 if (CORP_ID) 
    17     $kslist->addInvolvedCorp(new Corporation(CORP_ID)); 
    18 if (ALLIANCE_ID) 
    19     $kslist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
    20  
     16involved::load($kslist,'kill'); 
    2117$kslist->setWeek($week); 
    2218$kslist->setYear($year); 
    2319 
    2420$llist = new KillList(); 
    25 if (CORP_ID) 
    26     $llist->addVictimCorp(new Corporation(CORP_ID)); 
    27 if (ALLIANCE_ID) 
    28     $llist->addVictimAlliance(new Alliance(ALLIANCE_ID)); 
    29  
     21involved::load($llist,'loss'); 
    3022$llist->setWeek($week); 
    3123$llist->setYear($year); 
     
    7870$klist = new KillList(); 
    7971$klist->setOrdered(true); 
    80 if (CORP_ID) 
    81     $klist->addInvolvedCorp(new Corporation(CORP_ID)); 
    82 if (ALLIANCE_ID) 
    83     $klist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     72involved::load($klist,'kill'); 
     73 
    8474 
    8575// boards with low killcount could not display 20 kills with those limits 
     
    10797$tklist->setWeek($week); 
    10898$tklist->setYear($year); 
    109 if (CORP_ID) 
    110     $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 
    111 if (ALLIANCE_ID) 
    112     $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     99involved::load($tklist,'kill'); 
    113100 
    114101$tklist->generate(); 
     
    121108    $tklist->setWeek($week); 
    122109    $tklist->setYear($year); 
    123     if (CORP_ID) 
    124         $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 
    125     if (ALLIANCE_ID) 
    126         $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     110    involved::load($tklist,'kill'); 
    127111 
    128112    $tklist->generate();