NED Posted January 19, 2022 Share Posted January 19, 2022 I saw: $topic->isQuestion() $topic->mapped('title') Â But may I see all contents in $topic and other variables and objects used (and not used) in the templates? I looked in the API but didn't find anything helpful. Link to comment Share on other sites More sharing options...
Runar Posted January 20, 2022 Share Posted January 20, 2022 If you're on a self-hosted license, you can browse the different source files to see all the available methods. For instance, the Topic class (from your $topic) and methods would be located in applications/forums/sources/Topic/Topic.php. Note that most classes extend other classes, so you might have to look in multiple classes to find all available methods. I haven't found this information online. NED and SeNioR- 1 1 Link to comment Share on other sites More sharing options...
Solution Daniel F Posted January 20, 2022 Solution Share Posted January 20, 2022 Once you enable IN_DEV, you can also use the hook editor to see all available properties and methods 🙂   Miss_B, Runar, SeNioR- and 1 other 3 1 Link to comment Share on other sites More sharing options...
Runar Posted January 20, 2022 Share Posted January 20, 2022 8 minutes ago, Daniel F said: Once you enable IN_DEV, you can also use the hook editor to see all available properties and methods 🙂 Good point! I usually edit files in my favorite editor (vim, of course), so I forgot about the hook editor. Does the hook editor get the information about properties and methods directly from the source files? Link to comment Share on other sites More sharing options...
Daniel F Posted January 20, 2022 Share Posted January 20, 2022 Just now, Runar said: Good point! I usually edit files in my favorite editor (vim, of course), so I forgot about the hook editor. Does the hook editor get the information about properties and methods directly from the source files? Yes. IDE's can support this too ( https://github.com/codingjungle/toolbox ) Joey_M, Runar and SeNioR- 2 1 Link to comment Share on other sites More sharing options...
Recommended Posts