Table of Contents
Properties
-
$contents
: SimpleXMLElement
-
$Creator
: string
-
$Issuer
: string
-
$templates
: array<string|int, mixed>
Methods
-
__construct()
: mixed
-
addAsset()
: mixed
-
loadFromFile()
: static
-
loadFromTemplate()
: static
-
loadFromText()
: static
-
saveToFile()
: bool
$contents
private
SimpleXMLElement
$contents
$Creator
private
string
$Creator
= 'Spottix Renamer'
$Issuer
private
string
$Issuer
= 'Brightfish'
$templates
private
array<string|int, mixed>
$templates
__construct()
public
__construct() : mixed
-
throws
-
Exception
addAsset()
public
addAsset(string $filename[, string $type = 'CPL' ]) : mixed
Parameters
-
$filename
: string
-
-
$type
: string
= 'CPL'
-
loadFromFile()
public
loadFromFile(string $filename) : static
Parameters
-
$filename
: string
-
-
throws
-
InputMissingException
loadFromTemplate()
public
loadFromTemplate(string $name) : static
Parameters
-
$name
: string
-
-
throws
-
InputMissingException
loadFromText()
public
loadFromText(string $text) : static
Parameters
-
$text
: string
-
saveToFile()
public
saveToFile(string $filename) : bool
Parameters
-
$filename
: string
-
-
throws
-
OutputFailedException
-
throws
-
InputInvalidException