![]() |
![]() | code completion problem | ![]() |
![]() |
![]() | ![]() |
![]() |
![]() |
Ive updated the code so there are no errors but I still dont get code completion????
<?php include("db.php"); $D = return_db_object(); $C = new DbCreator($D); $C->CreatephpDatabaseObject("blah",$D); class DbCreator{ public $D2; public function CreatephpDatabaseObject($database,$D1) { $this->D2=$D1; THIS CODE WORKS BU NO CODE COMPLETION!!!! $data = $this->D2->SelectQuery("select * from urog_account"); $this->CreateClass($database); } public function CreateClass($database) { echo "Class Db_".$database."(){"; } } ?> Thanks |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
Got it!!
|
|||||||||||
|
![]() |
![]() | ![]() |
Guru master
![]() |
![]() |
If you can't get the parser to see which type the variable has (it happens plenty since sometimes includes are dynamic etc), you can always use @var as a type indicator. It has helped me a lot in the past
![]()
Just a fictional example. If the parser didn't know what the type was, it knows now ![]() Edit: The /** is not a typo, it needs to be 2 asterisks so that the block is interpreted as a DocBlock |
|||||||||||||
|
![]() |
![]() | code completion problem | ![]() |
|
||
![]() |
![]() |
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
