OP\EBSWebservice
EBS webservice object used to interface with your Student Management System
Synopsis
class EBSWebservice
{
- // members
- private static $instance;
- private static $token;
- private static array $errors = ;
- private static boolean $jsonPutFix = false;
- // methods
- public static EBSWebservice|null connect()
- public static array getErrors()
- public static type getURL()
- public array request()
- protected void __construct()
- private void __clone()
- private void __wakeup()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Injector\Injectable
Members
private
- $errors
- $instance
- $jsonPutFix
- $token
Methods
private
- __clone() — Private clone method to prevent cloning of the instance of the *Singleton* instance.
- __wakeup() — Private unserialize method to prevent unserializing of the *Singleton instance.
public
- connect() — Connects to EBS. If it fails it will return a null object. You can see errors by looking at EBSWebservice::getErrors()
- getErrors() — returns an array of errors
- getURL() — checks the environment type, and returns the connection string
- request() — requests data from EBS