Fix wrong __constructors
This commit is contained in:
David Callizaya
2017-08-22 14:48:01 -04:00
parent c4a70d35d9
commit 0701001fd5
2 changed files with 1 additions and 37 deletions

View File

@@ -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
* *

View File

@@ -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;
} }