PHP Class Thepixeldeveloper\Sitemap\Subelements\News

Inheritance: implements Thepixeldeveloper\Sitemap\OutputInterface, implements Thepixeldeveloper\Sitemap\AppendAttributeInterface
Mostrar archivo Open project: thepixeldeveloper/sitemap

Protected Properties

Property Type Description
$access string Access.
$genres string List of genres, comma-separated string values.
$keywords string Key words, comma-separated string values.
$loc string Location (URL).
$publicationDate DateTime Date of publication.
$publicationLanguage string Publication language.
$publicationName string Publication name.
$title string Title.

Public Methods

Method Description
appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
generateXML ( XMLWriter $XMLWriter )
getAccess ( ) : string Access.
getGenres ( ) : string List of genres, comma-separated string values.
getKeywords ( ) : string Key words, comma-separated string values.
getPublicationDate ( ) : DateTime Date of publication.
getPublicationLanguage ( ) : string Publication language.
getPublicationName ( ) : string Publication name.
getTitle ( ) : string Title.
setAccess ( string $access ) Set access.
setGenres ( string $genres ) Set list of genres, comma-separated string values.
setKeywords ( string $keywords ) Set key words, comma-separated string values.
setPublicationDate ( DateTime $publicationDate ) Set date of publication.
setPublicationLanguage ( string $publicationLanguage ) Set the publication language.
setPublicationName ( string $publicationName ) Set the publication name.
setTitle ( string $title ) Set title.

Protected Methods

Method Description
optionalWriteElement ( XMLWriter $XMLWriter, string $name, string $value )

Method Details

appendAttributeToCollectionXML() public method

public appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

generateXML() public method

public generateXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

getAccess() public method

Access.
public getAccess ( ) : string
return string

getGenres() public method

List of genres, comma-separated string values.
public getGenres ( ) : string
return string

getKeywords() public method

Key words, comma-separated string values.
public getKeywords ( ) : string
return string

getPublicationDate() public method

Date of publication.
public getPublicationDate ( ) : DateTime
return DateTime

getPublicationLanguage() public method

Publication language.
public getPublicationLanguage ( ) : string
return string

getPublicationName() public method

Publication name.
public getPublicationName ( ) : string
return string

getTitle() public method

Title.
public getTitle ( ) : string
return string

optionalWriteElement() protected method

protected optionalWriteElement ( XMLWriter $XMLWriter, string $name, string $value )
$XMLWriter XMLWriter
$name string
$value string

setAccess() public method

Set access.
public setAccess ( string $access )
$access string

setGenres() public method

Set list of genres, comma-separated string values.
public setGenres ( string $genres )
$genres string

setKeywords() public method

Set key words, comma-separated string values.
public setKeywords ( string $keywords )
$keywords string

setPublicationDate() public method

Set date of publication.
public setPublicationDate ( DateTime $publicationDate )
$publicationDate DateTime

setPublicationLanguage() public method

Set the publication language.
public setPublicationLanguage ( string $publicationLanguage )
$publicationLanguage string

setPublicationName() public method

Set the publication name.
public setPublicationName ( string $publicationName )
$publicationName string

setTitle() public method

Set title.
public setTitle ( string $title )
$title string

Property Details

$access protected_oe property

Access.
protected string $access
return string

$genres protected_oe property

List of genres, comma-separated string values.
protected string $genres
return string

$keywords protected_oe property

Key words, comma-separated string values.
protected string $keywords
return string

$loc protected_oe property

Location (URL).
protected string $loc
return string

$publicationDate protected_oe property

Date of publication.
protected DateTime $publicationDate
return DateTime

$publicationLanguage protected_oe property

Publication language.
protected string $publicationLanguage
return string

$publicationName protected_oe property

Publication name.
protected string $publicationName
return string

$title protected_oe property

Title.
protected string $title
return string