Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 183352 - Autocomplete for properties
Summary: Autocomplete for properties
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement with 50 votes (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2007-04-20 05:38 EDT by Alex Netkachov CLA
Modified: 2020-05-14 11:28 EDT (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Netkachov CLA 2007-04-20 05:38:20 EDT
In PHP properties are handled using __get and __set functions. But there is a lack of PHP doc standard for it and, as the result, autocomplete.
I think that PDT autocomplete can be based on 
http://greg.chiaraquartet.net/archives/140-phpDocumentor-and-__get__set__call-give-us-your-ideas-RFC.html

In short:
@property[-read|-write] type $varname [description]


<?php
/**
 * show off @property, @property-read, @property-write, @method
 *
 * @property mixed $regular regular read/write property
 * @property-read int $foo
 * @property-write string $bar
 */
class blah
{
    function __get($var)
    {
        ...
    }
}
Comment 2 Mike Ho CLA 2007-09-11 22:46:25 EDT
Just wondering if there was an update on this enhancement?  It's an incredibly important feature to us, and I would love to see support of this in PDT.
Comment 3 C. Dyck CLA 2007-10-12 13:38:35 EDT
(In reply to comment #2)
> Just wondering if there was an update on this enhancement?  It's an incredibly
> important feature to us, and I would love to see support of this in PDT.
> 

So everybody should vote for this enhancement. 3 Votes are nothing compared to the 26 votes for aptana integration.
Comment 4 Dan V CLA 2007-10-13 11:04:52 EDT
I too voted for this bug because autocomplete for properties is a sorely lacking feature in just about every php editor and addition of such a feature would help PDT gain a much wider audience.
Comment 5 Justin Dalton CLA 2007-10-17 14:50:30 EDT
Without this, magic functions are actually harder to use than just creating a set function. This bugfix would make my life so much easier
Comment 6 Fred Thu CLA 2007-10-22 08:36:02 EDT
We just switched to PDT and love it... Please add this function... so I get a chance to keep my last hair !
Comment 7 Fernando Lordán CLA 2007-12-17 16:11:40 EST
I can't call it a bug, but this is definately a must have.

It's a nonsense (and a true pain) to be forced to analyze once and again the virtual getters/setters. This is not true autocompletion until virtual properties are supported, IMHO.
Comment 8 fred frituurvet CLA 2008-03-05 14:18:06 EST
Why isn't this allready in?
Comment 9 Paul Freeman CLA 2008-06-03 04:30:26 EDT
Definitely a must have for the seasoned php developer and certainly the icing on the cake for PDT! a must have IMO :)
Comment 10 Roy Ganor CLA 2008-09-12 01:55:45 EDT
fixed in head.

available in PDT 2.0 nightly builds
Comment 11 Gadi Goldbarg CLA 2008-09-21 06:52:43 EDT
I just have @property in Code Assist. What should we expect ?
Comment 12 Roy Ganor CLA 2008-09-21 13:16:29 EDT
I wrote a short dev2qa article about it, is available in wiki:

http://wiki.eclipse.org/MagicAccess

Let us know if there are more questions...
Comment 13 Gadi Goldbarg CLA 2008-10-05 11:02:33 EDT
ok