PHP Class Thepixeldeveloper\Sitemap\Subelements\Image

Inheritance: implements Thepixeldeveloper\Sitemap\OutputInterface, implements Thepixeldeveloper\Sitemap\AppendAttributeInterface
Afficher le fichier Open project: thepixeldeveloper/sitemap

Protected Properties

Свойство Type Description
$caption string The caption of the image.
$geoLocation string The geographic location of the image.
$license string A URL to the license of the image.
$loc string Location (URL).
$title string The title of the image.

Méthodes publiques

Méthode Description
__construct ( string $loc ) Image constructor
appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
generateXML ( XMLWriter $XMLWriter )
getCaption ( ) : string The caption of the image.
getGeoLocation ( ) : string The geographic location of the image.
getLicense ( ) : string A URL to the license of the image.
getLoc ( ) : string Location (URL).
getTitle ( ) : string The title of the image.
setCaption ( string $caption ) Set the caption of the image.
setGeoLocation ( string $geoLocation ) Set the geographic location of the image.
setLicense ( string $license ) Set a URL to the license of the image.
setTitle ( string $title ) Set the title of the image.

Méthodes protégées

Méthode Description
optionalWriteElement ( XMLWriter $XMLWriter, string $name, string $value )

Method Details

__construct() public méthode

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

appendAttributeToCollectionXML() public méthode

public appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

generateXML() public méthode

public generateXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

getCaption() public méthode

The caption of the image.
public getCaption ( ) : string
Résultat string

getGeoLocation() public méthode

The geographic location of the image.
public getGeoLocation ( ) : string
Résultat string

getLicense() public méthode

A URL to the license of the image.
public getLicense ( ) : string
Résultat string

getLoc() public méthode

Location (URL).
public getLoc ( ) : string
Résultat string

getTitle() public méthode

The title of the image.
public getTitle ( ) : string
Résultat string

optionalWriteElement() protected méthode

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

setCaption() public méthode

Set the caption of the image.
public setCaption ( string $caption )
$caption string

setGeoLocation() public méthode

Set the geographic location of the image.
public setGeoLocation ( string $geoLocation )
$geoLocation string

setLicense() public méthode

Set a URL to the license of the image.
public setLicense ( string $license )
$license string

setTitle() public méthode

Set the title of the image.
public setTitle ( string $title )
$title string

Property Details

$caption protected_oe property

The caption of the image.
protected string $caption
Résultat string

$geoLocation protected_oe property

The geographic location of the image.
protected string $geoLocation
Résultat string

$license protected_oe property

A URL to the license of the image.
protected string $license
Résultat string

$loc protected_oe property

Location (URL).
protected string $loc
Résultat string

$title protected_oe property

The title of the image.
protected string $title
Résultat string