Marcus
Well-known member
Another solution
You just extend the regular model to have access to some of its functions. In this case, you do not need to create a listener. You just do this:
PHP:
class Andy_ShowDeleted_Model_ShowDeleted extends XenForo_Model{
PHP:
$posts = $this->getModelFromCache('Andy_ShowDeleted_Model_ShowDeleted')->getDeletedPosts();