Mercurial > SimpleWebPresenter
comparison Sitemap.inc @ 74:1d5166aba2c5
Documentation fixes.
codeFromHeader now throws an exception if the header is malformed.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Fri, 12 Oct 2012 01:16:30 +0200 |
| parents | 947d53f95ccd |
| children | 7c68015b211a |
comparison
equal
deleted
inserted
replaced
| 73:947d53f95ccd | 74:1d5166aba2c5 |
|---|---|
| 6 $cache = ScriptIncludeCache::instance(__FILE__); | 6 $cache = ScriptIncludeCache::instance(__FILE__); |
| 7 $cache->includeOnce('common-functions.inc', $baseDir); | 7 $cache->includeOnce('common-functions.inc', $baseDir); |
| 8 $cache->includeOnce('Options.inc', dirname(__FILE__)); | 8 $cache->includeOnce('Options.inc', dirname(__FILE__)); |
| 9 /// @endcond | 9 /// @endcond |
| 10 | 10 |
| 11 /** | |
| 12 * Functionality for generating a sitemap | |
| 13 */ | |
| 11 class Sitemap | 14 class Sitemap |
| 12 { | 15 { |
| 13 private $master; | 16 private $master; |
| 14 private $options; | 17 private $options; |
| 15 | 18 |
| 19 /** | |
| 20 * Constructs a sitemap object from a master document | |
| 21 * | |
| 22 * @param $path location of master document | |
| 23 */ | |
| 16 function __construct($path) { | 24 function __construct($path) { |
| 17 $this->master = new DOMDocument(); | 25 $this->master = new DOMDocument(); |
| 18 $this->master->load($path); | 26 $this->master->load($path); |
| 19 | 27 |
| 20 $this->options = new Options($this->master); | 28 $this->options = new Options($this->master); |
