X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=php%2Fplc_api.php;h=38aa8961a8eec8b5973980c407c779264f589dd5;hb=afaa86e866019b80eb3524706fc19837047c2e49;hp=551717c9ea0a44884ded1cddd661279b6d70f095;hpb=c60d0d3b4534bf4d165a902ee6d95d71053012f6;p=plcapi.git diff --git a/php/plc_api.php b/php/plc_api.php index 551717c..38aa896 100644 --- a/php/plc_api.php +++ b/php/plc_api.php @@ -41,11 +41,11 @@ class PLCAPI { var $calls; var $multicall; - function PLCAPI($auth = NULL, - $server = PLC_API_HOST, - $port = PLC_API_PORT, - $path = PLC_API_PATH, - $cainfo = NULL) { + function __construct($auth = NULL, + $server = PLC_API_HOST, + $port = PLC_API_PORT, + $path = PLC_API_PATH, + $cainfo = NULL) { $this->auth = $auth; $this->server = $server; $this->port = $port;