Jelix 1.7.18

XmlMapModifier
in package

allow to modify the urls.xml file.

Table of Contents

$currentEntryPoint  : XmlEntryPoint
$document  : DOMDocument
$file  : string
$modified  : bool
__construct()  : mixed
addEntryPoint()  : XmlEntryPoint
getDefaultEntryPoint()  : XmlEntryPoint
getEntryPoint()  : XmlEntryPoint
removeEntryPoint()  : mixed
removeUrlModuleInOtherEntryPoint()  : mixed
save()  : mixed
setCurrentEntryPoint()  : mixed
setNewDefaultEntryPoint()  : mixed
getEntryPointsOfType()  : array<string|int, DomElement>

Properties

$document

protected DOMDocument $document

the DOM document representing the file

$modified

protected bool $modified = false

indicate if the content is modified, to save or not the file.

Methods

__construct()

public __construct(mixed $file[, mixed $createIfNotExists = false ]) : mixed
Parameters
$file : mixed
$createIfNotExists : mixed = false
Return values
mixed

addEntryPoint()

public addEntryPoint(mixed $name[, mixed $type = 'classic' ][, array<string|int, mixed> $options = array() ]) : XmlEntryPoint
Parameters
$name : mixed
$type : mixed = 'classic'
$options : array<string|int, mixed> = array()

options are default=true/(false) https=true/(false) noentrypoint=true/(false) optionalTrailingSlash=true/(false)

Return values
XmlEntryPoint

removeEntryPoint()

public removeEntryPoint(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

removeUrlModuleInOtherEntryPoint()

public removeUrlModuleInOtherEntryPoint(mixed $module, XmlEntryPoint $except) : mixed
Parameters
$module : mixed
$except : XmlEntryPoint
Return values
mixed

setCurrentEntryPoint()

public setCurrentEntryPoint(mixed $name[, mixed $type = 'classic' ]) : mixed
Parameters
$name : mixed
$type : mixed = 'classic'
Return values
mixed

setNewDefaultEntryPoint()

public setNewDefaultEntryPoint(mixed $name, mixed $type) : mixed
Parameters
$name : mixed
$type : mixed
Return values
mixed

getEntryPointsOfType()

protected getEntryPointsOfType([string $type = 'classic' ]) : array<string|int, DomElement>
Parameters
$type : string = 'classic'
Return values
array<string|int, DomElement>

Search results