public function executeShowAnnouncement() { $this->announcement = ProjectAnnouncementPeer::retrieveByPK($this->getRequestParameter('id')); $this->project = $this->announcement->getProject(); $this->tab = 'projects'; $this->pages = array(array('label' => 'Home', 'url' => '@homepage'), array('label' => 'Projects', 'url' => 'project/list'), array('label' => $this->project->getName(), 'url' => 'project/show?id=' . $this->project->getTag()), array('label' => 'Announcements')); }
public function executeIndex() { $this->tab = 'home'; $this->pages = array(array('label' => 'Home')); $this->announcements = ProjectAnnouncementPeer::getRecent(5); $this->projects = ProjectPeer::doSelect(new Criteria()); }
public static function generate() { $urls = array(); $items = ProjectAnnouncementPeer::doSelect(new Criteria()); foreach ($items as $item) { $urls[] = new sitemapURL('project/showAnnouncement?id=' . $item->getId(), date('Y-m-d\\TH:i:s\\Z', strtotime($item->getCreatedAt())), 'monthly', 1.0); } return $urls; }
public function executeList() { $this->tab = 'none'; $this->pages = array(array('label' => 'Home', 'url' => '@homepage'), array('label' => 'Announcements')); $this->projectAnnouncementPager = ProjectAnnouncementPeer::getPager($this->getRequestParameter('page', 1)); }