@@ -27,6 +27,7 @@ public static function getAll($customConfig = NULL)
2727
2828 $ contactDetails ['id ' ] = (string ) $ xmlContactsEntry ->id ;
2929 $ contactDetails ['name ' ] = (string ) $ xmlContactsEntry ->title ;
30+ $ contactDetails ['content ' ] = (string ) $ xmlContactsEntry ->content ;
3031
3132 foreach ($ xmlContactsEntry ->children () as $ key => $ value ) {
3233 $ attributes = $ value ->attributes ();
@@ -93,6 +94,7 @@ public static function getBySelfURL($selfURL, $customConfig = NULL)
9394
9495 $ contactDetails ['id ' ] = (string ) $ xmlContactsEntry ->id ;
9596 $ contactDetails ['name ' ] = (string ) $ xmlContactsEntry ->title ;
97+ $ contactDetails ['content ' ] = (string ) $ xmlContactsEntry ->content ;
9698
9799 foreach ($ xmlContactsEntry ->children () as $ key => $ value ) {
98100 $ attributes = $ value ->attributes ();
@@ -187,6 +189,7 @@ public static function submitUpdates(Contact $updatedContact, $customConfig = NU
187189
188190 $ contactDetails ['id ' ] = (string ) $ xmlContactsEntry ->id ;
189191 $ contactDetails ['name ' ] = (string ) $ xmlContactsEntry ->title ;
192+ $ contactDetails ['content ' ] = (string ) $ xmlContactsEntry ->content ;
190193
191194 foreach ($ xmlContactsEntry ->children () as $ key => $ value ) {
192195 $ attributes = $ value ->attributes ();
@@ -215,7 +218,7 @@ public static function submitUpdates(Contact $updatedContact, $customConfig = NU
215218 return new Contact ($ contactDetails );
216219 }
217220
218- public static function create ($ name , $ phoneNumber , $ emailAddress , $ customConfig = NULL )
221+ public static function create ($ name , $ phoneNumber , $ emailAddress , $ note , $ customConfig = NULL )
219222 {
220223 $ doc = new \DOMDocument ();
221224 $ doc ->formatOutput = true ;
@@ -237,6 +240,10 @@ public static function create($name, $phoneNumber, $emailAddress, $customConfig
237240 $ contact ->setAttribute ('rel ' , 'http://schemas.google.com/g/2005#work ' );
238241 $ entry ->appendChild ($ contact );
239242
243+ $ note = $ doc ->createElement ('atom:content ' , $ note );
244+ $ note ->setAttribute ('rel ' , 'http://schemas.google.com/g/2005#kind ' );
245+ $ entry ->appendChild ($ note );
246+
240247 $ xmlToSend = $ doc ->saveXML ();
241248
242249 $ client = GoogleHelper::getClient ($ customConfig );
0 commit comments