Skip to content

Can I use j!dump to find out where a class is defined? #29

@newjie

Description

@newjie

I am a beginner with PHP and Joomla Core development. This great extension helps me a lot during my learning.
A very frequent situation when I try to understand some code is, there is a method of a class being invoked in a line and I want to look into the definition of the class but have no idea where it is. Before j!dump, I had to download the extension in question and in-text search the class, which takes a lot of time. I believe this simple goal can be achieved by using j!dump, but I don't know how. It is like follows:

$messages = modPimediaplayerHelper::getStudy($params);

This line is found in a module's PHP file, I'd like to know where this modPimediaplayerHelper is defined, I tried dump(modPimediaplayerHelper) and dump(modPimediaplayerHelper::getStudy), both of them don't work, so what should I do?

By the way, when I try to dump($params), it returns a object without meaningful properties but only methods, which provokes me to look into how this $params object is defined also, how do I use j!dump to track it?

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