Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-256

ADD code traversal/navigation and code completion support for (Magento) factory methods in PHP

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Next
    • None
    • php - Navigation
    • None

    Description

      example:
      $model = Mage::getModel('catalog/product');

      now when I type:
      $model->

      I then expect it to offer me methods from the class returned by the getModel factory.
      I understand that not all factory methods work the same, but there could be a way in NetBeans to define which factory methods return what classes (ideally from the dockblock of the factory method itself)

      in the example above it would return an "Mage_Catalog_Model_Product" object - often the class returned by a factory in Magento is as simple as that. Same with other major PHP frameworks.

      Also clicking on 'catalog/product' would open up Mage_Catalog_Model_Product

      this would make developing in PHP in NetBeans so much more better for the not so rare cases, when we use big properly built (thus highly abstract) frameworks

      Attachments

        Activity

          People

            Unassigned Unassigned
            allanlaal Allan Laal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: