PHP Class BxDolSiteMaps, dolphin.pro
To add sitemap to your module you need to add a record to 'sys_objects_site_maps' table and custom class:
id - autoincremented id for internal usage
object - your unique module name, with vendor prefix, lowercase and spaces are underscored
priority - priority, allowed values from 0.0 to 1.0
changefreq - how frequently contents change, allowed values: always, hourly, daily, weekly, monthly, yearly, never
class_name - your custom class name
class_file - file where your class_name is stored
order - order in which this sitemap is generated
active - is object active, allowed values 0 or 1
You can refer to BoonEx modules for sample record in this table.
ファイルを表示
Open project: boonex/dolphin.pro
Class Usage Examples
Protected Properties
Public Methods
Protected Methods
Method Details
__construct()
protected method
_escape()
protected static method
_genChangeFreq()
protected method
_genDate()
protected method
_genUrl()
protected method
_genXmlUrl()
protected method
_genXmlUrlsBegin()
protected method
_genXmlUrlsEnd()
protected method
_getCount()
protected method
_getDateTimeStamp()
protected method
_getRecords()
protected method
deleteAllSiteMaps()
public static method
generate files for current
generateAllSiteMaps()
public static method
it is called on cron every day or similar period to generate sitemaps from all modules
getObjectInstance()
public static method
Get sitemap object instance by object name
getSiteMapIndexPath()
public static method
get sitemaps index file path
getSiteMapIndexUrl()
public static method
get sitemaps index file url
getSystems()
public static method
Property Details
$BASE_PATH protected_oe static_oe property
protected static $BASE_PATH |
$BASE_PATH_INDEX protected_oe static_oe property
url to generated sitemaps
protected static $BASE_PATH_INDEX |
$BASE_URL protected_oe static_oe property
path to generated sitemaps
protected static $BASE_URL |
$BASE_URL_INDEX protected_oe static_oe property
path to generated index sitemap
protected static $BASE_URL_INDEX |
$_aQueryParts protected_oe property
$_aSystem protected_oe property
url to generated index sitemap
$_oQuery protected_oe property
current sitemap system array