Metadata can be an array by setting allow_multiple to true, but it is an
indexed array with no control over the indexing.
public create ( integer $entity_guid, string $name, string $value, string $value_type = '', integer $owner_guid, integer $access_id = ACCESS_PRIVATE, boolean $allow_multiple = false ) : integer | false | ||
$entity_guid | integer | The entity to attach the metadata to |
$name | string | Name of the metadata |
$value | string | Value of the metadata |
$value_type | string | 'text', 'integer', or '' for automatic detection |
$owner_guid | integer | GUID of entity that owns the metadata. Default is logged in user. |
$access_id | integer | Default is ACCESS_PRIVATE |
$allow_multiple | boolean | Allow multiple values for one key. Default is false |
return | integer | false | id of metadata or false if failure |