julienbourdeau / Phpstorm Prestashop Autocomplete
Makes PhpStorm autocomplete work with PrestaShop
Stars: ✭ 50
PhpStorm PrestaShop Autocomplete
Les explications en français sont disponibles ici: http://blog.julienbourdeau.com/geek/phpstorm-lautocompletion-avec-prestashop/
Why do I need this ?
If you use PhpStorm and PrestaShop you probably noticed that you can't get your IDE to autocomplete everything. PrestaShop is designed to be overridden, and every class from the core is suffixed with 'Core'.
For example, Address class is actually declared this way:
class AddressCore extends ObjectModel
{
// ...
}
How to get autocomplete with PrestaShop
- Download the file autocomplete.php (or clone this repo)
- Add the file to your project as an "External Library"
- Double click "External Libraries"
- Click on '+'
- Select the folder containing autocomplete.php
How It Works
The file autocomplete.php will extend each Core class and use the correct name.
class Address extends AddressCore {}
Credits
This is based on an original idea from dkarvounaris
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].