Re: PHPDoc autocomplete hints

From: Date: Tue, 26 Feb 2008 21:13:36 +0000
Subject: Re: PHPDoc autocomplete hints
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-270231@lists.php.net to get a copy of this message
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@softpartech.com.br Excelência em Softwares Financeiros
Bojan Tesanovic http://www.classicio.com/ http://www.real-estates-sale.com/

« previous php.general (#270231) next »