This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 132765 - No code completion for $this->, parent::, self::
Summary: No code completion for $this->, parent::, self::
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on: 122056
Blocks: 132766
  Show dependency tree
 
Reported: 2008-04-14 14:49 UTC by Petr Pisl
Modified: 2008-04-16 16:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-04-14 14:49:53 UTC
The code completion doesn't offer $this in the classes. Simple example:

class User {
        private $name;
        function User ($name) {
            $this->name = $name;
        }
        function getName() {
            return $this->name;
        }
    }
Comment 1 Tomasz Slota 2008-04-16 08:57:25 UTC
CC currently doesn't recognize class declaration context (issue 122056). The trivial fix would be to offer the $this variable anywhere, but it doesn't seem to br 
a very good idea...
Comment 2 Tomasz Slota 2008-04-16 13:00:46 UTC
Reassigning to Vita who volunteered to take care of this issue. Note that this issue is not just about the keyword but also the fields and methods of currently 
edited class