Sitemap Creator creates XML sitemaps files compatible with the standard sitemaps.org protocol and supported by Google and Bing.
Located in /SitemapCreator.class.php (line 19)
Data directory Path.
Valid system path for the directory where sitemaps directories will be created.The directory should be writable.
Ping URLs of the search engines sitemaps API
Array contianing the entries of the sitemap.
Maximum number of entries per sitemap file
Frequency mode
Array contains Frequency types as keys and max time in seconds as values.
Minimum Priority
Minimum Priority
Current time().
Priority mode
The URL of the website.It should be full qualified and normalized.
Set on class creation __construct() or setSite()
Default: 'http://' . $_SERVER['HTTP_HOST'] . '/'
Number of sitemap files created
Sitemaps directory path auto created in prepareSitemapsDir()
Sitemap URL where the sitemap file name will be appended to the end of the URL.
If not set then the link will be generated automatically.
choose to save sitemaps in gzip format
XML string containing sitemap <urlset></urlset> elements
Open URL and get respond body or error
Validates sitemap filename
Initiates a new Sitemap.
add a ping URL to the array $engines
add URL entry manually to $entries
* this method throws exception if $entry is not an array or does not have 'URL' key
adds sitemap gzip extension to sitemap filename if $use_gzip enabled
Add index sitemap URL to robots.txt file
* this method throws exception if robots file doesn't exist and is writable
Add single XML code to $xml_url_set
calculates Frequency for each entry $priority_mode
calculates Priority for each entry $priority_mode
Start the crawl process
More related options could be found on http://phpcrawl.cuab.de/classreferences/index.html
Create sitemaps files and index
get CSV file path
Get data directory path $data_dir
Get sitemap directory name
Get this site's directory name where sitemaps are strored. The directory is created inside the $data_dir directory.
Get sitemap file path
Get sitemap directory path $sitemaps_dir
Get this site's directory path where sitemaps are strored. The directory is created inside the $data_dir directory.
Get sitemap file URL
Initiate the crawler $Crawler
visit http://phpcrawl.cuab.de/classreferences/index.html for full cralwer options which can be accessed through $Crawler object.
Check if data directory is writable $data_dir
Ping search engines
Creates sitemaps directory $sitemaps_dir
* this method throws exception if data is not writable
Write XML to disk
Read from CSV file and add to $entries
Read sitemap file from disk
*this method throws exception if sitemap file doesn't exsit
Delete all sitemap dir and files
Load default crawler settings for $Crawler
Internally load default options, no external calls allowed More related options could be found on http://phpcrawl.cuab.de/classreferences/index.html
Sets the data directory path of the sitemaps $data_dir
The directory is used to store sitemaps and csv files. If not set then sys_get_temp_dir() will be used.
* This method throws an exception if the path is not valid or the directory is not writable.
Set the URLs sets manually $entries
* this method throws exception if $entires is not an array or the first entry does not have 'URL' key
Sets number of URLs set for each sitemap file $entries_per_sitemap
Each sitemap file should have a maximum of 50,000 URL. Use this function to change the number of URLs set per sitemap.
Set Frequency mode $frequency_mode
Choose how the Frequency of every URL should be calculated
Set minimum Frequency value for all URLs $min_priority
Set minimum Priority value for all URLs $min_priority
Set Priority mode $priority_mode
Choose how the Priority of every URL should be calculated
Sets the URL of the website $site
Normalizes the given URL and returns a full qualified and normalized URL. The method also generates $sitemaps_url if not set.
* This method throws an exception if the URL is invalid
Sets the URL of the sitemap files $sitemaps_url
Sitemap URL where the sitemap file name will be appended to the end of the URL.
Use gzip compressed sitemaps files $use_gzip
Write sitemap index file
Write sitemap file
Write to CSV file
Disables frequency calculations
Latest modified pages get higher frequency
Default
Higher priority pages get higher frequency
Crawled first pages get higher priority
Default
Disables priority calculations
Deeper pathes get lower priority
Documentation generated on Sun, 20 Jan 2013 21:18:50 +0200 by phpDocumentor 1.4.4