These are helper files for code completion in phpStorm with some Open Source Software that I work with.
* CodeIgniter CodeIgniter/ * phpBB3 phpBB3.php Some phpBB3 CC fixes * WordPress WordPress/ * OpenCart OpenCart/ Still in early stages, but should show example * WordPress example.php Some other fix examples * Laravel submodule laravel-helpers
Props to @artspb for pointing me to this and showing me how they are created.
The plugins in this repo will be available via the phpStorm plugin system as of 2016.3 EAP
Laravel helpers https://github.com/danielboendergaard/laravel-helpers
CodeIgniter source https://github.com/EllisLab/CodeIgniter
Thought I would mention I checked NetBeans 7.1 with CI and the CI_phpStorm.php helps NetBeans with code completion as well .
Fork and Clone or Clone to somewhere on your dev machine
Get Laravel helpers
git submodule init git submodule update
Loading in phpStorm
Load your actual project, then you have 2 options, set include path or add content root (Your choice)
Option 1 =
File > Settings > Directories > Add Content Root > Select the directory in phpStorm-CC-helpers that is relevant > mark Resource Root
Option 2 =
In the project window right click External Libraries > Configure PHP Include Paths
Then add the path to the phpStorm-CC-helpers that is relevant
- /system/core/Controller.php
- /system/core/Model.php
- /system/database/DB_active_rec.php
You should now have code completion.
Add your models to the docBlock
Example
@property membership_model $membership_model
membership_model is the model class and $membership_model will be the property you use to instance it.
Example
$this->membership_model->get_records();
This will give you code completion for your model methods.
- /system/engine/controller.php
- /system/engine/model.php
- /system/engine/loader.php