DaveP Posted January 4, 2018 Share Posted January 4, 2018 Firstly apologies for the convoluted thread title. This was an idea I had a while ago and was brought to mind by @dragan's recent post. Going back to a project, I took some time to find where various bits of code were lurking - 'standard' files like init.php, ready.php, finished.php (are there any others?), 'non-template' files in /site/templates/ ('_whatever.php' type stuff) or something/somewhere else (folder inside /site/templates/ for example). Anyhow, the idea was for a process module (custom admin page) to check these built-in locations and configurable for others, with a docblock parser, that would report what files were in use and what functions they contain. Is there anything like this already? <edit class='saveReading'>Yep, Tracy (as is so often the case) has it covered</edit> If not, is there any merit in such a tool being created (shouldn't be that hard)? Link to comment Share on other sites More sharing options...
Zeka Posted January 4, 2018 Share Posted January 4, 2018 https://processwire.com/api/modules/api-explorer/ API Explorer is able to cover 3rd party Wire-derived classes and modules that are documented with phpdoc (and/or pwdoc if used). So, it only partially covers your idea. 1 Link to comment Share on other sites More sharing options...
adrian Posted January 4, 2018 Share Posted January 4, 2018 On 1/4/2018 at 2:23 PM, DaveP said: and what functions they contain Expand This part is covered by the Template Resources panel in Tracy. Perhaps it's time to parse the associated docblock and make that available as well - perhaps expandable like I have done in the Captain Hook panel? 3 Link to comment Share on other sites More sharing options...
DaveP Posted January 4, 2018 Author Share Posted January 4, 2018 On 1/4/2018 at 2:40 PM, adrian said: This part is covered by the Template Resources panel in Tracy. Expand TBQHWY I hadn't ever looked at that panel before now, and it pretty much does the job I had in mind - simply tracking where stuff was happening, included file wise. Docblock stuff would be a bonus, but I would class it as a welcome addition rather than a must-have. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now