Giter Site home page Giter Site logo

coopergarry / phpstorm-prestashop-autocomplete Goto Github PK

View Code? Open in Web Editor NEW

This project forked from julienbourdeau/phpstorm-prestashop-autocomplete

0.0 0.0 0.0 128 KB

Makes PhpStorm autocomplete work with PrestaShop

Home Page: http://www.sigerr.org/misc/phpstorm-get-autocomplete-prestashop/

PHP 100.00%

phpstorm-prestashop-autocomplete's Introduction

PhpStorm PrestaShop Autocomplete

phpstorm-prestashop-autocomplete-screenshot.png

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

  1. Download the file autocomplete.php (or clone this repo)
  2. Add the file to your project as an "External Library"
  3. Double click "External Libraries"
  4. Click on '+'
  5. Select the folder containing autocomplete.php

how-to-get-phpstorm-autocomplete-prestashop.png

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

phpstorm-prestashop-autocomplete's People

Contributors

aleeks avatar julienbourdeau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.