DNSCrypt Proxy Plugin

ControllerBase extends ControllerRoot
in package

Class ControllerBase implements core controller for OPNsense framework

This is a special version of ControllerBase which parses the model XML differently than the standard ControllerBase.

It provides primarily a single function from the original, and is only used in the SettingsController class to parse the form XML into an array.

Table of Contents

getForm()  : array<string|int, mixed>
parse an xml type form
parseFormNode()  : array<string|int, mixed>
Special version of parseFromNode() which recurses deeper (infinite), and supports arrays at all levels, and attributes at levels deeper than than original.

Methods

getForm()

parse an xml type form

public getForm( $formname) : array<string|int, mixed>
Parameters
$formname :
Tags
throws
Exception
Return values
array<string|int, mixed>

parseFormNode()

Special version of parseFromNode() which recurses deeper (infinite), and supports arrays at all levels, and attributes at levels deeper than than original.

private parseFormNode( $xmlNode) : array<string|int, mixed>

It allows for a lot more flexibility in the design of the form XMLs.

Parameters
$xmlNode :
Return values
array<string|int, mixed>

Search results