Les explications en français sont disponibles ici: http://blog.julienbourdeau.com/geek/phpstorm-lautocompletion-avec-prestashop/
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
{
// ...
}
- 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
The file autocomplete.php will extend each Core class and use the correct name.
class Address extends AddressCore {}
This is based on an original idea from dkarvounaris