Difference between revisions of "METADATA DECODE()"
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) (→Description) |
||
Line 10: | Line 10: | ||
==Description== | ==Description== | ||
The METADATA_DECODE() function is used to create an object from the metadata string, <expC>. | The METADATA_DECODE() function is used to create an object from the metadata string, <expC>. | ||
+ | |||
+ | Note that conditional metadata - where multiple conditions and matching values can be applied to a single attribute name - should be handled using the [[MetaData Editor]], not using an object, since object member names must be unique. | ||
==Example== | ==Example== |
Latest revision as of 05:02, 11 April 2017
Contents
Purpose
Function to create an object from a metadata string
Syntax
METADATA_DECODE(<expC>)
See Also
ACLASS(), ADDPROPERTY(), AMEMBERS(), COLUMNMETADATA(), COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, JSON_DECODE(), JSON_DECODE_FILE(), JSON_ENCODE(), LIST CLASSES, LOADOBJECT(), MetaData Editor, METADATA_ENCODE(), METADATA_FINDTYPE(), NEWOBJECT(), OBJECT(), PRINT_JSON(), PRINT_HTML(), PRINT_R(), PRINT_XML(), REMOVEPROPERTY(), REQUIRE_ONCE(), SAVEOBJECT(), SQL SELECT, SOCKET_CLOSE(), SOCKET_LASTERROR(), SOCKET_OPEN(), SOCKET_PEEK(), SOCKET_READ(), SOCKET_SERVER(), SOCKET_WRITE(), TABLEMETADATA(), TABLEMETADATAVERSION(), WITH, XML_DECODE_FILE()
Description
The METADATA_DECODE() function is used to create an object from the metadata string, <expC>.
Note that conditional metadata - where multiple conditions and matching values can be applied to a single attribute name - should be handled using the MetaData Editor, not using an object, since object member names must be unique.
Example
myobj = METADATA_DECODE("name=barry;company=Lianja;amount=10") ? myobj Object (refcnt=1) ( [name] => barry [company] => Lianja [amount] => 10 )