Documentation

RelsPart extends Rels
in package

Word2007 part relationship writer: word/_rels/(header|footer|footnotes|endnotes)*.xml.rels.

Tags
since
0.11.0

Table of Contents

Properties

$dateFormat  : string
$parentWriter  : AbstractWriter
Parent writer.
$media  : array<string|int, mixed>
Media relationships.

Methods

getParentWriter()  : AbstractWriter
Get parent writer.
setMedia()  : self
Set media.
setParentWriter()  : void
Set parent writer.
write()  : string
Write part.
getXmlWriter()  : XMLWriter
Get XML Writer.
writeRels()  : void
Write relationships.
writeText()  : bool
Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().
writeMediaRel()  : void
Write media relationships.
writeRel()  : void
Write individual rels entry.

Properties

$dateFormat

protected string $dateFormat = 'Y-m-d\TH:i:sP'

Date format

$media

Media relationships.

private array<string|int, mixed> $media = []

Methods

setMedia()

Set media.

public setMedia(array<string|int, mixed> $media) : self
Parameters
$media : array<string|int, mixed>
Return values
self

write()

Write part.

public write() : string
Return values
string

writeRels()

Write relationships.

protected writeRels(XMLWriter $xmlWriter[, array<string|int, mixed> $xmlRels = [] ][, array<string|int, mixed> $mediaRels = [] ][, int $relId = 1 ]) : void
Parameters
$xmlWriter : XMLWriter
$xmlRels : array<string|int, mixed> = []
$mediaRels : array<string|int, mixed> = []
$relId : int = 1

writeText()

Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().

protected writeText(string $content) : bool
Parameters
$content : string

The text string to write

Return values
bool

Returns true on success or false on failure

writeMediaRel()

Write media relationships.

private writeMediaRel(XMLWriter $xmlWriter, int $relId, array<string|int, mixed> $mediaRel) : void
Parameters
$xmlWriter : XMLWriter
$relId : int
$mediaRel : array<string|int, mixed>

writeRel()

Write individual rels entry.

private writeRel(XMLWriter $xmlWriter, int $relId, string $type, string $target[, string $targetMode = '' ]) : void

Format: <Relationship Id="rId..." Type="http://..." Target="....xml" TargetMode="..." />

Parameters
$xmlWriter : XMLWriter
$relId : int

Relationship ID

$type : string

Relationship type

$target : string

Relationship target

$targetMode : string = ''

Relationship target mode


        
On this page

Search results