public createFromArray ( integer $entity_guid, array $name_and_values, string $value_type, integer $owner_guid, integer $access_id = ACCESS_PRIVATE, boolean $allow_multiple = false ) : boolean | ||
$entity_guid | integer | The entity to attach the metadata to |
$name_and_values | array | Associative array - a value can be a string, number, bool |
$value_type | string | 'text', 'integer', or '' for automatic detection |
$owner_guid | integer | GUID of entity that owns the metadata |
$access_id | integer | Default is ACCESS_PRIVATE |
$allow_multiple | boolean | Allow multiple values for one key. Default is false |
return | boolean |