NAME
Catmandu::Fix::LIDO::Value::emit_value & Catmandu::Fix::LIDO::Value::emit_simple_value
SYNOPSIS
emit_value
and emit_simple_value
have the same calling syntax.
emit_value(
$fixer, # The fixer object from the calling emit function inside the calling Fix (required).
$root, # The root path (string) from which the path parameter must be created (required).
$path, # The path (string) for the value - must include the name of the value node (required).
$value, # Path (string) to the value of the component (required).
$lang, # xml:lang attribute, string.
$pref, # pref attribute, string.
$label, # label attribute, string
$source, # source attribute, string.
$type, # type attribute, string.
$is_string # set to 1 if $value is not a path, but a string, so $value is directly interpolated in the emit code.
)
DESCRIPTION
emit_value
and emit_simple_value
will generate the necessary emit code to generate a node in a given path. The node is attached directly to the path, so you must specify the name of the node (e.g. category) in the $path.
Use emit_value
when the node is repeatable and emit_simple_value
when it isn't.
SEE ALSO
AUTHORS
CONTRIBUTORS
- Pieter De Praetere,
pieter at packed.be
- Matthias Vandermaesen,
matthias.vandermaesen at vlaamsekunstcollectie.be
COPYRIGHT AND LICENSE
The Perl software is copyright (c) 2016 by PACKED vzw and VKC vzw. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.