Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
[Edit removed during grace period]; edited body
Source Link
Mikan
  • 3k
  • 2
  • 14
  • 30

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 jJ!dump to track it?

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?

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?

Source Link
shenkwen
  • 1.4k
  • 1
  • 12
  • 26

j!dump: How do I track where a class is defined?

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?