ILIAS
eassessment Revision 61809
|
Public Member Functions | |
ilvCard ($version="3.0") | |
ilvCard Constructor | |
encode ($string) | |
Encode data with "b" type encoding according to RFC 2045. | |
fold ($string="", $length=75) | |
Fold a string according to RFC 2425. | |
escape ($string) | |
Escapes a string according to RFC 2426. | |
& | explodeVar ($variable, $separator=",") |
Splits a variable into an array using a separator and escapes every value. | |
buildVCard () | |
Builds a vCard string out of the attributes of this object. | |
quoted_printable_encode ($input, $line_max=76) | |
Creates a quoted printable encoded string according to RFC 2045. | |
setFormattedName ($formatted_name) | |
Sets the value for the vCard FN type. | |
setName ($family_name, $given_name="", $additional_names="", $honorific_prefixes="", $honorific_suffixes="") | |
Sets the value for the vCard N type. | |
setNickname ($nickname) | |
Sets the value for the vCard NICKNAME type. | |
setPhoto ($photo, $type="") | |
Sets the value for the vCard PHOTO type. | |
setBirthday ($year, $month, $day) | |
Sets the value for the vCard BDAY type. | |
setAddress ($po_box="", $extended_address="", $street_address="", $locality="", $region="", $postal_code="", $country="", $type=ADR_TYPE_NONE) | |
Sets the value for the vCard ADR type. | |
setLabel ($label="", $type=ADR_TYPE_NONE) | |
Sets the value for the vCard LABEL type. | |
setPhone ($number="", $type=TEL_TYPE_VOICE) | |
Sets the value for the vCard TEL type. | |
setEmail ($address="", $type=EMAIL_TYPE_INTERNET) | |
Sets the value for the vCard EMAIL type. | |
setMailer ($name="") | |
Sets the value for the vCard MAILER type. | |
setTimezone ($zone="") | |
Sets the value for the vCard TZ type. | |
setPosition ($latitude="", $longitude="") | |
Sets the value for the vCard GEO type. | |
setTitle ($title="") | |
Sets the value for the vCard TITLE type. | |
setRole ($role="") | |
Sets the value for the vCard ROLE type. | |
setLogo ($logo, $type="") | |
Sets the value for the vCard LOGO type. | |
setAgent ($agent="") | |
Sets the value for the vCard AGENT type. | |
setOrganization ($organization="") | |
Sets the value for the vCard ORG type. | |
setCategories ($categories) | |
Sets the value for the vCard CATEGORIES type. | |
setNote ($note="") | |
Sets the value for the vCard NOTE type. | |
setProductId ($product_id="") | |
Sets the value for the vCard PRODID type. | |
setRevision ($revision_date="") | |
Sets the value for the vCard REV type. | |
setSortString ($string="") | |
Sets the value for the vCard SORT-STRING type. | |
setSound ($sound="", $type="") | |
Sets the value for the vCard SOUND type. | |
setUID ($uid="", $type="") | |
Sets the value for the vCard UID type. | |
setURL ($uri="") | |
Sets the value for the vCard URL type. | |
setVersion ($version="3.0") | |
Sets the value for the vCard VERSION type. | |
setClassification ($classification="") | |
Sets the value for the vCard CLASS type. | |
setKey ($key="", $type="") | |
Sets the value for the vCard KEY type. | |
getFilename () | |
getMimetype () |
Data Fields | |
$types | |
An array containing the vCard types. | |
$filename | |
The filename of the vCard used when saving the vCard. |
Definition at line 77 of file class.ilvCard.php.
ilvCard::buildVCard | ( | ) |
Builds a vCard string out of the attributes of this object.
Builds a vCard string out of the attributes of this object
Definition at line 222 of file class.ilvCard.php.
References $test, $title, $type, ADR_TYPE_DOM, ADR_TYPE_HOME, ADR_TYPE_INTL, ADR_TYPE_PARCEL, ADR_TYPE_POSTAL, ADR_TYPE_PREF, ADR_TYPE_WORK, EMAIL_TYPE_INTERNET, EMAIL_TYPE_PREF, EMAIL_TYPE_x400, fold(), TEL_TYPE_BBS, TEL_TYPE_CAR, TEL_TYPE_CELL, TEL_TYPE_FAX, TEL_TYPE_HOME, TEL_TYPE_ISDN, TEL_TYPE_MODEM, TEL_TYPE_MSG, TEL_TYPE_PAGER, TEL_TYPE_PCS, TEL_TYPE_PREF, TEL_TYPE_VIDEO, TEL_TYPE_VOICE, and TEL_TYPE_WORK.
ilvCard::encode | ( | $string | ) |
Encode data with "b" type encoding according to RFC 2045.
Encode data with "b" type encoding according to RFC 2045
string | $string | Binary string to be encoded |
Definition at line 142 of file class.ilvCard.php.
References escape(), and quoted_printable_encode().
Referenced by setLogo(), setPhoto(), and setSound().
ilvCard::escape | ( | $string | ) |
Escapes a string according to RFC 2426.
Escapes a string according to RFC 2426
string | $string | String to be escaped |
Definition at line 185 of file class.ilvCard.php.
Referenced by encode(), explodeVar(), setAgent(), setClassification(), setEmail(), setFormattedName(), setLabel(), setMailer(), setNote(), setPhone(), setProductId(), setRevision(), setRole(), setSortString(), setTimezone(), setTitle(), setUID(), and setURL().
& ilvCard::explodeVar | ( | $variable, | |
$separator = "," |
|||
) |
Splits a variable into an array using a separator and escapes every value.
Splits a variable into an array using a separator and escapes every value
string | $variable | String to be splitted |
string | $separator | Separator string |
Definition at line 204 of file class.ilvCard.php.
References $separator, and escape().
Referenced by setAddress(), setCategories(), setName(), setNickname(), and setOrganization().
ilvCard::fold | ( | $string = "" , |
|
$length = 75 |
|||
) |
Fold a string according to RFC 2425.
Fold a string according to RFC 2425
string | $string | String to be folded |
integer | $length | Maximum length of a line |
Definition at line 157 of file class.ilvCard.php.
Referenced by buildVCard().
ilvCard::getFilename | ( | ) |
Definition at line 1842 of file class.ilvCard.php.
References $filename.
ilvCard::getMimetype | ( | ) |
Definition at line 1854 of file class.ilvCard.php.
ilvCard::ilvCard | ( | $version = "3.0" | ) |
ilvCard Constructor
public
Definition at line 98 of file class.ilvCard.php.
ilvCard::quoted_printable_encode | ( | $input, | |
$line_max = 76 |
|||
) |
Creates a quoted printable encoded string according to RFC 2045.
Creates a quoted printable encoded string according to RFC 2045. The method was taken from the php documentation discussion forum
string | $input | A binary string to encode |
integer | $line_max | The maximum number of characters per line for the result string |
Definition at line 753 of file class.ilvCard.php.
Referenced by encode().
ilvCard::setAddress | ( | $po_box = "" , |
|
$extended_address = "" , |
|||
$street_address = "" , |
|||
$locality = "" , |
|||
$region = "" , |
|||
$postal_code = "" , |
|||
$country = "" , |
|||
$type = ADR_TYPE_NONE |
|||
) |
Sets the value for the vCard ADR type.
Sets the value for the vCard ADR type to specify the components of the delivery address for the vCard object.
Type example:
ADR;TYPE=dom,home,postal,parcel:;;123 Main Street;Any Town;CA;91921-1234
Type special notes: The structured type value consists of a sequence of address components. The component values MUST be specified in their corresponding position. The structured type value corresponds, in sequence, to the post office box; the extended address; the street address; the locality (e.g., city); the region (e.g., state or province); the postal code; the country name. When a component value is missing, the associated component separator MUST still be specified.
The text components are separated by the SEMI-COLON character (ASCII decimal 59). Where it makes semantic sense, individual text components can include multiple text values (e.g., a "street" component with multiple lines) separated by the COMMA character (ASCII decimal 44).
The type can include the type parameter "TYPE" to specify the delivery address type. The TYPE parameter values can include "dom" to indicate a domestic delivery address; "intl" to indicate an international delivery address; "postal" to indicate a postal delivery address; "parcel" to indicate a parcel delivery address; "home" to indicate a delivery address for a residence; "work" to indicate delivery address for a place of work; and "pref" to indicate the preferred delivery address when more than one address is specified. These type parameter values can be specified as a parameter list (i.e., "TYPE=dom;TYPE=postal") or as a value list (i.e., "TYPE=dom,postal"). This type is based on semantics of the X.520 geographical and postal addressing attributes. The default is "TYPE=intl,postal,parcel,work". The default can be overridden to some other set of values by specifying one or more alternate values. For example, the default can be reset to "TYPE=dom,postal,work,home" to specify a domestic delivery address for postal delivery to a residence that is also used for work.
string | $po_box | Post office box |
string | $extended_address | Extended address |
string | $street_address | Street address |
string | $locality | Locality (e.g. city) |
string | $region | Region (e.g. state or province) |
string | $postal_code | Postal code |
string | $country | Country |
integer | $type | The address type (can be combined with the + operator) public |
Definition at line 1041 of file class.ilvCard.php.
References $type, ADR_TYPE_INTL, ADR_TYPE_NONE, ADR_TYPE_PARCEL, ADR_TYPE_POSTAL, ADR_TYPE_WORK, and explodeVar().
ilvCard::setAgent | ( | $agent = "" | ) |
Sets the value for the vCard AGENT type.
Sets the value for the vCard AGENT type to specify information about another person who will act on behalf of the individual or resource associated with the vCard.
Type example:
AGENT;VALUE=uri: CID:JQPUB AGENT:BEGIN:VCARD:Susan Thomas:+1-919-555- 1234\;INTERNET: LIC. part3 .960 129T0 8302 0.xyz Mail @host 3.co msthom:VCARD as@h ost.c om
Type value: The default is a single vcard value. It can also be reset to either a single text or uri value. The text value can be used to specify textual information. The uri value can be used to specify information outside of this MIME entity.
Type special notes: This type typically is used to specify an area administrator, assistant, or secretary for the individual associated with the vCard. A key characteristic of the Agent type is that it represents somebody or something that is separately addressable.
string | $agent | Agent type public |
Definition at line 1440 of file class.ilvCard.php.
References escape().
ilvCard::setBirthday | ( | $year, | |
$month, | |||
$day | |||
) |
Sets the value for the vCard BDAY type.
Sets the value for the vCard BDAY type to specify the birth date of the object the vCard represents.
Type example:
BDAY:1996-04-15 BDAY:1953-10-15T23:10:00Z BDAY:1987-09-27T08:30:00-06:00
Type value: The default is a single date value. It can also be reset to a single date-time value.
integer | $year | The year of the birthday |
integer | $month | The month of the birthday |
integer | $day | The day of the birthday public |
Definition at line 970 of file class.ilvCard.php.
ilvCard::setCategories | ( | $categories | ) |
Sets the value for the vCard CATEGORIES type.
Sets the value for the vCard CATEGORIES type to specify application category information about the vCard.
Type example:
CATEGORIES:TRAVEL AGENT CATEGORIES:INTERNET,IETF,INDUSTRY,INFORMATION TECHNOLOGY
Type value: One or more text values separated by a COMMA character (ASCII decimal 44).
array | $categories | Category information public |
Definition at line 1494 of file class.ilvCard.php.
References explodeVar().
ilvCard::setClassification | ( | $classification = "" | ) |
Sets the value for the vCard CLASS type.
Sets the value for the vCard CLASS type to specify the access classification for a vCard object.
Type example:
CLASS:PUBLIC CLASS:PRIVATE CLASS:CONFIDENTIAL
Type value: A single text value.
Type special notes: An access classification is only one component of the general security model for a directory service. The classification attribute provides a method of capturing the intent of the owner for general access to information described by the vCard object.
string | $classification | Classification string public |
Definition at line 1782 of file class.ilvCard.php.
References escape().
ilvCard::setEmail | ( | $address = "" , |
|
$type = EMAIL_TYPE_INTERNET |
|||
) |
Sets the value for the vCard EMAIL type.
Sets the value for the vCard EMAIL type to specify the electronic mail address for communication with the object the vCard represents.
Type example:
EMAIL;TYPE=internet:jqpub EMAIL;TYPE=internet: lic@ xyz.d om1. comjdoe@ EMAIL;TYPE=internet,pref: isp. netjane_ doe@ abc.c om
Type special notes: The type can include the type parameter "TYPE" to specify the format or preference of the electronic mail address. The TYPE parameter values can include: "internet" to indicate an Internet addressing type, "x400" to indicate a X.400 addressing type or "pref" to indicate a preferred-use email address when more than one is specified. Another IANA registered address type can also be specified. The default email type is "internet". A non-standard value can also be specified.
string | $address | The email address |
integer | $type | The address type (can be combined with the + operator) public |
Definition at line 1204 of file class.ilvCard.php.
References $type, and escape().
ilvCard::setFormattedName | ( | $formatted_name | ) |
Sets the value for the vCard FN type.
Sets the value for the vCard FN type to specify the formatted text corresponding to the name of the object the vCard represents.
Type example:
FN:Mr. John Q. Public\, Esq.
string | $formatted_name | The formatted text public |
Definition at line 806 of file class.ilvCard.php.
References escape().
Referenced by setName().
ilvCard::setKey | ( | $key = "" , |
|
$type = "" |
|||
) |
Sets the value for the vCard KEY type.
Sets the value for the vCard KEY type to specify a public key or authentication certificate associated with the object that the vCard represents.
Type example:
KEY;ENCODING=b:MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhvcNAQEEBQA wdzELMAkGA1UEBhMCVVMxLDAqBgNVBAoTI05ldHNjYXBlIENbW11bmljYX Rpb25zIENvcnBvcmF0aW9uMRwwGgYDVQQLExNJbmZvcm1hdGlvbiBTeXN0 ZW1zMRwwGgYDVQQDExNyb290Y2EubmV0c2NhcGUuY29tMB4XDTk3MDYwNj E5NDc1OVoXDTk3MTIwMzE5NDc1OVowgYkxCzAJBgNVBAYTAlVTMSYwJAYD VQQKEx1OZXRzY2FwZSBDb21tdW5pY2F0aW9ucyBDb3JwLjEYMBYGA1UEAx MPVGltb3RoeSBBIEhvd2VzMSEwHwYJKoZIhvcNAQkBFhJob3dlc0BuZXRz Y2FwZS5jb20xFTATBgoJkiaJk/IsZAEBEwVob3dlczBcMA0GCSqGSIb3DQ EBAQUAA0sAMEgCQQC0JZf6wkg8pLMXHHCUvMfL5H6zjSk4vTTXZpYyrdN2 dXcoX49LKiOmgeJSzoiFKHtLOIboyludF90CgqcxtwKnAgMBAAGjNjA0MB EGCWCGSAGG+EIBAQQEAwIAoDAfBgNVHSMEGDAWgBT84FToB/GV3jr3mcau +hUMbsQukjANBgkqhkiG9w0BAQQFAAOBgQBexv7o7mi3PLXadkmNP9LcIP mx93HGp0Kgyx1jIVMyNgsemeAwBM+MSlhMfcpbTrONwNjZYW8vJDSoi//y rZlVt9bJbs7MNYZVsyF1unsqaln4/vy6Uawfg8VUMk1U7jt8LYpo4YULU7 UZHPYVUaSgVttImOHZIKi4hlPXBOhcUQ==
Type encoding: The encoding MUST be reset to "b" using the ENCODING parameter in order to specify inline, encoded binary data. If the value is a text value, then the default encoding of 8bit is used and no explicit ENCODING parameter is needed.
Type value: A single value. The default is binary. It can also be reset to text value. The text value can be used to specify a text key.
Type special notes: The type can also include the type parameter TYPE to specify the public key or authentication certificate format. The parameter type should specify an IANA registered public key or authentication certificate format. The parameter type can also specify a non-standard format.
string | $key | Public key |
string | $type | IANA registered public key or authentication certificate format public |
Definition at line 1831 of file class.ilvCard.php.
References $type.
ilvCard::setLabel | ( | $label = "" , |
|
$type = ADR_TYPE_NONE |
|||
) |
Sets the value for the vCard LABEL type.
Sets the value for the vCard LABEL type to specify the formatted text corresponding to delivery address of the object the vCard represents
Type example: A multi-line address label.
LABEL;TYPE=dom,home,postal,parcel:Mr.John Q. Public\, Esq.
Mail Drop: TNE QB Main Street Town\, CA 91921-1234 .S.A.
Type special notes: The type value is formatted text that can be used to present a delivery address label for the vCard object. The type can include the type parameter "TYPE" to specify delivery label type. The TYPE parameter values can include "dom" to indicate a domestic delivery label; "intl" to indicate an international delivery label; "postal" to indicate a postal delivery label; "parcel" to indicate a parcel delivery label; "home" to indicate a delivery label for a residence; "work" to indicate delivery label for a place of work; and "pref" to indicate the preferred delivery label when more than one label is specified. These type parameter values can be specified as a parameter list (i.e., "TYPE=dom;TYPE=postal") or as a value list (i.e., "TYPE=dom,postal"). This type is based on semantics of the X.520 geographical and postal addressing attributes. The default is "TYPE=intl,postal,parcel,work". The default can be overridden to some other set of values by specifying one or more alternate values. For example, the default can be reset to "TYPE=intl,post,parcel,home" to specify an international delivery label for both postal and parcel delivery to a residential location.
string | $label | The address label |
integer | $type | The address type (can be combined with the + operator) public |
Definition at line 1111 of file class.ilvCard.php.
References $type, ADR_TYPE_INTL, ADR_TYPE_NONE, ADR_TYPE_PARCEL, ADR_TYPE_POSTAL, ADR_TYPE_WORK, and escape().
ilvCard::setLogo | ( | $logo, | |
$type = "" |
|||
) |
Sets the value for the vCard LOGO type.
Sets the value for the vCard LOGO type to specify a graphic image of a logo associated with the object the vCard represents.
Type example:
LOGO;VALUE=uri:http://www.abc.com/pub/logos/abccorp.jpg LOGO;ENCODING=b;TYPE=JPEG:MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhvcN AQEEBQAwdzELMAkGA1UEBhMCVVMxLDAqBgNVBAoTI05ldHNjYXBlIENvbW11bm ljYXRpb25zIENvcnBvcmF0aW9uMRwwGgYDVQQLExNJbmZvcm1hdGlvbiBTeXN0 <...the remainder of "B" encoded binary data...>
Type encoding: The encoding MUST be reset to "b" using the ENCODING parameter in order to specify inline, encoded binary data. If the value is referenced by a URI value, then the default encoding of 8bit is used and no explicit ENCODING parameter is needed.
Type value: A single value. The default is binary value. It can also be reset to uri value. The uri value can be used to specify a value outside of this MIME entity.
Type special notes: The type can include the type parameter "TYPE" to specify the graphic image format type. The TYPE parameter values MUST be one of the IANA registered image formats or a non-standard image format.
string | $logo | A binary string containing the logo or an uri |
string | $type | The IANA type of the image format public |
Definition at line 1392 of file class.ilvCard.php.
References $type, and encode().
ilvCard::setMailer | ( | $name = "" | ) |
Sets the value for the vCard MAILER type.
Sets the value for the vCard MAILER type to specify the type of electronic mail software that is used by the individual associated with the vCard.
Type example:
MAILER:PigeonMail 2.1
Type special notes: This information can provide assistance to a correspondent regarding the type of data representation which can be used, and how they can be packaged. This property is based on the private MIME type X-Mailer that is generally implemented by MIME user agent products.
string | $name | The mailer name public |
Definition at line 1232 of file class.ilvCard.php.
References $name, and escape().
ilvCard::setName | ( | $family_name, | |
$given_name = "" , |
|||
$additional_names = "" , |
|||
$honorific_prefixes = "" , |
|||
$honorific_suffixes = "" |
|||
) |
Sets the value for the vCard N type.
Sets the value for the vCard N type to specify the components of the name of the object the vCard represents. The N type MUST be present in the vCard object.
Type example:
N:Public;John;Quinlan;Mr.;Esq. N:Stevenson;John;Philip,Paul;Dr.;Jr.,M.D.,A.C.P.
Type special note: The structured type value corresponds, in sequence, to the Family Name, Given Name, Additional Names, Honorific Prefixes, and Honorific Suffixes. The text components are separated by the SEMI-COLON character (ASCII decimal 59). Individual text components can include multiple text values (e.g., multiple Additional Names) separated by the COMMA character (ASCII decimal 44). This type is based on the semantics of the X.520 individual name attributes. The property MUST be present in the vCard object.
string | $family_name | The family name |
string | $given_name | The given name |
string | $additional_names | Additional names |
string | $honorific_prefixes | Honorific prefixes |
string | $honorific_suffixes | Honorific suffixes public |
Definition at line 840 of file class.ilvCard.php.
References explodeVar(), and setFormattedName().
ilvCard::setNickname | ( | $nickname | ) |
Sets the value for the vCard NICKNAME type.
Sets the value for the vCard NICKNAME type to specify the text corresponding to the nickname of the object the vCard represents.
Type example:
NICKNAME:Robbie NICKNAME:Jim,Jimmie
Type special note: The nickname is the descriptive name given instead of or in addition to the one belonging to a person, place, or thing. It can also be used to specify a familiar form of a proper name specified by the FN or N types.
string | $formatted_name | The formatted text public |
Definition at line 888 of file class.ilvCard.php.
References explodeVar().
ilvCard::setNote | ( | $note = "" | ) |
Sets the value for the vCard NOTE type.
Sets the value for the vCard NOTE type to specify supplemental information or a comment that is associated with the vCard.
Type example:
NOTE:This fax number is operational 0800 to 1715 EST\, Mon-Fri.
Type value: A single text value.
Type special notes: The type is based on the X.520 Description attribute.
string | $note | A note or comment public |
Definition at line 1519 of file class.ilvCard.php.
References escape().
ilvCard::setOrganization | ( | $organization = "" | ) |
Sets the value for the vCard ORG type.
Sets the value for the vCard ORG type to specify the organizational name and units associated with the vCard.
Type example:
ORG:ABC\, Inc.;North American Division;Marketing
Type value: A single structured text value consisting of components separated the SEMI-COLON character (ASCII decimal 59).
Type special notes: The type is based on the X.520 Organization Name and Organization Unit attributes. The type value is a structured type consisting of the organization name, followed by one or more levels of organizational unit names.
string | $organization | Organization description public |
Definition at line 1466 of file class.ilvCard.php.
References explodeVar().
ilvCard::setPhone | ( | $number = "" , |
|
$type = TEL_TYPE_VOICE |
|||
) |
Sets the value for the vCard TEL type.
Sets the value for the vCard TEL type to specify the telephone number for telephony communication with the object the vCard represents.
Type example:
TEL;TYPE=work,voice,pref,msg:+1-213-555-1234
Type special notes: The value of this type is specified in a canonical form in order to specify an unambiguous representation of the globally unique telephone endpoint. This type is based on the X.500 Telephone Number attribute.
The type can include the type parameter "TYPE" to specify intended use for the telephone number. The TYPE parameter values can include: "home" to indicate a telephone number associated with a residence, "msg" to indicate the telephone number has voice messaging support, "work" to indicate a telephone number associated with a place of vwork, "pref" to indicate a preferred-use telephone number, "voice" to indicate a voice telephone number, "fax" to indicate a facsimile telephone number, "cell" to indicate a cellular telephone number, "video" to indicate a video conferencing telephone number, "pager" to indicate a paging device telephone number, "bbs" to indicate a bulletin board system telephone number, "modem" to indicate a MODEM connected telephone number, "car" to indicate a car-phone telephone number, "isdn" to indicate an ISDN service telephone number, "pcs" to indicate a personal communication services telephone number. The default type is "voice". These type parameter values can be specified as a parameter list (i.e., "TYPE=work;TYPE=voice") or as a value list (i.e., "TYPE=work,voice"). The default can be overridden to another set of values by specifying one or more alternate values. For example, the default TYPE of "voice" can be reset to a WORK and HOME, VOICE and FAX telephone number by the value list "TYPE=work,home,voice,fax".
string | $number | The phone number |
integer | $type | The address type (can be combined with the + operator) public |
Definition at line 1170 of file class.ilvCard.php.
References $type, and escape().
ilvCard::setPhoto | ( | $photo, | |
$type = "" |
|||
) |
Sets the value for the vCard PHOTO type.
Sets the value for the vCard PHOTO type to specify an image or photograph information that annotates some aspect of the object the vCard represents.
Type example:
PHOTO;VALUE=uri:http://www.abc.com/pub/photos /jqpublic.gif
PHOTO;ENCODING=b;TYPE=JPEG:MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhvcN AQEEBQAwdzELMAkGA1UEBhMCVVMxLDAqBgNVBAoTI05ldHNjYXBlIENvbW11bm ljYXRpb25zIENvcnBvcmF0aW9uMRwwGgYDVQQLExNJbmZvcm1hdGlvbiBTeXN0 <...remainder of "B" encoded binary data...>
Type encoding: The encoding MUST be reset to "b" using the ENCODING parameter in order to specify inline, encoded binary data. If the value is referenced by a URI value, then the default encoding of 8bit is used and no explicit ENCODING parameter is needed.
Type value: A single value. The default is binary value. It can also be reset to uri value. The uri value can be used to specify a value outside of this MIME entity.
Type special notes: The type can include the type parameter "TYPE" to specify the graphic image format type. The TYPE parameter values MUST be one of the IANA registered image formats or a non-standard image format.
string | $photo | A binary string containing the photo or an uri |
string | $type | The IANA type of the image format public |
Definition at line 929 of file class.ilvCard.php.
References $type, and encode().
ilvCard::setPosition | ( | $latitude = "" , |
|
$longitude = "" |
|||
) |
Sets the value for the vCard GEO type.
Sets the value for the vCard GEO type to specify information related to the global positioning of the object the vCard represents.
Type example:
GEO:37.386013;-122.082932
Type value: A single structured value consisting of two float values separated by the SEMI-COLON character (ASCII decimal 59).
Type special notes: This type specifies information related to the global position of the object associated with the vCard. The value specifies latitude and longitude, in that order (i.e., "LAT LON" ordering). The longitude represents the location east and west of the prime meridian as a positive or negative real number, respectively. The latitude represents the location north and south of the equator as a positive or negative real number, respectively. The longitude and latitude values MUST be specified as decimal degrees and should be specified to six decimal places. This will allow for granularity within a meter of the geographical position. The text components are separated by the SEMI-COLON character (ASCII decimal 59). The simple formula for converting degrees-minutes-seconds into decimal degrees is:
decimal = degrees + minutes/60 + seconds/3600.
double | $latitude | The latitude of the position |
double | $longitude | The longitude of the position public |
Definition at line 1299 of file class.ilvCard.php.
ilvCard::setProductId | ( | $product_id = "" | ) |
Sets the value for the vCard PRODID type.
Sets the value for the vCard PRODID type to specify the identifier for the product that created the vCard object.
Type example:
PRODID:-//ONLINE DIRECTORY//NONSGML Version 1//EN
Type value: A single text value.
Type special notes: Implementations SHOULD use a method such as that specified for Formal Public Identifiers in ISO 9070 to assure that the text value is unique.
string | $product_id | Product identifier public |
Definition at line 1543 of file class.ilvCard.php.
References escape().
ilvCard::setRevision | ( | $revision_date = "" | ) |
Sets the value for the vCard REV type.
Sets the value for the vCard REV type to specify revision information about the current vCard.
Type example:
REV:1995-10-31T22:27:10Z REV:1997-11-15
Type value: The default is a single date-time value. Can also be reset to a single date value.
Type special notes: The value distinguishes the current revision of the information in this vCard for other renditions of the information.
string | $revision_date | Revision date public |
Definition at line 1569 of file class.ilvCard.php.
References escape().
ilvCard::setRole | ( | $role = "" | ) |
Sets the value for the vCard ROLE type.
Sets the value for the vCard ROLE type to specify information concerning the role, occupation, or business category of the object the vCard represents.
Type example:
ROLE:Programmer
Type special notes: This type is based on the X.520 Business Category explanatory attribute. This property is included as an organizational type to avoid confusion with the semantics of the TITLE type and incorrect usage of that type when the semantics of this type is intended.
string | $role | Role title public |
Definition at line 1354 of file class.ilvCard.php.
References escape().
ilvCard::setSortString | ( | $string = "" | ) |
Sets the value for the vCard SORT-STRING type.
Sets the value for the vCard SORT-STRING type to specify the family name or given name text to be used for national-language-specific sorting of the FN and N types.
Type examples: For the case of family name sorting, the following examples define common sort string usage with the FN and N types.
FN:Rene van der Harten N:van der Harten;Rene;J.;Sir;R.D.O.N. SORT-STRING:Harten
FN:Robert Pau Shou Chang N:Pau;Shou Chang;Robert SORT-STRING:Pau
FN:Osamu Koura N:Koura;Osamu SORT-STRING:Koura
FN:Oscar del Pozo N:del Pozo Triscon;Oscar SORT-STRING:Pozo
FN:Chistine d'Aboville N:d'Aboville;Christine SORT-STRING:Aboville
Type value: A single text value.
Type special notes: The sort string is used to provide family name or given name text that is to be used in locale- or national-language- specific sorting of the formatted name and structured name types. Without this information, sorting algorithms could incorrectly sort this vCard within a sequence of sorted vCards. When this type is present in a vCard, then this family name or given name value is used for sorting the vCard.
string | $string | Sort string public |
Definition at line 1617 of file class.ilvCard.php.
References escape().
ilvCard::setSound | ( | $sound = "" , |
|
$type = "" |
|||
) |
Sets the value for the vCard SOUND type.
Sets the value for the vCard SOUND type to specify a digital sound content information that annotates some aspect of the vCard. By default this type is used to specify the proper pronunciation of the name type value of the vCard.
Type example:
SOUND;TYPE=BASIC;VALUE=uri:CID:JOHNQPUBLIC.part8. 19960 229T 08000 0.xy zMail @hos t1.co m
SOUND;TYPE=BASIC;ENCODING=b:MIICajCCAdOgAwIBAgICBEUwDQYJKoZIhvcN AQEEBQAwdzELMAkGA1UEBhMCVVMxLDAqBgNVBAoTI05ldHNjYXBlIENvbW11bm ljYXRpb25zIENvcnBvcmF0aW9uMRwwGgYDVQQLExNJbmZvcm1hdGlvbiBTeXN0 <...the remainder of "B" encoded binary data...>
Type encoding: The encoding MUST be reset to "b" using the ENCODING parameter in order to specify inline, encoded binary data. If the value is referenced by a URI value, then the default encoding of 8bit is used and no explicit ENCODING parameter is needed.
Type value: A single value. The default is binary value. It can also be reset to uri value. The uri value can be used to specify a value outside of this MIME entity.
Type special notes: The type can include the type parameter "TYPE" to specify the audio format type. The TYPE parameter values MUST be one of the IANA registered audio formats or a non-standard audio format.
string | $sound | Binary string containing the sound |
string | $type | The IANA registered sound type public |
Definition at line 1657 of file class.ilvCard.php.
References $type, and encode().
ilvCard::setTimezone | ( | $zone = "" | ) |
Sets the value for the vCard TZ type.
Sets the value for the vCard TZ type to specify information related to the time zone of the object the vCard represents.
Type example:
TZ:-05:00 TZ;VALUE=text:-05:00; EST; Raleigh/North America
Type special notes: The type value consists of a single value.
string | $zone | The timezone as utc-offset value public |
Definition at line 1260 of file class.ilvCard.php.
References escape().
ilvCard::setTitle | ( | $title = "" | ) |
Sets the value for the vCard TITLE type.
Sets the value for the vCard TITLE type to specify the job title, functional position or function of the object the vCard represents.
Type example:
TITLE:Director\, Research and Development
Type special notes: This type is based on the X.520 Title attribute.
string | $title | Job title public |
Definition at line 1329 of file class.ilvCard.php.
References $title, and escape().
ilvCard::setUID | ( | $uid = "" , |
|
$type = "" |
|||
) |
Sets the value for the vCard UID type.
Sets the value for the vCard UID type to specify a value that represents a globally unique identifier corresponding to the individual or resource associated with the vCard.
Type example:
UID:19950401-080045-40000F192713-0052
Type value: A single text value.
Type special notes: The type is used to uniquely identify the object that the vCard represents.
The type can include the type parameter "TYPE" to specify the format of the identifier. The TYPE parameter value should be an IANA registered identifier format. The value can also be a non-standard format.
string | $uid | Globally unique identifier |
string | $type | IANA registered identifier format public |
Definition at line 1704 of file class.ilvCard.php.
References $type, and escape().
ilvCard::setURL | ( | $uri = "" | ) |
Sets the value for the vCard URL type.
Sets the value for the vCard URL type to specify a uniform resource locator associated with the object that the vCard refers to.
Type example:
URL:http://www.ilias.de/index.html
Type value: A single text value.
string | $uri | URL public |
Definition at line 1728 of file class.ilvCard.php.
References escape().
ilvCard::setVersion | ( | $version = "3.0" | ) |
Sets the value for the vCard VERSION type.
Sets the value for the vCard VERSION type to specify the version of the vCard specification used
Type example:
VERSION:3.0
Type special notes: The property MUST be present in the vCard object. The value MUST be "3.0" if the vCard corresponds to the vCard 3.0 specification.
string | $version | Version string public |
Definition at line 1749 of file class.ilvCard.php.
ilvCard::$filename |
The filename of the vCard used when saving the vCard.
string
Definition at line 91 of file class.ilvCard.php.
Referenced by getFilename().
ilvCard::$types |