Jobbuddy
Chargement...
Recherche...
Aucune correspondance
Référence de la classe Inline

Fonctions membres publiques statiques

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)

Champs de données

const REGEX_QUOTED_STRING = '(?:"([^"\\\\‍]*+(?:\\\\.[^"\\\\‍]*+)*+)"|\'([^\']*+(?:\'\'[^\']*+)*+)\')'

Attributs publics statiques

static int $parsedLineNumber = -1
static string $parsedFilename = null

Description détaillée

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

Documentation des fonctions membres

◆ dump()

dump ( mixed $value,
int $flags = 0 )
static

Dumps a given PHP variable to a YAML string.

Paramètres
mixed$valueThe PHP variable to convert
int$flagsA bit field of Yaml::DUMP_* constants to customize the dumped YAML string
Exceptions
DumpExceptionWhen 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$flagsA bit field of Yaml::PARSE_* constants to customize the YAML parser behavior
array$referencesMapping of variable names to values
Exceptions
ParseException

◆ 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
ParseExceptionWhen malformed inline YAML string is parsed

La documentation de cette classe a été générée à partir du fichier suivant :