Marcus
Well-known member
This is getting $posts directly from your model:
This is fetching $posts from XenForo_Model_Post. The function getDeletedPosts() is initially not there. But you extended XenForo_Model_Post with Andy_ShowDeleted_Model_Post, so all your Andy_ShowDeleted_Model_Post functions are now accessible from XenForo_Model_Post:
PHP:
$posts = $this->getModelFromCache('Andy_ShowDeleted_Model_ShowDeleted')->getDeletedPosts();
This is fetching $posts from XenForo_Model_Post. The function getDeletedPosts() is initially not there. But you extended XenForo_Model_Post with Andy_ShowDeleted_Model_Post, so all your Andy_ShowDeleted_Model_Post functions are now accessible from XenForo_Model_Post:
PHP:
$posts = $this->getModelFromCache('XenForo_Model_Post')->getDeletedPosts();
Last edited: