Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6742081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:48:03+00:00 2026-05-26T11:48:03+00:00

In PDT I can do /* @var $this MyClass */ and eclipse will use

  • 0

In PDT I can do

/* @var $this MyClass */

and eclipse will use that for autocompletition, suggestions and so forth… It’s useful in template files which get included into a function of a class from a templating engine.

Is there an equivalent for Aptana Studio 3?

I’ve also tried

/** @var $this MyClass */

and

/** @var MyClass $this */

EDIT

I’m evaluating the use of Aptana, it has some advantages over Eclipse + PDT. So, “use another IDE” isn’t really an answer.

$this does not get automatically resolved by the IDE to the correct class because it’s used outside of the class definition.

Example usage:

  • Template.class.php:

    class Template {
        public function render() {
            include 'template.inc.php';
        }
        private function foo() {
            echo 'bar!';
        }
    }
    
  • template.inc.php

    <?php /*@var $this Template*/ ?>
    <html>
    <body>
      <?php 
      /* I want that when I type "$this->" the IDE suggests me "foo()" */
      $this->foo(); 
      ?>
    </body>
    </html>
    
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:48:03+00:00Added an answer on May 26, 2026 at 11:48 am

    Upgrade to 3.0.7. It appears to be available in that version.

    See http://jira.appcelerator.org/browse/APSTUD-1714

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't seem to find/view .htaccess files in Eclipse PDT. I looked in the
Using Eclipse + PDT, I know that you can specify the return type of
I just upgraded by eclipse PDT and can't use the keyboard shortcut command +
I want to use PDT to debug PHP with eclipse. I am using ubuntu
I have Eclipse 3.3.2 with PDT doing PHP development. All projects that I create,
I am making numerous, minute changes to .php files in Eclipse PDT then committing
I am a newbie to php and have been trying to use Eclipse PDT
I use eclipse pdt, eclipse helios sr2 (eclipse 3.6.2, pdt 2.2.1, subclipse 1.6.18, svn
I use Eclipse PDT and have setup some PHP projects. The resources for one
I am currently coding with Eclipse PDT, and I need to synchronise the files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.