PHP 클래스 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.
파일 보기 프로젝트 열기: boonex/dolphin.pro 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$BASE_PATH
$BASE_PATH_INDEX url to generated sitemaps
$BASE_URL path to generated sitemaps
$BASE_URL_INDEX path to generated index sitemap
$_aQueryParts
$_aSystem url to generated index sitemap
$_oQuery current sitemap system array

공개 메소드들

메소드 설명
deleteAllSiteMaps ( ) delete all sitemaps
generate ( ) generate files for current
generateAllSiteMaps ( ) it is called on cron every day or similar period to generate sitemaps from all modules
getObjectInstance ( $sObject ) : object Get sitemap object instance by object name
getSiteMapIndexPath ( ) get sitemaps index file path
getSiteMapIndexUrl ( ) get sitemaps index file url
getSystems ( ) get all systems

보호된 메소드들

메소드 설명
__construct ( $aSystem )
_escape ( $s )
_formatDate ( $iTimestamp )
_genChangeFreq ( $a )
_genDate ( $a )
_genUrl ( $a )
_genXmlUrl ( $a )
_genXmlUrlsBegin ( )
_genXmlUrlsEnd ( )
_getCount ( )
_getDateTimeStamp ( $a )
_getRecords ( $iStart )

메소드 상세

__construct() 보호된 메소드

protected __construct ( $aSystem )

_escape() 보호된 정적인 메소드

protected static _escape ( $s )

_formatDate() 보호된 정적인 메소드

protected static _formatDate ( $iTimestamp )

_genChangeFreq() 보호된 메소드

protected _genChangeFreq ( $a )

_genDate() 보호된 메소드

protected _genDate ( $a )

_genUrl() 보호된 메소드

protected _genUrl ( $a )

_genXmlUrl() 보호된 메소드

protected _genXmlUrl ( $a )

_genXmlUrlsBegin() 보호된 메소드

protected _genXmlUrlsBegin ( )

_genXmlUrlsEnd() 보호된 메소드

protected _genXmlUrlsEnd ( )

_getCount() 보호된 메소드

protected _getCount ( )

_getDateTimeStamp() 보호된 메소드

protected _getDateTimeStamp ( $a )

_getRecords() 보호된 메소드

protected _getRecords ( $iStart )

deleteAllSiteMaps() 공개 정적인 메소드

delete all sitemaps
public static deleteAllSiteMaps ( )

generate() 공개 메소드

generate files for current
public generate ( )

generateAllSiteMaps() 공개 정적인 메소드

it is called on cron every day or similar period to generate sitemaps from all modules
public static generateAllSiteMaps ( )

getObjectInstance() 공개 정적인 메소드

Get sitemap object instance by object name
public static getObjectInstance ( $sObject ) : object
$sObject object name
리턴 object instance or false on error

getSiteMapIndexPath() 공개 정적인 메소드

get sitemaps index file path
public static getSiteMapIndexPath ( )

getSiteMapIndexUrl() 공개 정적인 메소드

get sitemaps index file url
public static getSiteMapIndexUrl ( )

getSystems() 공개 정적인 메소드

get all systems
public static getSystems ( )

프로퍼티 상세

$BASE_PATH 보호되어 있는 정적으로 프로퍼티

protected static $BASE_PATH

$BASE_PATH_INDEX 보호되어 있는 정적으로 프로퍼티

url to generated sitemaps
protected static $BASE_PATH_INDEX

$BASE_URL 보호되어 있는 정적으로 프로퍼티

path to generated sitemaps
protected static $BASE_URL

$BASE_URL_INDEX 보호되어 있는 정적으로 프로퍼티

path to generated index sitemap
protected static $BASE_URL_INDEX

$_aQueryParts 보호되어 있는 프로퍼티

protected $_aQueryParts

$_aSystem 보호되어 있는 프로퍼티

url to generated index sitemap
protected $_aSystem

$_oQuery 보호되어 있는 프로퍼티

current sitemap system array
protected $_oQuery