|
|
static | initialize (int $flags, ?int $parsedLineNumber=null, ?string $parsedFilename=null) |
| static | parse (string $value, int $flags=0, array &$references=[]) |
| static | dump (mixed $value, int $flags=0) |
| static | isHash (array|\ArrayObject|\stdClass $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 int | $parsedLineNumber = -1 |
|
static string | $parsedFilename = null |
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()
| dump |
( |
mixed | $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 |
◆ isHash()
| isHash |
( |
array|\ArrayObject|\stdClass | $value | ) |
|
|
static |
Check if given array is hash or just normal indexed array.
◆ parse()
| parse |
( |
string | $value, |
|
|
int | $flags = 0, |
|
|
array & | $references = [] ) |
|
static |
Converts a YAML string to a PHP value.
- Paramètres
-
| int | $flags | A bit field of Yaml::PARSE_* constants to customize the YAML parser behavior |
| array | $references | Mapping of variable names to values |
- Exceptions
-
◆ parseScalar()
| parseScalar |
( |
string | $scalar, |
|
|
int | $flags = 0, |
|
|
?array | $delimiters = null, |
|
|
int & | $i = 0, |
|
|
bool | $evaluate = true, |
|
|
array & | $references = [], |
|
|
?bool & | $isQuoted = null ) |
|
static |
Parses a YAML scalar.
- Exceptions
-
| ParseException | When malformed inline YAML string is parsed |
La documentation de cette classe a été générée à partir du fichier suivant :
- vendor/symfony/yaml/Inline.php