NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Complete Displaying private/protected items


Joined: 13 Feb 2008
Posts: 32
Reply with quote
Is their a setting in PHPED that will allow the display of private or protected members?
View user's profileFind all posts by linchatSend private message


Joined: 13 Feb 2008
Posts: 32
Reply with quote
I should have added more to this in the begining. Essentially, I have an object that I want mapped to a database. So for each field their will be a correspond set or get, there would be no direct access to the variables. Is there a way in PHPED in code completion to display a ghost list of members either through phpdoc? Example
Code:

class hello
{
    /**
   @var name
   @var address
   */

    function _get($nm)
    {
         if ($nm == "name")
              return "Frank";
         return $this->nm
    }
}
$a = new hello();
$a->name;

What I would like to have happen is while I am typing $a-> (A ghost list of members show up that can actually drop into code like the @var's name, address). It is hard to remember every single db field's name.
View user's profileFind all posts by linchatSend private message


Joined: 13 Feb 2008
Posts: 32
Reply with quote
I was just reading this from PHPDoc,

Code:
#
/**
#
 * show off @property, @property-read, @property-write
#
 *
#
 * @property mixed $regular regular read/write property
#
 * @property-read int $foo the foo prop
#
 * @property-write string $bar the bar prop
#
 */


To be used with magic items. This was informational, would like to have it show up in code completion though as an actual selectable property for completion. I think I am carrying on my own conversation, just hopes it gets the point across. Smile
View user's profileFind all posts by linchatSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Well then, to help you out here and make it look as an actual conversation, take a look at this thread Smile
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 13 Feb 2008
Posts: 32
Reply with quote
Thanks I think.... Smile I guess PhpEd does not support it. That is a bummer.
View user's profileFind all posts by linchatSend private message
Code Complete Displaying private/protected items
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic