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.
Afficher le fichier
Open project: boonex/dolphin.pro
Class Usage Examples
Protected Properties
Méthodes publiques
Méthodes protégées
Method Details
__construct()
protected méthode
_escape()
protected static méthode
_genChangeFreq()
protected méthode
_genDate()
protected méthode
_genUrl()
protected méthode
_genXmlUrl()
protected méthode
_genXmlUrlsBegin()
protected méthode
_genXmlUrlsEnd()
protected méthode
_getCount()
protected méthode
_getDateTimeStamp()
protected méthode
_getRecords()
protected méthode
deleteAllSiteMaps()
public static méthode
generate()
public méthode
generate files for current
generateAllSiteMaps()
public static méthode
it is called on cron every day or similar period to generate sitemaps from all modules
getObjectInstance()
public static méthode
Get sitemap object instance by object name
getSiteMapIndexPath()
public static méthode
get sitemaps index file path
getSiteMapIndexUrl()
public static méthode
get sitemaps index file url
getSystems()
public static méthode
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