|
Google Shared Contacts Manager
1.0
Semestral project for BI-ZNF
|
Presenter that handles all operations with Contacts. More...
Public Member Functions | |
| __construct (OAuthService $os) | |
| ContactPresenter constructor. More... | |
| injectDependencies (APIService $apis, ContactService $cs, ContactFormFactory $cff, EmailFormFactory $eff, PhoneFormFactory $pff, CustomAttributeFromFactory $caff, Session $session) | |
| Inject required dependencies. More... | |
| actionDefault () | |
| URL = /contact/ Receive all contacts. More... | |
| actionDelete ($id) | |
| URL = /contact/delete/$id Delete contact specified by the ID in URL. More... | |
| actionEdit ($id) | |
| URL = /contact/edit/$id Prepare data for Contact Edit form. More... | |
| renderEdit () | |
| URL = /contact/edit/$id Clear repeating-value forms session and fill it with the attributes. More... | |
| renderCreate () | |
| URL = /contact/create Assign autofill data to the template. More... | |
| createContactForm (Contact $c=null) | |
| Create form to create / edit Contact. More... | |
| createComponentEditContactForm () | |
| Create form to edit contact. More... | |
| createComponentCreateContactForm () | |
| Create form to create contact. More... | |
| createComponentAddEmailForm () | |
| Create form for repeating email values. More... | |
| createComponentAddPhoneForm () | |
| Create form for repeating phone number values. More... | |
| createComponentAddCustomAttributeForm () | |
| Create form for repeating custom attributes. More... | |
| handleRemoveEmail ($index) | |
| Handle signal to remove Email from session storage. More... | |
| handleRemovePhone ($index) | |
| Handle signal to remove Phone number from session storage. More... | |
| handleRemoveCustomAttribute ($index) | |
| Handle signal to remove ¨Custom Attribute from session storage. More... | |
| createComponentPictureEditor () | |
| Create PictureEditor component. More... | |
| solveConnectionException (ConnectionException $ex) | |
| Handle any connection exception that might occur during data retrieving. More... | |
| createComponentDatagrid () | |
| Create my customized datagrid for the list of Contacts. More... | |
| prepareData ($filters, $order) | |
| Method suplies data for the Datagrid. More... | |
Public Member Functions inherited from SecuredPresenter | |
| __construct (OAuthService $os) | |
| startup () | |
| Require logged in user. More... | |
Data Fields | |
| const | CREATED_CONTACT_ATTRIBUTE = "created_id" |
| const | UPDATED_CONTACT_ATTRIBUTE = "updated_id" |
Private Member Functions | |
| prepareAutofill () | |
| Collect all autofill data. More... | |
| addIfNotNull (&$array, $value) | |
| Append the value to the array if the value is not null. More... | |
| prepareAutofillAddress (Contact &$c, &$array) | |
| Collect address data for Autofill feature. More... | |
| prepareAutofillOrganization (Contact &$c, &$array) | |
| Collect organization data for Autofill feature. More... | |
| prepareAutofillCustoms (Contact &$c, &$array) | |
| Collect custom attributes keys for Autofill feature. More... | |
Private Attributes | |
| $apis | |
| $cs | |
| $contactFormFactory | |
| $emailFormFactory | |
| $phoneFormFactory | |
| $customAttributeFormFactory | |
| $session | |
| $contact | |
Additional Inherited Members | |
Protected Attributes inherited from SecuredPresenter | |
| $oauthService | |
Presenter that handles all operations with Contacts.
| __construct | ( | OAuthService | $os | ) |
ContactPresenter constructor.
| OAuthService | $os |
| actionDefault | ( | ) |
URL = /contact/ Receive all contacts.
Clear cache if URL purge attribute is set.
| actionDelete | ( | $id | ) |
URL = /contact/delete/$id Delete contact specified by the ID in URL.
| string | $id | ID of contact to be deleted |
| actionEdit | ( | $id | ) |
URL = /contact/edit/$id Prepare data for Contact Edit form.
| string | $id | ID of contact to be deleted |
|
private |
Append the value to the array if the value is not null.
| array | $array | |
| mixed | $value |
| createComponentAddCustomAttributeForm | ( | ) |
Create form for repeating custom attributes.
| createComponentAddEmailForm | ( | ) |
Create form for repeating email values.
| createComponentAddPhoneForm | ( | ) |
Create form for repeating phone number values.
| createComponentCreateContactForm | ( | ) |
Create form to create contact.
| createComponentDatagrid | ( | ) |
Create my customized datagrid for the list of Contacts.
| createComponentEditContactForm | ( | ) |
Create form to edit contact.
| createComponentPictureEditor | ( | ) |
Create PictureEditor component.
| createContactForm | ( | Contact | $c = null | ) |
Create form to create / edit Contact.
| Contact | null | $c |
| handleRemoveCustomAttribute | ( | $index | ) |
Handle signal to remove ¨Custom Attribute from session storage.
| $index |
| handleRemoveEmail | ( | $index | ) |
Handle signal to remove Email from session storage.
| $index |
| handleRemovePhone | ( | $index | ) |
Handle signal to remove Phone number from session storage.
| $index |
| injectDependencies | ( | APIService | $apis, |
| ContactService | $cs, | ||
| ContactFormFactory | $cff, | ||
| EmailFormFactory | $eff, | ||
| PhoneFormFactory | $pff, | ||
| CustomAttributeFromFactory | $caff, | ||
| Session | $session | ||
| ) |
Inject required dependencies.
| APIService | $apis | |
| ContactService | $cs | |
| ContactFormFactory | $cff | |
| EmailFormFactory | $eff | |
| PhoneFormFactory | $pff | |
| CustomAttributeFromFactory | $caff | |
| Session | $session |
|
private |
Collect all autofill data.
|
private |
Collect address data for Autofill feature.
| Contact | $c | |
| array | $array |
|
private |
Collect custom attributes keys for Autofill feature.
| Contact | $c | |
| $array |
|
private |
Collect organization data for Autofill feature.
| Contact | $c | |
| array | $array |
| prepareData | ( | $filters, | |
| $order | |||
| ) |
Method suplies data for the Datagrid.
| array | $filters | Filter rules specified by user |
| array | $order | Order rule specified by user |
| renderCreate | ( | ) |
URL = /contact/create Assign autofill data to the template.
| renderEdit | ( | ) |
URL = /contact/edit/$id Clear repeating-value forms session and fill it with the attributes.
| solveConnectionException | ( | ConnectionException | $ex | ) |
Handle any connection exception that might occur during data retrieving.
If the access token had expired, reauthenticate, otherwise display error.
| ConnectionException | $ex |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| const CREATED_CONTACT_ATTRIBUTE = "created_id" |
| const UPDATED_CONTACT_ATTRIBUTE = "updated_id" |