View Single Post
  #3  
Old 11-06-2016, 03:03 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 151,701
Abronsyth is on a distinguished road
Default

I do already have it in the statsview.php file, but for some reason it is unable to call the trophies.

An excerpt of my getTable function within statsview.php:
PHP Code:
    private function getTable($nameLinkedList $list){
        
$table = new TableBuilder($name);
        
$table->setAlign(new Align("center""middle"));
        
$table->buildHeaders("Image""Name""Owner""Total Clicks""Trophies");    
        
$table->setHelper(new AdoptTableHelper);
        
        
$iterator $list->iterator();
        while(
$iterator->hasNext()){
            
$adopt $iterator->next();
            
$cells = new LinkedList;
            
$cells->add(new TCell($table->getHelper()->getLevelupLink($adopt)));
            
$cells->add(new TCell($adopt->getName()));
            
$cells->add(new TCell($table->getHelper()->getOwnerProfile($adopt->getOwner())));
            
$cells->add(new String($adopt->getTotalClicks()));
            
$cells->add(new TCell($adopt->getTrophies));
            
$table->buildRow($cells);            
        }
        return 
$table;
    } 
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote