-
Notifications
You must be signed in to change notification settings - Fork 2
tp TouchPointWP TouchPointWP_AdminAPI
James K. edited this page May 7, 2024
·
1 revision
Admin API class.
- Class name: TouchPointWP_AdminAPI
- Namespace: \tp\TouchPointWP
- This class implements: tp\TouchPointWP\api
const API_ENDPOINT_SCRIPTZIP = "scriptzip"
mixed tp\TouchPointWP\TouchPointWP_AdminAPI::__construct()
Constructor function
- Visibility: public
- mixed
bool tp\TouchPointWP\api::api(array uri)
Handle API requests
- Visibility: public
- This method is static.
- This method is defined by tp\TouchPointWP\api
- uri array - The request URI already parsed by parse_url()
- bool - False if endpoint is not found. Should print the result.
string tp\TouchPointWP\TouchPointWP_AdminAPI::displayField(array data, ?\WP_Post post, bool echo)
Generate HTML for displaying fields.
- Visibility: public
- data array - Data array.
- post ?\WP_Post - Post object.
- echo bool - Whether to echo the field HTML or return it.
- string -
string|array tp\TouchPointWP\TouchPointWP_AdminAPI::generatePython(bool toZip, array filenames)
Generate the python scripts to be uploaded to TouchPoint.
- Visibility: public
- toZip bool - Set true to combine into a Zip file.
- filenames array - Indicate which files should be included, based on their repo name. Add '*' to the array to include all files regardless of name.
- string|array - If toZip is true, returns the file path of the zip file. If toZip is false, returns an array of filename => content.
mixed tp\TouchPointWP\TouchPointWP_AdminAPI::showError(mixed message)
Display an error when there's something wrong with the TouchPoint connection.
- Visibility: public
- This method is static.
- message mixed
- mixed
Documentation generated November 4, 2024 6:51pm.
- Simple RSVP
- People Lists
- Involvements
- Outreach Partners
- SQL & Python Reports
- Events Calendar from Meetings (Beta)
- Events Calendar Plugin Integration (Deprecated)
- tp
- tp\TouchPointWP
- api
- Auth
- CalendarGrid
- EventsCalendar
- ExtraValueHandler
- Geo
- hasGeo
- hierarchical
- Involvement
- Involvement_PostTypeSettings
- InvolvementMembership
- Location
- Meeting
- module
- Partner
- Person
- PostTypeCapable
- RegistrationType
- Report
- Rsvp
- scheduled
- storedAsPost
- Taxonomies
- TouchPointWP
- TouchPointWP_AdminAPI
- TouchPointWP_Exception
- TouchPointWP_Settings
- TouchPointWP_WPError
- updatesViaCron
- Utilities
- tp\TouchPointWP