I just started developing add-ons for XenForo and I have a small question. I've been looking into the XenForo DataWriter class to write posts from my add-on but I need some kind of Forum class. Is there any way I can initialise a Forum class from the renderHtml environment in a ViewPublic extending class? Preferably something like $forum = SomeStaticIDontKnow::getForumModel($forumId)?
EDIT: I got lucky going through the source code and figured some stuff out. Would this work?
$forumId = 1; $forumModel = XenForo_Model::create('XenForo_Model_Forum'); $forum = $forumModel->getForumById($forumId);
Also, is there developer documentation about all the classes analog to MSDN for the .NET framework?