Alexandre Góes
Member
Hi all,
I'm trying to make and add-on to allow a parent forum to display also all threads of its child forums. I can do it in many ways, but I would like to do it the right way!
At first, I thought about extending the prepareThreadConditions() of the Thread model so I can change the $conditions['node_id'] to an array and them call the base prepareThreadConditions().
But I could also change the getThreads() from the same model, the actionList() of Thread Controller or even the actionForum() of the Forum Controller... The list goes on...
So, my question is: What would be the best class:function, following best coding practices, to extend to achiev this?
Thank you in advance!
I'm trying to make and add-on to allow a parent forum to display also all threads of its child forums. I can do it in many ways, but I would like to do it the right way!
At first, I thought about extending the prepareThreadConditions() of the Thread model so I can change the $conditions['node_id'] to an array and them call the base prepareThreadConditions().
But I could also change the getThreads() from the same model, the actionList() of Thread Controller or even the actionForum() of the Forum Controller... The list goes on...
So, my question is: What would be the best class:function, following best coding practices, to extend to achiev this?
Thank you in advance!