Changeset 240 for dev/mods/forum_post

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

Implemented exi's involvedloader class

Location:
dev/mods/forum_post
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/forum_post/cc_detail.php

    r233 r240  
    223223$tklist = new TopContractKillsList(); 
    224224$tklist->setContract(new Contract($ctr_id)); 
    225 if (CORP_ID) 
    226     $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 
    227 if (ALLIANCE_ID) 
    228     $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     225involved::load($tklist,'kill'); 
    229226 
    230227$tklist->generate(); 
     
    241238    $tklist = new TopContractScoreList(); 
    242239    $tklist->setContract(new Contract($ctr_id)); 
    243     if (CORP_ID) 
    244         $tklist->addInvolvedCorp(new Corporation(CORP_ID)); 
    245     if (ALLIANCE_ID) 
    246         $tklist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     240    involved::load($tklist,'kill'); 
    247241 
    248242    $tklist->generate(); 
  • dev/mods/forum_post/forum_post.php

    r233 r240  
    8989$kslist->setStartDate($firstts); 
    9090$kslist->setEndDate($lastts); 
    91 if (CORP_ID) 
    92     $kslist->addInvolvedCorp(new Corporation(CORP_ID)); 
    93 if (ALLIANCE_ID) 
    94     $kslist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     91involved::load($kslist,'kill'); 
    9592 
    9693$lslist = new KillList(); 
     
    9996$lslist->setStartDate($firstts); 
    10097$lslist->setEndDate($lastts); 
    101 if (CORP_ID) 
    102     $lslist->addVictimCorp(new Corporation(CORP_ID)); 
    103 if (ALLIANCE_ID) 
    104     $lslist->addVictimAlliance(new Alliance(ALLIANCE_ID)); 
     98involved::load($lslist,'loss'); 
    10599 
    106100$killsummary = new KillSummaryTable($kslist, $lslist); 
  • dev/mods/forum_post/kill_related.php

    r233 r240  
    7979$kslist->setStartDate($firstts); 
    8080$kslist->setEndDate($lastts); 
    81 if (CORP_ID) 
    82     $kslist->addInvolvedCorp(new Corporation(CORP_ID)); 
    83 if (ALLIANCE_ID) 
    84     $kslist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     81involved::load($kslist,'kill'); 
    8582 
    8683$lslist = new KillList(); 
     
    8986$lslist->setStartDate($firstts); 
    9087$lslist->setEndDate($lastts); 
    91 if (CORP_ID) 
    92     $lslist->addVictimCorp(new Corporation(CORP_ID)); 
    93 if (ALLIANCE_ID) 
    94     $lslist->addVictimAlliance(new Alliance(ALLIANCE_ID)); 
     88involved::load($lslist,'loss'); 
    9589 
    9690$summarytable = new KillSummaryTable($kslist, $lslist); 
     
    10397$klist->setStartDate($firstts); 
    10498$klist->setEndDate($lastts); 
    105 if (CORP_ID) 
    106     $klist->addInvolvedCorp(new Corporation(CORP_ID)); 
    107 if (ALLIANCE_ID) 
    108     $klist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     99involved::load($klist,'kill'); 
    109100 
    110101$llist = new KillList(); 
     
    113104$llist->setStartDate($firstts); 
    114105$llist->setEndDate($lastts); 
    115 if (CORP_ID) 
    116     $llist->addVictimCorp(new Corporation(CORP_ID)); 
    117 if (ALLIANCE_ID) 
    118     $llist->addVictimAlliance(new Alliance(ALLIANCE_ID)); 
     106involved::load($llist,'loss'); 
    119107 
    120108if ($_GET['scl_id'])