SitemapWriter implements SitemapWriter
Interfaces, Classes and Traits
Table of Contents
- $file : object
- resource.
- __construct() : void
- __construct.
- close() : void
- Close the sitemap file.
- read() : xml
- Read the sitemap file.
- write() : void
- Write on sitemap file.
Properties
$file
resource.
private
object
$file
Tags
Methods
__construct()
__construct.
public
__construct((string) $file[, (string) $mode = 'readWriteAppend' ]) : void
Open the sitemap file.
Parameters
- $file : (string)
-
File name with extension (.xml).
- $mode : (string) = 'readWriteAppend'
-
Valid file opening mode.
Tags
Return values
void —close()
Close the sitemap file.
public
close() : void
Tags
Return values
void —read()
Read the sitemap file.
public
read() : xml
Tags
Return values
xml —write()
Write on sitemap file.
public
write((\alphaz\Common\Sitemap\xml) $data) : void
Parameters
- $data : (\alphaz\Common\Sitemap\xml)
-
Valid XML