public
|
|
public
|
#
ajax_get_calendar_appointments( )
[AJAX] Get the registered appointments for the given date period and record.
[AJAX] Get the registered appointments for the given date period and record.
This method returns the database appointments and unavailable periods for the
user selected date period and record type (provider or service).
|
public
|
#
ajax_save_appointment( )
[AJAX] Save appointment changes that are made from the backend calendar
page.
[AJAX] Save appointment changes that are made from the backend calendar
page.
|
public
|
#
ajax_delete_appointment( )
[AJAX] Delete appointment from the database.
[AJAX] Delete appointment from the database.
This method deletes an existing appointment from the database. Once this
action is finished it cannot be undone. Notification emails are send to both
provider and customer and the delete action is executed to the Google Calendar
account of the provider, if the "google_sync" setting is enabled.
|
public
|
#
ajax_disable_provider_sync( )
[AJAX] Disable a providers sync setting.
[AJAX] Disable a providers sync setting.
This method deletes the "google_sync" and "google_token" settings from the
database. After that the provider's appointments will be no longer synced
with google calendar.
|
public
array
|
#
ajax_filter_customers( )
[AJAX] Filter the customer records with the given key string.
[AJAX] Filter the customer records with the given key string.
Returns
array Returns the search results.
|
public
|
#
ajax_save_unavailable( )
[AJAX] Insert of update unavailable time period to database.
[AJAX] Insert of update unavailable time period to database.
|
public
|
#
ajax_delete_unavailable( )
[AJAX] Delete an unavailable time period from database.
[AJAX] Delete an unavailable time period from database.
|
public
|
#
ajax_save_customer( )
[AJAX] Save (insert or update) a customer record.
[AJAX] Save (insert or update) a customer record.
|
public
|
|
public
|
#
ajax_save_service( )
[AJAX] Save (insert or update) service record.
[AJAX] Save (insert or update) service record.
|
public
|
#
ajax_delete_service( )
[AJAX] Delete service record from database.
[AJAX] Delete service record from database.
|
public
array
|
#
ajax_filter_services( )
[AJAX] Filter service records by given key string.
[AJAX] Filter service records by given key string.
Returns
array Returns a json encoded array back to client.
|
public
|
|
public
|
|
public
array
|
#
ajax_filter_service_categories( )
[AJAX] Filter services categories with key string.
[AJAX] Filter services categories with key string.
Returns
array Returns a json encoded array back to client with the category records.
|
public
array
|
#
ajax_filter_admins( )
[AJAX] Filter admin records with string key.
[AJAX] Filter admin records with string key.
Returns
array Returns a json encoded array back to client with the admin records.
|
public
array
|
#
ajax_save_admin( )
[AJAX] Save (insert or update) admin record into database.
[AJAX] Save (insert or update) admin record into database.
Returns
array Returns an array with the operation status and the record id that was
saved into the database.
|
public
string
|
#
ajax_delete_admin( )
[AJAX] Delete an admin record from the database.
[AJAX] Delete an admin record from the database.
Returns
string Returns the operation result constant (AJAX_SUCESS or AJAX_FAILURE).
|
public
array
|
#
ajax_filter_providers( )
[AJAX] Filter provider records with string key.
[AJAX] Filter provider records with string key.
Returns
array Returns a json encoded array back to client with the provider records.
|
public
string
|
#
ajax_save_provider( )
[AJAX] Save (insert or update) a provider record into database.
[AJAX] Save (insert or update) a provider record into database.
Returns
string Returns the success contant 'AJAX_SUCCESS' so javascript knows that
everything completed successfully.
|
public
string
|
#
ajax_delete_provider( )
[AJAX] Delete a provider record from the database.
[AJAX] Delete a provider record from the database.
Returns
string Returns the operation result constant (AJAX_SUCESS or AJAX_FAILURE).
|
public
array
|
#
ajax_filter_secretaries( )
[AJAX] Filter secretary records with string key.
[AJAX] Filter secretary records with string key.
Returns
array Returns a json encoded array back to client with the secretary records.
|
public
string
|
#
ajax_save_secretary( )
[AJAX] Save (insert or update) a secretary record into database.
[AJAX] Save (insert or update) a secretary record into database.
Returns
string Returns the success contant 'AJAX_SUCCESS' so javascript knows that
everything completed successfully.
|
public
string
|
#
ajax_delete_secretary( )
[AJAX] Delete a secretary record from the database.
[AJAX] Delete a secretary record from the database.
Returns
string Returns the operation result constant (AJAX_SUCESS or AJAX_FAILURE).
|
public
|
#
ajax_save_settings( )
[AJAX] Save a setting or multiple settings in the database.
[AJAX] Save a setting or multiple settings in the database.
This method is used to store settings in the database. It can be either system
or user settings, one or many. Use the $_POST variables accordingly.
|
public
|
#
ajax_validate_username( )
[AJAX] This method checks whether the username already exists in the database.
[AJAX] This method checks whether the username already exists in the database.
|
public
|
#
ajax_change_language( )
[AJAX] Change system language for current user.
[AJAX] Change system language for current user.
The language setting is stored in session data and retrieved every time the user
visits any of the system pages.
|
public
|
#
ajax_get_google_calendars( )
This method will return a list of the available google calendars.
This method will return a list of the available google calendars.
The user will need to select a specific calendar from this list to sync his
appointments with. Google access must be already granted for the specific
provider.
|
public
|
#
ajax_select_google_calendar( )
Select a specific google calendar for a provider.
Select a specific google calendar for a provider.
All the appointments will be synced with this particular calendar.
|