Version 3.0.5
This commit is contained in:
1 parent
19b38c7c74
commit
1d4720f3e2
3755 files changed
+508378
-664541
No files matched your search
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Custom bbcode plugin interfaces
|
||||
*
|
||||
* @author $author$
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @version $Rev: 3890 $
|
||||
**/
|
||||
|
||||
interface bbcodePlugin
|
||||
{
|
||||
/**
|
||||
* Method that is run before the content is stored in the database
|
||||
* You are responsible for ensuring you mark the replaced text appropriately so that you
|
||||
* are able to unparse it, if you wish to have bbcode parsed on save
|
||||
*
|
||||
* @access public
|
||||
* @param string $txt BBCode text from submission to be stored in database
|
||||
* @return string Formatted content, ready for display
|
||||
*/
|
||||
public function preDbParse( $txt );
|
||||
|
||||
/**
|
||||
* Method that is run before the content is displayed to the user
|
||||
* This is the safest method of parsing, as the original submitted text is left in tact.
|
||||
* No markers are necessary if you use parse on display.
|
||||
*
|
||||
* @access public
|
||||
* @param string $txt BBCode/parsed text from database to be displayed
|
||||
* @return string Formatted content, ready for display
|
||||
*/
|
||||
public function preDisplayParse( $txt );
|
||||
|
||||
/**
|
||||
* Method that is run before the content is placed into an editor for editing
|
||||
* If you use "parse on display" you may simply return $txt
|
||||
*
|
||||
* @access public
|
||||
* @param string $txt Parsed text from database to be edited
|
||||
* @return string BBCode content, ready for editing
|
||||
*/
|
||||
public function preEditParse( $txt );
|
||||
}
|
||||
Reference in new issue
Block a user