This extension is for Magento developers using PhpStorm. It generates a class map for autocompletion.
- version: 0.2
- extension key: - none -
- Magento Connect 1.0 extension key: - none -
- Magento Connect 2.0 extension key: - none -
- extension on GitHub
- direct download link
Build a class map for the PhpStorm facorty support introduced with the blog posts.
You need to rerun the script every time you add a class or configure a rewrite.
- Supported Factory Methods
- Mage::getModel()
- Mage::getSingleton()
- Mage::getResourceModel()
- Mage::getResourceSingleton()
- Mage::getBlockSingleton()
- Mage::helper()
- Mage_Core_Model_Factory::getModel()
- Mage_Core_Model_Factory::getSingleton()
- Mage_Core_Model_Factory::getResourceModel()
- Mage_Core_Model_Factory::getHelper()
- Mage_Core_Block_Abstract::helper()
- Mage_Core_Model_Layout::createBlock()
- Mage_Core_Model_Layout::getBlockSingleton()
- Mage_Core_Block_Abstract::getHelper()
- Respects class rewrites
php shell/generate-phpstorm-map.php --file .phpstorm.meta.php
If no file is specified the class map will be output to STDOUT
Option | Default | Description |
---|---|---|
--file |
stdout |
File location to save the output. |
--instantiableCheck |
Off |
Perform an additional instantiable check for each class. If it's enabled the generate process will slow down. |
--phpExecutable |
php |
Path to the php executable to start the instantiable check. |
--debug |
Off |
Print debug output on stderr why classes gets excluded. |
If you have any issues with this extension, open an issue on GitHub (see URL above).
Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.
- Vinai Kopp http://www.netzarbeiter.com @VinaiKopp
- Erik Wohllebe
OSL - Open Software Licence 3.0
(c) 2013 Vinai Kopp