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

Add firstname, lastname, company #39

Open
ShaiMagal opened this issue May 21, 2017 · 1 comment
Open

Add firstname, lastname, company #39

ShaiMagal opened this issue May 21, 2017 · 1 comment

Comments

@ShaiMagal
Copy link

ShaiMagal commented May 21, 2017

Hello,

can you add support for firstname, lastname and company?

Thank you.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@EmilieTreuil
Copy link

You can add firstname and lastname in the public static function create in ContactFactory.php

with this code :

$Name = $doc->createElement('gd:name'); $Name->setAttribute('gd:familyName', $familyName); Name->setAttribute('gd:givenName', $givenName); $Name->setAttribute('gd:fullName', $givenName . ' ' . $familyName); #full Name

This work the same for the company :

$job = $doc->createElement('gd:organization'); $job->setAttribute('gd:orgName', $company); $job->setAttribute('gd:orgTitle', $employment); $job->setAttribute('gd:orgDepartment', $department); $entry->appendChild($job);

don't forget to add the variables in the function and care the function Submitupdate doesn't really work after that... i work on it but i'm just a student so kind of hard to fully understand for me.

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

No branches or pull requests

2 participants