Documentation

Value
in package
implements Countable

Description of Value

Tags
author

zozlak

Table of Contents

Interfaces

Countable

Constants

ACTION  = [self::ACTION_APPEND, self::ACTION_OVERWRITE]
ACTION_APPEND  = 'append'
ACTION_DEFAULT  = self::ACTION_APPEND
ACTION_OVERWRITE  = 'overwrite'
AGG  = '`^(?:' . self::AGG_NONE . '|(?:' . self::AGG_MIN . '|' . self::AGG_MAX . ')(?:,.*)?)`'
AGG_DEFAULT  = self::AGG_NONE
AGG_MAX  = 'max'
AGG_MIN  = 'min'
AGG_NONE  = 'none'
AS  = '`^(' . self::AS_XML . '|' . self::AS_TEXT . '|' . self::AS_ATTRIBUTE . ')$`'
AS_ATTRIBUTE  = '@.*'
AS_DEFAULT  = self::AS_TEXT
AS_TEXT  = 'text'
AS_XML  = 'xml'
FORMAT  = '`^[DUbcdeEfFgGhHosuxX]:.*$`'
LANG  = [self::LANG_SKIP, self::LANG_IF_EMPTY, self::LANG_OVERWRITE]
LANG_DEFAULT  = self::LANG_SKIP
LANG_IF_EMPTY  = 'if empty'
LANG_OVERWRITE  = 'overwrite'
LANG_SKIP  = 'skip'
MAP  = '`^(?:[-_0-9A-Za-z]+|/.*)$`'
REQ  = [self::REQ_REQUIRED, self::REQ_OPTIONAL]
REQ_DEFAULT  = self::REQ_REQUIRED
REQ_OPTIONAL  = 'optional'
REQ_REQUIRED  = 'required'

Properties

$action  : string
$aggregate  : string
$as  : string
$format  : string
$lang  : string
$map  : string
$match  : string
$notMatch  : string
$path  : string
$replace  : string
$required  : string
$valueLangs  : array<string|int, string>
$values  : array<string|int, string>

Methods

count()  : int
fromDomElement()  : self
fromPath()  : self
insert()  : void
isRequired()  : bool
setValues()  : void

Constants

ACTION

public mixed ACTION = [self::ACTION_APPEND, self::ACTION_OVERWRITE]

ACTION_APPEND

public mixed ACTION_APPEND = 'append'

ACTION_DEFAULT

public mixed ACTION_DEFAULT = self::ACTION_APPEND

ACTION_OVERWRITE

public mixed ACTION_OVERWRITE = 'overwrite'

AGG

public mixed AGG = '`^(?:' . self::AGG_NONE . '|(?:' . self::AGG_MIN . '|' . self::AGG_MAX . ')(?:,.*)?)`'

AGG_DEFAULT

public mixed AGG_DEFAULT = self::AGG_NONE

AGG_MAX

public mixed AGG_MAX = 'max'

AGG_MIN

public mixed AGG_MIN = 'min'

AGG_NONE

public mixed AGG_NONE = 'none'

AS

public mixed AS = '`^(' . self::AS_XML . '|' . self::AS_TEXT . '|' . self::AS_ATTRIBUTE . ')$`'

AS_ATTRIBUTE

public mixed AS_ATTRIBUTE = '@.*'

AS_DEFAULT

public mixed AS_DEFAULT = self::AS_TEXT

AS_TEXT

public mixed AS_TEXT = 'text'

AS_XML

public mixed AS_XML = 'xml'

FORMAT

public mixed FORMAT = '`^[DUbcdeEfFgGhHosuxX]:.*$`'

LANG

public mixed LANG = [self::LANG_SKIP, self::LANG_IF_EMPTY, self::LANG_OVERWRITE]

LANG_DEFAULT

public mixed LANG_DEFAULT = self::LANG_SKIP

LANG_IF_EMPTY

public mixed LANG_IF_EMPTY = 'if empty'

LANG_OVERWRITE

public mixed LANG_OVERWRITE = 'overwrite'

LANG_SKIP

public mixed LANG_SKIP = 'skip'

MAP

public mixed MAP = '`^(?:[-_0-9A-Za-z]+|/.*)$`'

REQ

public mixed REQ = [self::REQ_REQUIRED, self::REQ_OPTIONAL]

REQ_DEFAULT

public mixed REQ_DEFAULT = self::REQ_REQUIRED

REQ_OPTIONAL

public mixed REQ_OPTIONAL = 'optional'

REQ_REQUIRED

public mixed REQ_REQUIRED = 'required'

Properties

$action

public string $action = self::ACTION_DEFAULT

$aggregate

public string $aggregate = self::AGG_DEFAULT

$as

public string $as = self::AS_DEFAULT

$format

public string $format

$lang

public string $lang = self::LANG_DEFAULT

$match

public string $match

$notMatch

public string $notMatch

$replace

public string $replace

$required

public string $required = self::REQ_DEFAULT

$valueLangs

public array<string|int, string> $valueLangs

$values

public array<string|int, string> $values

Methods

count()

public count() : int
Return values
int

fromDomElement()

public static fromDomElement(DOMElement $el[, string $suffix = '' ]) : self
Parameters
$el : DOMElement
$suffix : string = ''
Return values
self

fromPath()

public static fromPath(string $path) : self
Parameters
$path : string
Return values
self

insert()

public insert(DOMElement $el, int $index) : void
Parameters
$el : DOMElement
$index : int

isRequired()

public isRequired() : bool
Return values
bool

setValues()

public setValues(array<string|int, TermInterface$values, ValueMapper $mapper) : void
Parameters
$values : array<string|int, TermInterface>
$mapper : ValueMapper

        
On this page

Search results