PHP Class Thepixeldeveloper\Sitemap\Output

Afficher le fichier Open project: thepixeldeveloper/sitemap Class Usage Examples

Protected Properties

Свойство Type Description
$indentString string What string is used for indentation.
$indented boolean Is the output indented.
$processingInstructions array Processing instructions.

Méthodes publiques

Méthode Description
addProcessingInstruction ( string $target, string $content ) Adds a processing instruction.
getIndentString ( ) : string String used for indentation.
getOutput ( Thepixeldeveloper\Sitemap\OutputInterface $collection ) : string Renders the Sitemap as an XML string.
isIndented ( ) : boolean Output indented?
setIndentString ( string $indentString ) Set the string used for indentation.
setIndented ( boolean $indented ) Indent the output?

Method Details

addProcessingInstruction() public méthode

Adds a processing instruction.
public addProcessingInstruction ( string $target, string $content )
$target string
$content string

getIndentString() public méthode

String used for indentation.
public getIndentString ( ) : string
Résultat string

getOutput() public méthode

Renders the Sitemap as an XML string.
public getOutput ( Thepixeldeveloper\Sitemap\OutputInterface $collection ) : string
$collection Thepixeldeveloper\Sitemap\OutputInterface
Résultat string

isIndented() public méthode

Output indented?
public isIndented ( ) : boolean
Résultat boolean

setIndentString() public méthode

Set the string used for indentation.
public setIndentString ( string $indentString )
$indentString string

setIndented() public méthode

Indent the output?
public setIndented ( boolean $indented )
$indented boolean

Property Details

$indentString protected_oe property

What string is used for indentation.
protected string $indentString
Résultat string

$indented protected_oe property

Is the output indented.
protected bool $indented
Résultat boolean

$processingInstructions protected_oe property

Processing instructions.
protected array $processingInstructions
Résultat array