示例#1
0
 public function getGeneralContent($showAll = false)
 {
     // Fetch thze portal
     $portals = Dolumar_Map_Portal::getFromBuilding($this);
     /*
     if (count ($portals) == 0)
     {
     	return '<p class="false">This portal leads to nowhere...</p>';
     }
     */
     $targets = array();
     foreach ($portals as $v) {
         $village = $v->getOtherSide($this->getVillage());
         $targets[] = $village->getDisplayName();
     }
     $page = new Neuron_Core_Template();
     $destroydate = $this->getDestroyDate();
     if ($destroydate) {
         $page->set('timeleft', Neuron_Core_Tools::getCountdown($this->getDestroyDate()));
     }
     $page->set('targets', $targets);
     return $page->parse('buildings/portal.phpt');
 }