Re: PHPDoc autocomplete hints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




In getUserDAO()  method you need to specify return type eg

/**
* @return UserDAO
*/
function getUserDAO(){
 .......

}


and UserDAO  class must have resetPW method, I guess it alredy has.


This works for me, I have Zend Studio 5.5.0


On Feb 26, 2008, at 2:21 PM, Thiago Pojda wrote:

Guys,

I'm new to this thing and I'm not sure if it's my IDE (ZendStudioNeon)
problem, or if I'm doing something wrong. I always use PHPDoc block comments on my functions, but this time I'm using factories in my code and missing autocomplete on those objects. I've tried using those hints as below, but
with no luck. What am I missing?

/* This code is not real */
$DAOFactory = new DAOFactory();
$usrObj = $DAOFactory->getUserDAO(); //autocomplete ok
$usrObj->resetPW($usr, $newPw); // no autocomplete here

I've tryed using:
$DAOFactory = new DAOFactory();
$usrObj = $DAOFactory->getUserDAO(); //autocomplete ok
/* @var $usrObj UserDAO */
$usrObj->resetPW($usr, $newPw); // but still no autocomplete here

Tried also
/* @var UserDAO */
$usrObj->resetPW($usr, $newPw); // no luck either


Thanks for your help.


PS: I've sent a similar message to ZendStudioNeon mailing list.

Atenciosamente,


 <http://www.softpartech.com.br/> www.softpartech.com.br


Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
thiago.pojda@xxxxxxxxxxxxxxxxxx
Excelência em Softwares Financeiros



Bojan Tesanovic
http://www.classicio.com/
http://www.real-estates-sale.com/




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux