[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/yaml/ -> Inline.php (summary)

(no description)

File Size: 609 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Inline:: (11 methods):
  parse()
  dump()
  isHash()
  dumpArray()
  parseScalar()
  parseQuotedScalar()
  parseSequence()
  parseMapping()
  evaluateScalar()
  getTimestampRegex()
  getHexRegex()


Class: Inline  - X-Ref

Inline implements a YAML parser/dumper for the YAML inline syntax.

parse($value, $exceptionOnInvalidType = false, $objectSupport = false, $objectForMap = false, $references = array()   X-Ref
Converts a YAML string to a PHP value.

param: string $value                  A YAML string
param: bool   $exceptionOnInvalidType True if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
param: bool   $objectSupport          True if object support is enabled, false otherwise
param: bool   $objectForMap           True if maps should return a stdClass instead of array()
param: array  $references             Mapping of variable names to values
return: mixed A PHP value

dump($value, $exceptionOnInvalidType = false, $objectSupport = false)   X-Ref
Dumps a given PHP variable to a YAML string.

param: mixed $value                  The PHP variable to convert
param: bool  $exceptionOnInvalidType True if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
param: bool  $objectSupport          True if object support is enabled, false otherwise
return: string The YAML string representing the PHP value

isHash(array $value)   X-Ref
Check if given array is hash or just normal indexed array.

param: array $value The PHP array to check
return: bool true if value is hash array, false otherwise

dumpArray($value, $exceptionOnInvalidType, $objectSupport)   X-Ref
Dumps a PHP array to a YAML string.

param: array $value                  The PHP array to dump
param: bool  $exceptionOnInvalidType True if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
param: bool  $objectSupport          True if object support is enabled, false otherwise
return: string The YAML string representing the PHP array

parseScalar($scalar, $delimiters = null, $stringDelimiters = array('"', "'")   X-Ref
Parses a YAML scalar.

param: string   $scalar
param: string[] $delimiters
param: string[] $stringDelimiters
param: int      &$i
param: bool     $evaluate
param: array    $references
return: string

parseQuotedScalar($scalar, &$i)   X-Ref
Parses a YAML quoted scalar.

param: string $scalar
param: int    &$i
return: string

parseSequence($sequence, &$i = 0, $references = array()   X-Ref
Parses a YAML sequence.

param: string $sequence
param: int    &$i
param: array  $references
return: array

parseMapping($mapping, &$i = 0, $references = array()   X-Ref
Parses a YAML mapping.

param: string $mapping
param: int    &$i
param: array  $references
return: array|\stdClass

evaluateScalar($scalar, $references = array()   X-Ref
Evaluates scalars and replaces magic values.

param: string $scalar
param: array  $references
return: mixed The evaluated YAML string

getTimestampRegex()   X-Ref
Gets a regex that matches a YAML date.

return: string The regular expression

getHexRegex()   X-Ref
Gets a regex that matches a YAML number in hexadecimal notation.

return: string



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1