HOR-3765
Fix wrong __constructors
This commit is contained in:
@@ -26,42 +26,6 @@ class Net
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This function is the constructor of the class net
|
|
||||||
*
|
|
||||||
* return void
|
|
||||||
*/
|
|
||||||
public function __construct0()
|
|
||||||
{
|
|
||||||
$this->errno = 0;
|
|
||||||
$this->error = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This function is the constructor of the class net
|
|
||||||
*
|
|
||||||
* @param string $pHost
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function __construct1($pHost)
|
|
||||||
{
|
|
||||||
$this->errno = 0;
|
|
||||||
$this->errstr = "";
|
|
||||||
$this->db_instance = "";
|
|
||||||
|
|
||||||
unset($this->db_user);
|
|
||||||
unset($this->db_passwd);
|
|
||||||
unset($this->db_sourcename);
|
|
||||||
|
|
||||||
#verifing valid param
|
|
||||||
if ($pHost == "") {
|
|
||||||
$this->errno = 1000;
|
|
||||||
$this->errstr = "NET::You must specify a host";
|
|
||||||
//$this->showMsg();
|
|
||||||
}
|
|
||||||
$this->resolv($pHost);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function puts a host
|
* This function puts a host
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ abstract class Api
|
|||||||
const STAT_CREATED = 201;
|
const STAT_CREATED = 201;
|
||||||
const STAT_APP_EXCEPTION = 400;
|
const STAT_APP_EXCEPTION = 400;
|
||||||
|
|
||||||
public function __costruct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
self::$workspace = null;
|
self::$workspace = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user