GoogleSitemap GoogleSitemap(
string
$host, string
$user, string
$db, string
$pass
)
|
|
GoogleSitemap class constructor
Parameters:
string |
$host: |
Database host setting (i.e. - localhost) |
string |
$user: |
Database user |
string |
$db: |
Database name |
string |
$pass: |
Database password |
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |
boolean CompressFile(
string
$file
)
|
|
Function to compress a normal file
Parameters:
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |
boolean GenerateCategorySitemap(
)
|
|
Funciton to generate category sitemap data
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |
boolean GenerateProductSitemap(
)
|
|
Function to generate product sitemap data
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |
boolean GenerateSitemap(
array
$data, string
$file
)
|
|
Function to generate sitemap file from data
Parameters:
array |
$data: |
|
string |
$file: |
|
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |
boolean GenerateSitemapIndex(
)
|
|
Function to generate sitemap index file
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |
string GenerateSubmitURL(
)
|
|
Utility function to generate the submit URL
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |
string ReadGZ(
string
$file
)
|
|
Utility function to read and return the contents of a GZ formatted file
Parameters:
string |
$file: |
File to open |
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |
boolean SaveFile(
string
$data, string
$type
)
|
|
Function to save the sitemap data to file as either XML or XML.GZ format
Parameters:
string |
$data: |
XML data |
string |
$type: |
Feed type (index, products, categories) |
Information Tags:
Version: | 1.0 |
Author: | Bobby Easland |