PHP Classes

File: StormAPI.class.php

Recommend this page to a friend!
  Classes of Jason Gillman Jr.  >  StormOnDemand API  >  StormAPI.class.php  
File: StormAPI.class.php
Role: Class source
Content type: text/plain
Description: StormOnDemand API Class
Class: StormOnDemand API
Manage hosting services using Storm On Demand API
Author: By
Last change: Composer tweak and added the LiquidWeb namespace
listMethods() now static with an instantiated wrapper
Created a static version of listMethodParams which has an instantiated
wrapper for it
- Added storeRequest()
- Added returnRequests()
- Added listRequestKeys()
- Added removeRequest()

* Updated to account for these new methods
Adjusted the request() method to account for $this->apiRequestBody['params'] being set, but not having an actual params.

This allows things to work with the new bulkParams() change.
Adjusted if statement format per merge comment
cleared out some commented variables
don't clear params when using bulkParam
removed some duplicated code
added method visibility
removed closing ?> tag to conform with PSR-2 standards and to avoid whitespace issues
* Fixed cleanArrayDisp() method
** $displayString was just appending data everytime the function was
called since it is a static property. Fixed this.
Added the cleanArrayDisp() method.

Updated to account for this.
Fixed listMethodParams() to account for 'optional' being set, but having
a value of 0
Parameters can be passed upon object instantiation if desired
Changed to Apache 2.0 License

Added bulkParams() method

- Slight tweak on listParams() method to mitigate errors if no params

- Added functionality to remove individual params
Should be $this->clearParams() not clearParams()
Date: 5 years ago
Size: 15,840 bytes


You need to be a registered user and login to get this file.

Login Immediately with your account on: