View Source

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

h1. Zend Framework: Zend_View_Helper_Bbcode Component Proposal

||Proposed Component Name|Zend_View_Helper_Bbcode|
||Developer Notes|[]|
||Proposers|[Kirill Vlasov|]|
||Zend Liaison||
||Revision|1.0 - 11 June 2011. (wiki revision: {page-version})|

h1. Table of Contents


h2. 1. Overview
Zend_View_Helper_Bbcode is helper for proccessing string with some elements of bbcode.

h2. 2. References
* [Zend_Markup|]
* [Zend_View|]

h2. 3. Component Requirements, Constraints, and Acceptance Criteria
Currently we have got standard helper of view

* The components will extend abstract class of helper

h2. 4. Dependencies on Other Framework Components
* Zend/Markup

h2. 5. Theory of Operation
The primary goal of this component is simplest. Just proccessing string with bbcode in script of view.

h2. 6. Milestones / Tasks
* Maybe create some setting

h2. 7. Class Index
* Zend/View/Helper/Bbcode

h2. 8. Use Cases
<?php echo $this->bbcode($this->text) ?>

h2. 9. Class Skeletons

require_once 'Zend/Markup.php';

class Zend_View_Helper_Bbcode extends Zend_View_Helper_Abstract
public function bbcode($string)
$bbcode = Zend_Markup::factory('Bbcode');
$string = $bbcode->render($string);

return $string;