PHP Class Thepixeldeveloper\Sitemap\Sitemap

Inheritance: implements Thepixeldeveloper\Sitemap\OutputInterface
显示文件 Open project: thepixeldeveloper/sitemap

Protected Properties

Property Type Description
$lastMod string Last modified time.
$loc string Location (URL).

Public Methods

Method Description
__construct ( string $loc ) Url constructor
generateXML ( XMLWriter $XMLWriter )
getLastMod ( ) : string | null Get the last modification time.
getLoc ( ) : string Get location (URL).
setLastMod ( string $lastMod ) Set the last modification time.

Method Details

__construct() public method

Url constructor
public __construct ( string $loc )
$loc string

generateXML() public method

public generateXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

getLastMod() public method

Get the last modification time.
public getLastMod ( ) : string | null
return string | null

getLoc() public method

Get location (URL).
public getLoc ( ) : string
return string

setLastMod() public method

Set the last modification time.
public setLastMod ( string $lastMod )
$lastMod string

Property Details

$lastMod protected_oe property

Last modified time.
protected string $lastMod
return string

$loc protected_oe property

Location (URL).
protected string $loc
return string