UNB Components Code Reference

UnbUser::SetVcardEntry method

Sets a vcard entry for this user.

public function UnbUser::SetVcardEntry ($type, $data, $visibility = null);

Parameters

type

(string) Entry type to set for this user (max. 255 characters)

data

(string) Entry data (max. 65,535 characters)

visibility  –  optional, default: null

(int) For the meaning of the 'Visibility' item, see the UnbUserVcardVisibility constants. Set this null to not change the setting for existing entries and use UnbUserVcardVisibility::Public_ visibility for new entries.

Remarks

Vcard entries for this user will be updated, or inserted if they don't exist yet.

Exceptions thrown

InvalidArgumentException No description available.
LengthException No description available.
UnbSecurityException 

If not logged in or not the same user/no administrator.

UnbDatabaseException No description available.

Privileges required

Must be logged in as the same user or with administrator privilege

Member of class: UnbUser

Implementation file: user.class.php, line 1135

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.