You are here: Re: PDT Completion « PHP Programming Language « IT news, forums, messages
Re: PDT Completion

Posted by Joe Scylla on 01/25/08 14:04

wozozo wrote:
> hello.
>
> i'm using PDT. But, complement does not work well.
> Please see the following codes.
>
> --------------------------------------------------------------------
>
> class A {
> public $a;
> public function __construct() {
> $this->a = new B();
> }
> }
>
> class B {
> public $b;
>
> public function funcB() {
> echo 'classB';
> }
> }
>
> $obj = new A();
> $obj->a->
>
> --------------------------------------------------------------------
>
> after this I want to complement "" funcB() "" .
> But It is not complemented even if it pushes Ctrl+Space.
>
> " $obj->a" is complemented.
> Can't this complement be performed in PDT?

Yes, but only if you document your sourcecode with PHPDocumentor-Tags:

To get smarthelp for the property of your Class A you have to add
following documentation tags:

<code>
class A {
/**
* Type of class B
*
* @var B
*/
public $a;
public function __construct() {
$this->a = new B();
}
}
</code>

More infos at: http://www.phpdoc.org/

Joe

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация