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

Lack of Interest New method for PublicView to return the base parser

Discussion in 'Closed Suggestions' started by xf_phantom, Jul 13, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    I'm getting bored of using
    XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
    Why not create a new method in XenForo_ViewPublic_Base XenForo_View returning the "base" parser.

    //instead of
    $bbCodeParser XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));

    // it would become
    $bbCodeParser $this->getBbParser();
    $bbCodeParser $this->getBbParser('Wysiwyg');
    $bbCodeParser $this->getBbParser('XenForo_BbCode_Formatter_BbCode_AutoLink'false);

Share This Page