1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest XenForo_Model_ProfilePost->deleteProfilePost function missing...

Discussion in 'Closed Suggestions' started by Jaxel, Jan 21, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    Simple... all other content types have their own functions...
    Code:
    $this->getModelFromCache('XenForo_Model_Thread')->deleteThread($thread['content_id'], 'hard');
    Code:
    $this->getModelFromCache('XenForo_Model_Post')->deletePost($post['content_id'], 'hard');

    However, to do the same for ProfilePosts, I must instead use the following:
    Code:
    $dw = XenForo_DataWriter::create('XenForo_DataWriter_DiscussionMessage_ProfilePost');
    $dw->setExistingData($profile_post['content_id']);
    $dw->delete();
    Sure... still simple... but I'm a fan of uniformity.
     
  2. Mike

    Mike XenForo Developer Staff Member

    More of a suggestion than anything else. :)
     

Share This Page