googlesitemap_item_model.class.php 794 B

1234567891011121314151617181920212223242526
  1. <?php
  2. defined('IN_PHPCMS') or exit('No permission resources.');
  3. pc_base::load_sys_class('model', '', 0);
  4. class googlesitemap_item_model extends model {
  5. public function __construct() {
  6. $this->items = array();
  7. parent::__construct();
  8. }
  9. /**
  10. *@access public
  11. *@param string $loc 位置
  12. *@param string $lastmod 日期格式 YYYY-MM-DD
  13. *@param string $changefreq 更新频率的单位 (always, hourly, daily, weekly, monthly, yearly, never)
  14. *@param string $priority 更新频率 0-1
  15. */
  16. function google_sitemap_item($loc, $lastmod = '', $changefreq = '', $priority = '')
  17. {
  18. $this->loc = $loc;
  19. $this->lastmod = $lastmod;
  20. $this->changefreq = $changefreq;
  21. $this->priority = $priority;
  22. }
  23. }
  24. ?>