Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Filter_Bbcode Component Proposal

Proposed Component Name Zend_Filter_Bbcode
Developer Notes
Proposers Van Belle Jonathan
Ralph Schindler, Zend liaison
Revision 1.0 - 22 Augustus 2007 : first proposal (wiki revision: 9)

Table of Contents

1. Overview

Zend_Filter_Bbcode is a component to parse bbcode tags to html syntax.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

4. Dependencies on Other Framework Components

  • Zend_Filter_Interface

5. Theory of Operation


6. Milestones / Tasks

  • Milestone 1: [DONE] basic code
  • Milestone 2: add more comments on the code!
  • Milestone 3: Optimisation
  • Milestone 4: unit test

7. Class Index

  • Zend_Filter_Bbcode

8. Use Cases


9. Class Skeletons



Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Sep 16, 2007

    <p>Replacing BBCodes with regular expressions or simple string replaces is a very bad idea, as it could end in not well-formed HTML/XHTML. In mind of the MVC pattern, this should also be part of a view helper, not of a component in the controller part.</p>

  2. Sep 16, 2007

    <p>By the way, here you can see a very good implementation of BB-code parsing:</p>

    <p><a class="external-link" href=""></a></p>

    1. Jul 30, 2008

      <p>I agree, its a nice one, but its in PHP4 and quite complex to use (it maybe might be easier <ac:emoticon ac:name="wink" />). But this shows me one thing: Its not such a good idea to try to replace BBCode with theire html-tags, as you also mentioned, instead of a "parsing process". So it seems to be more useful to implement BBCode as an own component instead of a filter (also mentioned by another proposal (1)), which cant reach the power of something like Seiler's implementation. A filter may access that component.</p>

      <p>(1) <a class="external-link" href=""></a></p>

  3. Oct 31, 2008

    <p>I think this needs to be its own component with a view helper. The Zend_Markup approach seems more "correct" in this respect. Perhaps you could work with Pieter Kokx on a joint proposal.</p>

  4. Feb 19, 2009

    <ac:macro ac:name="note"><ac:parameter ac:name="title">"Zend Official Response"</ac:parameter><ac:rich-text-body>

    <p>This proposal is being moved to <strong>Archived</strong> in favor of a the work being done inside Zend_Markup. Ideally, we'd like to see a more common interface for translating from one markup language to another.</p>

    <a class="external-link" href=""></a></p>