RESTAPI Class Reference

Inheritance diagram for RESTAPI:
API AlumniAPI BibliographyAPI BoardAPI BoardsAPI CollaborationAPI ContributionAPI CRMContactAPI CRMOpportunityAPI CRMTaskAPI DepartmentAPI DiversityAPI EliteProfileAPI FreezeAPI GlobalSearchAPI JournalAPI LIMSContactAPI LIMSOpportunityAPI LIMSTaskAPI MailingListAPI MailingListRuleAPI PDFAPI PeopleAPI PeopleManagedAPI PersonAPI PersonContributionsAPI PersonPostAPI PersonProductAPI PersonProjectsAPI PersonRelationsAPI PersonRolesAPI PersonRoleStringAPI PersonSubRolesAPI PersonThemesAPI PersonUniversitiesAPI PostAPI PostingAPI PostsAPI ProductAPI ProductCitationAPI ProductDuplicatesAPI ProductTagsAPI ProjectAPI ProjectContributionsAPI ProjectMembersAPI ProjectProductAPI RoleAPI SimilarPeopleAPI ThemeAPI ThemeProjectsAPI ThreadAPI ThreadsAPI UniversityAPI WikiPageAPI

List of all members.

Public Member Functions

 processRequest ($params=null)
 getParam ($id)
 isLoginRequired ()
 throwError ($message, $code=400)
 doAction ()
 processParams ($params)
 doPOST ()
 doGET ()
 doPUT ()
 doDELETE ()

Public Attributes

 $params = array()

Member Function Documentation

RESTAPI::doAction (  ) 

Runs the API action

Reimplemented from API.

RESTAPI::doDELETE (  )  [abstract]
RESTAPI::doGET (  )  [abstract]
RESTAPI::doPOST (  )  [abstract]
RESTAPI::doPUT (  )  [abstract]
RESTAPI::getParam ( id  ) 

Returns the value of the specified parameter if it exists ("" otherwise)

Parameters:
string $id The id of the parameter
Returns:
string Returns the value of the parameter
RESTAPI::isLoginRequired (  ) 

In most cases for the RESTAPI login should not be required. This should instead be implemented for each of the doACTION functions.

Reimplemented from API.

RESTAPI::processParams ( params  ) 

Does some pre-proccessing to the parameters

Parameters:
array $params The array of GET parameters

Reimplemented from API.

RESTAPI::throwError ( message,
code = 400 
)

Generates a error message via the HTTP 400 return code, and exits execution

Parameters:
string $message The message to display
int $code the HTTP error code

The documentation for this class was generated from the following file:

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1