public static function generate()
 {
     $urls = array();
     $tags = TagPeer::getPopularTags(500);
     $urls[] = new sitemapURL("tag/list", date('Y-m-d\\TH:i:s\\Z'), 'daily', 1.0);
     foreach ($tags as $tag) {
         $urls[] = new sitemapURL("tag/" . $tag['tag'], date('Y-m-d\\TH:i:s\\Z'), 'daily', 1.0);
     }
     return $urls;
 }
 public function executeTagCloud()
 {
     $this->tags = TagPeer::getPopularTags();
 }
Exemplo n.º 3
0
 public function executeList()
 {
     $this->tags = TagPeer::getPopularTags(100);
 }