Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get extra (unnecessary) results when, model.php and controller.php are marked as plain text #15

Open
glorsh66 opened this issue May 3, 2018 · 4 comments

Comments

@glorsh66
Copy link

glorsh66 commented May 3, 2018

It's quite simple -when i use my own models and libraries i get extra autocomplete options that makes findings a needed opinion more difficult, and it just unnecessary garbage.

It is without making model.php and controller.php are marked as plain text
(i got only what i need)
image

It is when they are marked as a plain text file
(i get a lot of garbage results)
image

Is there a way to improve it?
Of course without marking model.php and controller.php as plain text standard models doesn't work properly (such as DB and so son)

@natanfelles
Copy link
Owner

While the "default" properties are unnecessary in your use case, this properties can be accessed by your model, like:

$this->PModel->input->get('foo');

It occurs because this properties exists in the CI_Model, (well, we are simulating this existence with the phpstorm.php...). So, when you extends CI_Model this properties appears.

The PhpStorm IDE show the direct child class methods and properties with a bold text, I think that it is the way. And the methods with red background.

I think is not possible to ignore the properties, because this is there. And this must be showed.

@glorsh66
Copy link
Author

glorsh66 commented May 9, 2018

Do you know is it possible to sort autocomplete results in phpstoms?

@natanfelles
Copy link
Owner

I'm not sure. But I know that is possible to configure it to show the autocompletion lexicographically.

For example, you type $this->md and the panel will show properties/methods with priority for words containing md, like foo_model could go to the panel top.

@natanfelles
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants