-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes in version 0.5.0, also added new support for Gmail addressbook
git-svn-id: http://svn.php.net/repository/pear/packages/Contact_AddressBook/trunk@200239 c90b9560-bf6c-de11-be94-00142212c4b1
- Loading branch information
Firman Wandayandi
committed
Nov 8, 2005
1 parent
0e752cb
commit 1b559ee
Showing
14 changed files
with
529 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,6 +174,7 @@ class Contact_AddressBook | |
'csv_yahoo', | ||
'csv_palm', | ||
'csv_kmail', | ||
'csv_gmail', | ||
'eudora' | ||
); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ | ||
|
||
// {{{ Header | ||
|
||
/** | ||
* File contains GMail CSV address book configuration. | ||
* | ||
* PHP versions 4 and 5 | ||
* | ||
* @category File Formats | ||
* @package Contact_AddressBook | ||
* @subpackage CSV | ||
* @author Firman Wandayandi <firman@php.net> | ||
* @copyright Copyright (c) 2004-2005 Firman Wandayandi | ||
* @license http://www.opensource.org/licenses/bsd-license.php | ||
* BSD License | ||
* @version CVS: $Id$ | ||
* @since File available since Release 0.5.0 | ||
*/ | ||
|
||
// }}} | ||
|
||
/** | ||
* Gmail CSV address book configuration. | ||
* | ||
* @global array $GLOBALS['_Contact_AddressBook_CSV_config'] | ||
* @name $_Contact_AddressBook_CSV_config | ||
*/ | ||
$GLOBALS['_Contact_AddressBook_CSV_config'] = array( | ||
'fields' => 13, | ||
'quote' => '"', | ||
'line_break' => "\n", | ||
'header' => true, | ||
'multilines' => true | ||
); | ||
|
||
/* | ||
* Local variables: | ||
* mode: php | ||
* tab-width: 4 | ||
* c-basic-offset: 4 | ||
* c-hanging-comment-ender-p: nil | ||
* End: | ||
*/ | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
; +---------------------------------------------------------------------------------+ | ||
; | PEAR::Contact_AddressBook Definition File | | ||
; | Copyright (c) 2004-2005 Firman Wandayandi | | ||
; +---------------------------------------------------------------------------------+ | ||
; | This file contains Gmail CSV address book default fields definition. | | ||
; +---------------------------------------------------------------------------------+ | ||
; CVS: $Id$ | ||
|
||
; Name | ||
0 = displayname | ||
|
||
1 = email | ||
|
||
; Notes | ||
2 = notes | ||
|
||
; Section 1 - Description [Ignored] | ||
; 3 = | ||
|
||
; Section 1 - Email | ||
4 = email2 | ||
|
||
; Section 1 - IM [Ignored] | ||
; 5 = | ||
|
||
; Section 1 - Phone | ||
6 = home_phone | ||
|
||
; Section 1 - Mobile | ||
7 = mobile | ||
|
||
; Section 1 - Pager | ||
8 = pager | ||
|
||
; Section 1 - Fax | ||
9 = home_fax | ||
|
||
; Section 1 - Company | ||
10 = organization | ||
|
||
; Section 1 - Title | ||
11 = title | ||
|
||
; Section 1 - Other [Ignored] | ||
; 12 = | ||
|
||
; Section 1 - Address | ||
13 = home_address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ | ||
|
||
// {{{ Header | ||
|
||
/** | ||
* File contains Gmail CSV address book English header. | ||
* | ||
* PHP versions 4 and 5 | ||
* | ||
* @category File Formats | ||
* @package AddressBook | ||
* @subpackage CSV | ||
* @author Firman Wandayandi <firman@php.net> | ||
* @copyright Copyright (c) 2005 Firman Wandayandi | ||
* @license http://www.opensource.org/licenses/bsd-license.php | ||
* BSD License | ||
* @version CVS: $Id$ | ||
* @since File available since Release 0.5.0 | ||
*/ | ||
|
||
// }}} | ||
|
||
/** | ||
* Gmail (KDE) CSV address book English header. | ||
* | ||
* @global array $GLOBALS['_Contact_AddressBook_CSV_header'] | ||
* @name $_Contact_AddressBook_CSV_header | ||
*/ | ||
$GLOBALS['_Contact_AddressBook_CSV_header'] = array( | ||
'Name', | ||
'E-mail', | ||
'Notes', | ||
'Section 1 - Description', | ||
'Section 1 - Email', | ||
'Section 1 - IM', | ||
'Section 1 - Phone', | ||
'Section 1 - Mobile', | ||
'Section 1 - Pager', | ||
'Section 1 - Fax', | ||
'Section 1 - Company', | ||
'Section 1 - Title', | ||
'Section 1 - Other', | ||
'Section 1 - Address' | ||
); | ||
|
||
/* | ||
* Local variables: | ||
* mode: php | ||
* tab-width: 4 | ||
* c-basic-offset: 4 | ||
* c-hanging-comment-ender-p: nil | ||
* End: | ||
*/ | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Name,E-mail,Notes,Section 1 - Description,Section 1 - Email,Section 1 - IM,Section 1 - Phone,Section 1 - Mobile,Section 1 - Pager,Section 1 - Fax,Section 1 - Company,Section 1 - Title,Section 1 - Other,Section 1 - Address | ||
John Doe,john@example.com,,,john.doe@example.com,,9999999,9999999,9999999,9999999,"Example, Corp.",Mr,,Foo Street | ||
Jeniffer Doe,jeniffer@example.com,,,jeniffer.doe@example.com,,9999999,9999999,9999999,9999999,"Example, Corp.",Mrs,,Foo Street |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.