PHP Class Thepixeldeveloper\Sitemap\Subelements\Link

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

Protected Properties

Свойство Type Description
$href string Location of the translated page.
$hrefLang string Language code for the page.

Méthodes publiques

Méthode Description
__construct ( string $hrefLang, string $href ) Link constructor.
appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
generateXML ( XMLWriter $XMLWriter )
getHref ( ) : string Location of the translated page.
getHrefLang ( ) : string Language code for the page.

Method Details

__construct() public méthode

Link constructor.
public __construct ( string $hrefLang, string $href )
$hrefLang string
$href string

appendAttributeToCollectionXML() public méthode

public appendAttributeToCollectionXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

generateXML() public méthode

public generateXML ( XMLWriter $XMLWriter )
$XMLWriter XMLWriter

getHref() public méthode

Location of the translated page.
public getHref ( ) : string
Résultat string

getHrefLang() public méthode

Language code for the page.
public getHrefLang ( ) : string
Résultat string

Property Details

$href protected_oe property

Location of the translated page.
protected string $href
Résultat string

$hrefLang protected_oe property

Language code for the page.
protected string $hrefLang
Résultat string