Skip to content

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

Open

Description

@glorsh66

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)

Activity

  1. natanfelles commented on May 3, 2018

    @natanfelles
    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.

  2. glorsh66 commented on May 9, 2018

    @glorsh66
    Author

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

  3. natanfelles commented on May 9, 2018

    @natanfelles
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions