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/igb_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); 
     
    7062$klist = new KillList(); 
    7163$klist->setOrdered(true); 
    72 if (CORP_ID) 
    73     $klist->addInvolvedCorp(new Corporation(CORP_ID)); 
    74 if (ALLIANCE_ID) 
    75     $klist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     64involved::load($klist,'kill'); 
    7665 
    7766// boards with low killcount could not display 20 kills with those limits 
     
    9988$tklist->setWeek($week); 
    10089$tklist->setYear($year); 
    101 if (CORP_ID) 
    102     $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 
    103 if (ALLIANCE_ID) 
    104     $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     90involved::load($tklist,'kill'); 
    10591 
    10692$tklist->generate(); 
     
    11399    $tklist->setWeek($week); 
    114100    $tklist->setYear($year); 
    115     if (CORP_ID) 
    116         $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 
    117     if (ALLIANCE_ID) 
    118         $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     101    involved::load($tklist,'kill'); 
    119102 
    120103    $tklist->generate();