Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vCardBundle #8

Open
leevigraham opened this issue Apr 7, 2014 · 1 comment
Open

vCardBundle #8

leevigraham opened this issue Apr 7, 2014 · 1 comment
Labels

Comments

@leevigraham
Copy link
Contributor

Let's create a vCardBundle! Every project has people, addresses, tels, urls, immps etc.

Pros:

  • Reusable

Cons:

  • Sticking to the vCard spec usually means a whole bunch of fields the user doesn't fill in. Apple manage to get around this in contacts with a good UI so we should be able to as well.

ping @iainsaxon @ianbelcher

@leevigraham
Copy link
Contributor Author

screen shot 2014-04-07 at 5 59 33 pm

Rethinking this slightly:

Should there be a ContactCard that encapsulates all this functionality? If that was the case it would almost be like this is a Trait. Person would have the trait of ContactCard, so could Organisation or anything else.

The only issue here is that the construction of a vcard (or similar) would rely on the owning Person / Organsiation to create half the data and the contact card to create the rest. Maybe Person / Organisation could implement some kind of vCard interface:

<?php

interface VCardEntityInterface
{
    public function getVCardEntityData();
    public function getVCardContactData();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant