com\setasign\Konquadrat\Config\Reader

Reader

File: /Konquadrat/src/Config/Reader/Reader.php

Class hierarchy

Summary

Constants

TYPE_DATASOURCE

public const Reader::TYPE_DATASOURCE = 8

TYPE_DYNAMIC_FIELDS

public const Reader::TYPE_DYNAMIC_FIELDS = 64

TYPE_GRID

public const Reader::TYPE_GRID = 4

TYPE_IMPORT_DEFINITION

public const Reader::TYPE_IMPORT_DEFINITION = 32

TYPE_OBJECT

public const Reader::TYPE_OBJECT = 1

TYPE_OBJECT_TEMPLATE

public const Reader::TYPE_OBJECT_TEMPLATE = 2

TYPE_QUERY_BUILDER

public const Reader::TYPE_QUERY_BUILDER = 128

TYPE_WORKFLOW

public const Reader::TYPE_WORKFLOW = 16

Properties

$di

protected Reader::$di

Methods

__construct()

public Reader::__construct (
\com\setasign\SetaFramework\Di\Di $di
)
Parameters
$di : \com\setasign\SetaFramework\Di\Di
 

getDi()

public Reader::getDi (
void
): \com\setasign\SetaFramework\Di\Di

loadByFileObject()

public Reader::loadByFileObject (
\com\setasign\SetaFramework\FileSystem\File $file,
int $forceType = 0
): \com\setasign\SetaFramework\Config\Config
Parameters
$file : \com\setasign\SetaFramework\FileSystem\File
 
$forceType : int
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

loadByFilename()

public Reader::loadByFilename (
string $path,
int $forceType = 0,
?string $name = null
): \com\setasign\SetaFramework\Config\Config
Parameters
$path : string
 
$forceType : int
 
$name : ?string
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

loadByString()

public Reader::loadByString (
string $name,
string $string,
int $forceType = 0
): \com\setasign\SetaFramework\Config\Config
Parameters
$name : string
 
$string : string
 
$forceType : int
 
Exceptions

Throws \com\setasign\Konquadrat\Exception

read()

protected Reader::read (
\DOMNode $node,
string $name,
int $forceType = 0
): \com\setasign\SetaFramework\Config\Config
Parameters
$node : \DOMNode
 
$name : string
 
$forceType : int

Bit mask defining which config elements the read-process expects (0 = allows all).

Exceptions

Throws \com\setasign\Konquadrat\Exception