Skip to content

This extension is for Magento Developers using PHPStorm. It generates a class map for autocompletion.

Notifications You must be signed in to change notification settings

Vinai/phpstorm-magento-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHPStorm Magento Mapper

This extension is for Magento developers using PhpStorm. It generates a class map for autocompletion.

Facts

Description

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

Usage

php shell/generate-phpstorm-map.php --file .phpstorm.meta.php

If no file is specified the class map will be output to STDOUT

Parameters

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.

Support

If you have any issues with this extension, open an issue on GitHub (see URL above).

Contribution

Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Licence

OSL - Open Software Licence 3.0

Copyright

(c) 2013 Vinai Kopp

About

This extension is for Magento Developers using PHPStorm. It generates a class map for autocompletion.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages