aboutsummaryrefslogtreecommitdiff
path: root/lib/elearning/clients/webservice_client.php
blob: a7f97f2cb6b3d3e44fde4ec4661552cefa4e45db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
# Lifter002: TODO
# Lifter007: TODO
# Lifter003: TODO
# Lifter010: TODO

class WebserviceClient
{
    public static function instance($webservice_url, $classname)
    {
        static $instances = [];

        if (!isset($instances[$classname . $webservice_url])) {
            $instances[$classname . $webservice_url] = new $classname($webservice_url);
        }

        return $instances[$classname . $webservice_url];
    }

    public function __construct()
    {
        trigger_error("this class can't be instantiated");
    }

    public function &call($method_name, &$args)
    {
        trigger_error("WebserviceCaller::WebserviceCaller::  call not defined");
    }
}