[ 
https://issues.apache.org/jira/browse/NETBEANS-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allan Laal updated NETBEANS-256:
--------------------------------
    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

  was:
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

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


> ADD code traversal/navigation and code completion support for (Magento) 
> factory methods in PHP
> ----------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-256
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-256
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Navigation
>    Affects Versions: Next
>            Reporter: Allan Laal
>
> 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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to