FacturaScripts

VisualItemLoadEngine extends VisualItemLoadEngine
in package

Class created by Core/Base/PluginDeploy

Tags
author

FacturaScripts [email protected]

Table of Contents

$namespace  : string
getNamespace()  : string
installXML()  : bool
Loads an xmlview data into a PageOption model.
loadArray()  : mixed
Reads PageOption data and loads groups, columns, rows and widgets into selected arrays.
setNamespace()  : mixed
getGroupsColumns()  : mixed
Load the column structure from the JSON
saveError()  : mixed
xmlToArray()  : array<string|int, mixed>
Turns a xml into an array.
xmlToArrayAux()  : string

Properties

$namespace

private static string $namespace = '\\FacturaScripts\\Dinamic\\Lib\\Widget\\'

Methods

installXML()

Loads an xmlview data into a PageOption model.

public static installXML(string $name, PageOption &$model) : bool
Parameters
$name : string
$model : PageOption
Return values
bool

loadArray()

Reads PageOption data and loads groups, columns, rows and widgets into selected arrays.

public static loadArray(array<string|int, mixed> &$columns, array<string|int, mixed> &$modals, array<string|int, mixed> &$rows, PageOption $model) : mixed
Parameters
$columns : array<string|int, mixed>
$modals : array<string|int, mixed>
$rows : array<string|int, mixed>
$model : PageOption
Return values
mixed

setNamespace()

public static setNamespace(string $namespace) : mixed
Parameters
$namespace : string
Return values
mixed

getGroupsColumns()

Load the column structure from the JSON

private static getGroupsColumns(array<string|int, mixed> $columns, array<string|int, mixed> &$target) : mixed
Parameters
$columns : array<string|int, mixed>
$target : array<string|int, mixed>
Return values
mixed

saveError()

private static saveError(string $message[, array<string|int, mixed> $context = [] ]) : mixed
Parameters
$message : string
$context : array<string|int, mixed> = []
Return values
mixed

xmlToArray()

Turns a xml into an array.

private static xmlToArray(SimpleXMLElement $xml) : array<string|int, mixed>
Parameters
$xml : SimpleXMLElement
Return values
array<string|int, mixed>

xmlToArrayAux()

private static xmlToArrayAux(string $tag, SimpleXMLElement $attributes) : string
Parameters
$tag : string
$attributes : SimpleXMLElement
Return values
string

Search results