Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • VCard
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class VCard

vCard component that creates vCard-formatted address book data

Package: blesta\components\vcard
Copyright: Copyright (c) 2010-2018, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/vcard/vcard.php
Methods summary
public
# __construct( )

Set default vCard data

Set default vCard data

public string
# create( array $data, boolean $stream = true, string $file_name = null )

Creates a vCard with the given data

Creates a vCard with the given data

Parameters

$data

A list of fields to set in the vCard, including (all optional):

  • first_name The first name of the contact
  • last_name The last name of the contact
  • company The contact's company name
  • title The contact's title
  • email1 The contact's email address (@deprecated since v4.5.0, use 'email' instead)
  • email The contact's email address
  • home_address The contact's home street address
  • home_city The contact's home city
  • home_state The contact's home 2-character state
  • home_postal_code The contact's home zip/postal code
  • home_country The contact's home 2-character country
  • work_address The contact's work street address
  • work_city The contact's work city
  • work_state The contact's work 2-character state
  • work_postal_code The contact's work zip/postal code
  • work_country The contact's work 2-character country
  • home_tel The contact's home phone number
  • cell_tel The contact's cell phone number
  • fax_tel The contact's fax number
  • office_tel The contact's office phone number (@deprecated since v4.5.0, use 'work_tel' instead)
  • work_tel The contact's work phone number
$stream
True to stream the vCard for download (optional)
$file_name
The name of the file to stream (optional)

Returns

string
A string representing the vCard
Blesta API documentation generated by ApiGen