13 | *
14 | * @property membership_model $membership_model
15 | * @property site_model $site_model
16 | * @property data_model $data_model
17 | * @property products_model $products_model
18 | * @property film_model $film_model
19 | * @property film_model1 $film_model1
20 | *
21 | *
22 | *
23 | */
24 | class my_models
25 | {
26 | }
27 |
28 | // End my_models.php
29 |
--------------------------------------------------------------------------------
/OpenCart/controller.php:
--------------------------------------------------------------------------------
1 |
11 | * CodeIgniter CodeIgniter/
12 | * phpBB3 phpBB3.php Some phpBB3 CC fixes
13 | * WordPress WordPress/
14 | * OpenCart OpenCart/ Still in early stages, but should show example
15 | * WordPress example.php Some other fix examples
16 | * Laravel submodule laravel-helpers
17 |
18 |
19 |
20 |
21 | ##### Note: plugins work only in PhpStorm 2016.3 EAP
22 | Props to @artspb for pointing me to this and showing me how they are created.
23 |
24 | The plugins in this repo will be available via the phpStorm plugin system as of `2016.3 EAP`
25 |
26 |
27 | Laravel helpers https://github.com/danielboendergaard/laravel-helpers
28 |
29 | CodeIgniter source https://github.com/EllisLab/CodeIgniter
30 |
31 | Thought I would mention I checked NetBeans 7.1 with CI and the CI_phpStorm.php helps NetBeans with code completion as well .
32 |
33 | ## Basic Instructions
34 | Fork and Clone or Clone to somewhere on your dev machine
35 |
36 | ***Get Laravel helpers***
37 |
38 | git submodule init
39 | git submodule update
40 |
41 |
42 | ***Loading in phpStorm***
43 |
44 | Load your actual project, then you have 2 options, set include path or add content root (Your choice)
45 |
46 | **Option 1 =**
47 | File > Settings > Directories > Add Content Root > Select the directory in phpStorm-CC-helpers that is relevant > mark Resource Root
48 |
49 | **Option 2 =**
50 | In the project window right click External Libraries > Configure PHP Include Paths
51 | Then add the path to the phpStorm-CC-helpers that is relevant
52 |
53 | ### CodeIgniter Specific
54 | #### Mark as Plain Text
55 | * /system/core/Controller.php
56 | * /system/core/Model.php
57 | * /system/database/DB_active_rec.php
58 |
59 | You should now have code completion.
60 |
61 | ##### Using the my_models.php
62 | Add your models to the docBlock
63 |
64 | Example
65 |
66 | ```php
67 | @property membership_model $membership_model
68 | ```
69 |
70 | membership_model is the model class and $membership_model will be the property you use to instance it.
71 |
72 | Example
73 |
74 | ```php
75 | $this->membership_model->get_records();
76 | ```
77 |
78 | This will give you code completion for your model methods.
79 |
80 | ### OpenCart Specific
81 | #### Mark as Plain Text
82 | * /system/engine/controller.php
83 | * /system/engine/model.php
84 | * /system/engine/loader.php
85 |
86 |
87 |
--------------------------------------------------------------------------------
/WordPress/wpdb_docs.php:
--------------------------------------------------------------------------------
1 | term_id);
7 |
8 | /**
9 | * @property wpdb $ID
10 | * @property wpdb $post_author
11 | * @property wpdb $post_date
12 | * @property wpdb $post_date_gmt
13 | * @property wpdb $post_content
14 | * @property wpdb $post_title
15 | * @property wpdb $post_excerpt
16 | * @property wpdb $post_status
17 | * @property wpdb $comment_status
18 | * @property wpdb $ping_status
19 | * @property wpdb $post_password
20 | * @property wpdb $post_name
21 | * @property wpdb $to_ping
22 | * @property wpdb $pinged
23 | * @property wpdb $post_modified
24 | * @property wpdb $post_modified_gmt
25 | * @property wpdb $post_content_filtered
26 | * @property wpdb $post_parent
27 | * @property wpdb $guid
28 | * @property wpdb $menu_order
29 | * @property wpdb $post_type
30 | * @property wpdb $post_mime_type
31 | * @property wpdb $comment_count
32 | * @property wpdb $filter
33 | * @property wpdb $term_id
34 | * @property wpdb $name
35 | *
36 | */
37 | class wpdb {}
38 |
--------------------------------------------------------------------------------
/example.php:
--------------------------------------------------------------------------------
1 |
2 | me.artpsb.idea.plugin.codeigniter.code.completion.helper
3 | CodeIgniter Code Completion Helper
4 | 1.0
5 | Jeff Behnke
6 |
7 | Mark as Plain Text
10 |
11 | - /system/core/Controller.php
12 | - /system/core/Model.php
13 | - /system/database/DB_active_rec.php
14 |
15 | ]]>
16 |
17 | 1.0
19 |
20 | - Initial support.
21 |
22 | ]]>
23 |
24 |
25 |
26 |
27 | com.intellij.modules.platform
28 | com.jetbrains.php
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/plugins/OpenCart/META-INF/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 | me.artpsb.idea.plugin.opencart.code.completion.helper
3 | OpenCart Code Completion Helper
4 | 1.0
5 | Jeff Behnke
6 |
7 | Mark as Plain Text
10 |
11 | - /system/engine/controller.php
12 | - /system/engine/model.php
13 | - /system/engine/loader.php
14 |
15 |
16 | ]]>
17 |
18 | 1.0
20 |
21 | - Initial support.
22 |
23 | ]]>
24 |
25 |
26 |
27 |
28 | com.intellij.modules.platform
29 | com.jetbrains.php
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/plugins/WordPress/META-INF/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 | me.artpsb.idea.plugin.wordpress.code.completion.helper
3 | WordPress Code Completion Helper
4 | 1.0
5 | Jeff Behnke
6 |
7 |
10 |
11 | 1.0
13 |
14 | - Initial support.
15 |
16 | ]]>
17 |
18 |
19 |
20 |
21 | com.intellij.modules.platform
22 | com.jetbrains.php
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/screenshots/CodeIgniter/acive_record1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topdown/phpStorm-CC-Helpers/0cf1c94b35f85169e009c3b6cc2d3318c03bcf04/screenshots/CodeIgniter/acive_record1.png
--------------------------------------------------------------------------------
/screenshots/CodeIgniter/active_record2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topdown/phpStorm-CC-Helpers/0cf1c94b35f85169e009c3b6cc2d3318c03bcf04/screenshots/CodeIgniter/active_record2.png
--------------------------------------------------------------------------------
/screenshots/CodeIgniter/active_record3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topdown/phpStorm-CC-Helpers/0cf1c94b35f85169e009c3b6cc2d3318c03bcf04/screenshots/CodeIgniter/active_record3.png
--------------------------------------------------------------------------------
/screenshots/CodeIgniter/driver_result.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topdown/phpStorm-CC-Helpers/0cf1c94b35f85169e009c3b6cc2d3318c03bcf04/screenshots/CodeIgniter/driver_result.png
--------------------------------------------------------------------------------
/screenshots/CodeIgniter/info-blocks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topdown/phpStorm-CC-Helpers/0cf1c94b35f85169e009c3b6cc2d3318c03bcf04/screenshots/CodeIgniter/info-blocks.png
--------------------------------------------------------------------------------
/screenshots/CodeIgniter/mark-plain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topdown/phpStorm-CC-Helpers/0cf1c94b35f85169e009c3b6cc2d3318c03bcf04/screenshots/CodeIgniter/mark-plain.png
--------------------------------------------------------------------------------
/screenshots/CodeIgniter/methods.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topdown/phpStorm-CC-Helpers/0cf1c94b35f85169e009c3b6cc2d3318c03bcf04/screenshots/CodeIgniter/methods.png
--------------------------------------------------------------------------------
/screenshots/CodeIgniter/properties.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/topdown/phpStorm-CC-Helpers/0cf1c94b35f85169e009c3b6cc2d3318c03bcf04/screenshots/CodeIgniter/properties.png
--------------------------------------------------------------------------------