|
static | initialize (int $flags, int $parsedLineNumber=null, string $parsedFilename=null) |
|
static | parse (string $value=null, int $flags=0, array &$references=[]) |
|
static | dump ($value, int $flags=0) |
|
static | isHash ($value) |
|
static | parseScalar (string $scalar, int $flags=0, array $delimiters=null, int &$i=0, bool $evaluate=true, array &$references=[], bool &$isQuoted=null) |
|
static | evaluateBinaryScalar (string $scalar) |
|
|
const | REGEX_QUOTED_STRING = '(?:"([^"\\\\]*+(?:\\\\.[^"\\\\]*+)*+)"|\'([^\']*+(?:\'\'[^\']*+)*+)\')' |
|
|
static | dumpArray (array $value, int $flags) |
|
static | dumpNull (int $flags) |
|
static | parseQuotedScalar (string $scalar, int &$i=0) |
|
static | parseSequence (string $sequence, int $flags, int &$i=0, array &$references=[]) |
|
static | parseMapping (string $mapping, int $flags, int &$i=0, array &$references=[]) |
|
static | evaluateScalar (string $scalar, int $flags, array &$references=[], bool &$isQuotedString=null) |
|
static | parseTag (string $value, int &$i, int $flags) |
|
static | isBinaryString (string $value) |
|
static | getTimestampRegex () |
|
static | getHexRegex () |
|
Inline implements a YAML parser/dumper for the YAML inline syntax.
- Auteur
- Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
◆ dump()
static dump |
( |
|
$value, |
|
|
int |
$flags = 0 |
|
) |
| |
|
static |
Dumps a given PHP variable to a YAML string.
- Paramètres
-
mixed | $value | The PHP variable to convert |
int | $flags | A bit field of Yaml::DUMP_* constants to customize the dumped YAML string |
- Exceptions
-
DumpException | When trying to dump PHP resource |
Références $key, $output, $val, $value, Yaml\DUMP_EXCEPTION_ON_INVALID_TYPE, Yaml\DUMP_OBJECT, Yaml\DUMP_OBJECT_AS_MAP, elseif, Escaper\escapeWithDoubleQuotes(), Escaper\escapeWithSingleQuotes(), null, Parser\preg_match(), Escaper\requiresDoubleQuoting(), et Escaper\requiresSingleQuoting().
Référencé par Dumper\dump().
◆ dumpArray()
static dumpArray |
( |
array |
$value, |
|
|
int |
$flags |
|
) |
| |
|
staticprivate |
◆ dumpNull()
static dumpNull |
( |
int |
$flags | ) |
|
|
staticprivate |
◆ evaluateBinaryScalar()
static evaluateBinaryScalar |
( |
string |
$scalar | ) |
|
|
static |
◆ evaluateScalar()
static evaluateScalar |
( |
string |
$scalar, |
|
|
int |
$flags, |
|
|
array & |
$references = [] , |
|
|
bool & |
$isQuotedString = null |
|
) |
| |
|
staticprivate |
Evaluates scalars and replaces magic values.
- Renvoie
- mixed
- Exceptions
-
ParseException | when object parsing support was disabled and the parser detected a PHP object or when a reference could not be resolved |
Références $i, $value, null, Yaml\PARSE_DATETIME, et Parser\preg_match().
◆ getHexRegex()
Gets a regex that matches a YAML number in hexadecimal notation.
◆ getTimestampRegex()
static getTimestampRegex |
( |
| ) |
|
|
staticprivate |
◆ initialize()
static initialize |
( |
int |
$flags, |
|
|
int |
$parsedLineNumber = null , |
|
|
string |
$parsedFilename = null |
|
) |
| |
|
static |
◆ isBinaryString()
static isBinaryString |
( |
string |
$value | ) |
|
|
staticprivate |
◆ isHash()
Check if given array is hash or just normal indexed array.
- Paramètres
-
array | \ArrayObject | \stdClass | $value | The PHP array or array-like object to check |
Références $key, $val, et $value.
Référencé par Dumper\dump().
◆ parse()
static parse |
( |
string |
$value = null , |
|
|
int |
$flags = 0 , |
|
|
array & |
$references = [] |
|
) |
| |
|
static |
◆ parseMapping()
static parseMapping |
( |
string |
$mapping, |
|
|
int |
$flags, |
|
|
int & |
$i = 0 , |
|
|
array & |
$references = [] |
|
) |
| |
|
staticprivate |
◆ parseQuotedScalar()
static parseQuotedScalar |
( |
string |
$scalar, |
|
|
int & |
$i = 0 |
|
) |
| |
|
staticprivate |
Parses a YAML quoted scalar.
- Exceptions
-
ParseException | When malformed inline YAML string is parsed |
Références $i, $output, et Parser\preg_match().
◆ parseScalar()
static parseScalar |
( |
string |
$scalar, |
|
|
int |
$flags = 0 , |
|
|
array |
$delimiters = null , |
|
|
int & |
$i = 0 , |
|
|
bool |
$evaluate = true , |
|
|
array & |
$references = [] , |
|
|
bool & |
$isQuoted = null |
|
) |
| |
|
static |
◆ parseSequence()
static parseSequence |
( |
string |
$sequence, |
|
|
int |
$flags, |
|
|
int & |
$i = 0 , |
|
|
array & |
$references = [] |
|
) |
| |
|
staticprivate |
◆ parseTag()
static parseTag |
( |
string |
$value, |
|
|
int & |
$i, |
|
|
int |
$flags |
|
) |
| |
|
staticprivate |
◆ $constantSupport
◆ $exceptionOnInvalidType
$exceptionOnInvalidType = false |
|
staticprivate |
◆ $objectForMap
◆ $objectSupport
◆ $parsedFilename
◆ $parsedLineNumber
◆ REGEX_QUOTED_STRING
const REGEX_QUOTED_STRING = '(?:"([^"\\\\]*+(?:\\\\.[^"\\\\]*+)*+)"|\'([^\']*+(?:\'\'[^\']*+)*+)\')' |
La documentation de cette classe a été générée à partir du fichier suivant :