class SitemapPlugin extends Plugin
{
+ const USERS_PER_MAP = 25000;
+
/**
* Load related modules when needed
*
{
$m->connect('sitemapindex.xml',
array('action' => 'sitemapindex'));
+
$m->connect('/sitemaps/notice/:year/:month/:day/:index.xml',
array('action' => 'noticesitemap'),
array('year' => '[0-9]{4}',
class UsersitemapAction extends SitemapAction
{
- const USERS_PER_MAP = 25000;
-
var $user = null;
function prepare($args)
$i += 0;
- $offset = ($i-1) * self::USERS_PER_MAP;
- $limit = self::USERS_PER_MAP;
+ $offset = ($i-1) * SitemapPlugin::USERS_PER_MAP;
+ $limit = SitemapPlugin::USERS_PER_MAP;
$this->user = new User();