File_Sitemap
[ class tree: File_Sitemap ] [ index: File_Sitemap ] [ all elements ]

Class: File_Sitemap_Index

Source Location: /File_Sitemap-0.1.4/File/Sitemap/Index.php

Class Overview

File_Sitemap_Base
   |
   --File_Sitemap_Index

Generate sitemap index file.


Author(s):

Version:

  • Release: @package_version@

Methods


Inherited Variables

Inherited Methods

Class: File_Sitemap_Base

File_Sitemap_Base::__construct()
Constructor. Build an empty XML document, with xmlns and root element.
File_Sitemap_Base::findLoc()
Returns the DOMNode element which contains $url, or false if not found.
File_Sitemap_Base::load()
Load sitemap from file. The file can be gzipped or not.
File_Sitemap_Base::notify()
Notify $site that a sitemap was updated at $url
File_Sitemap_Base::parseDateTime()
Ensure that $datetime is a valid date time string
File_Sitemap_Base::parseURL()
Ensure url contains valid chars and isn't longer than 2048 chars.
File_Sitemap_Base::remove()
Remove DOMNode that contains url $loc from the document.
File_Sitemap_Base::save()
Save sitemap to file.
File_Sitemap_Base::test()
Test that all url in sitemap are valid URL
File_Sitemap_Base::updateNode()
Set to $nodeValue the value of the $nodeName child of $urlNode.
File_Sitemap_Base::validate()
Validate the sitemap document against DTD

Class Details

[line 53]
Generate sitemap index file.


[ Top ]


Method Detail

__construct (Constructor)   [line 66]

void __construct( )

Constructor.
  • Access: public

Overrides File_Sitemap_Base::__construct() (Constructor. Build an empty XML document, with xmlns and root element.)
[ Top ]

add   [line 80]

void add( mixed $loc, [mixed $lastmod = null])

Add a sitemap to the sitemapindex.
  • Access: public

Parameters:

mixed   $loc   —  string | array. URL (or array of URL) of the sitemap file.
mixed   $lastmod   —  Date (and time) of last modification (optional).

[ Top ]

validate   [line 117]

boolean validate( )

Validate sitemap index with the schema definition.
  • Access: public

Overrides File_Sitemap_Base::validate() (Validate the sitemap document against DTD)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:46:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.