Hi codelobster team.
Tried to work with __construct inside a class.
First thing noticed is that __construct function is not auto completing ... But that's not really a problem. The problem is when you use the class. The class is does not suggest the variables. Example below.
<?php
class FirstClass {
private $server; private $user; private $pass;
public function __construct($iserver, $iuser, $ipass) /* __construct is not in the autocompletion list */{
$this->server = $iserver; $this->user = $iuser; $this->pass = $ipass;
mysql_connect($iserver, $iuser, $ipass) or die(mysql_error());
}
}
$firstclass = new FirstClass(/* inside here, CodeLobster is not suggesting the variables */);
?>
I hope you understand me. Sorry for my bad english. Cheers.
|