Skip to content
Lloyd Wallis edited this page Oct 14, 2013 · 2 revisions

Welcome to the MyRadio wiki!

Development FAQ

How do I get started quickly?

Basically, this is a list of things that MyURY has/does that if you know are there will make your life a lot simpler. Hopefully. A lot of this will be links to the API documentation - I hope it covers things well, otherwise drop me an email/poke me on IRC and I'll make it betterer.

The phpdoc site also has some basic documentation for all the ServiceAPI children classes - as this thing develops the chances of MyURY already having a data structure to do what you want approaches 0.5, so take a look there to see what's already available and see what it can do.

Even better, the REST API SwaggerUI provides a “Try It” system if you have an API key, so you can actively test input values to see output. I often use this for building class methods before implementing the UI.

https://ury.org.uk/api/rtfm/#!/Utils - CoreUtils class (like happyTime!) Forms, https://urybsod.york.ac.uk/phpdoc/classes/MyURYForm.html, https://urybsod.york.ac.uk/phpdoc/classes/MyURYFormField.html - The Forms API https://urybsod.york.ac.uk/phpdoc/ - Generated at xx:43 by urybsod:/home/lpw/doc.sh https://urybsod.york.ac.uk/myurydoc/ - Generated on the rare occassions the post-update git hook works https://ury.org.uk/api/rtfm/ - MyURYpi Documentation - Generated on the fly on every access using reflection

I changed something and MyRadio hasn't noticed!

This is likely down to caching. When implementing a method that changes an object, make sure you call $object->updateCacheObject(), as this tells APC to update its local copy.