IP.Board  3.3.0
bbcode_sharedmedia Class Reference
Inheritance diagram for bbcode_sharedmedia:
bbcode_parent_class bbcodePlugin

Public Member Functions

 __construct (ipsRegistry $registry, $_parent=null)
 preDbParse ($txt)

Protected Member Functions

 _checkPostingPermissions ($matches)
 _parseMedia ($matches)
 _replaceText ($txt)

Protected Attributes

 $plugins = array()

Constructor & Destructor Documentation

__construct ( ipsRegistry registry,
_parent = null 
)

Constructor

Parameters:
objectRegistry object
objectParent bbcode class
Returns:
void

Reimplemented from bbcode_parent_class.


Member Function Documentation

_checkPostingPermissions ( matches) [protected]

We use this to check for permissions

Parameters:
arraypreg_replace_callback Matches
Returns:
string
_parseMedia ( matches) [protected]

Callback for shared media preg_replace call

Parameters:
arraypreg_replace_callback Matches
Returns:
string
_replaceText ( txt) [protected]

Do the actual replacement

Parameters:
string$txtParsed text from database to be edited
Returns:
string
preDbParse ( txt)

We use preDbParse to verify you have permission to share the items you are sharing

public

Parameters:
string$txtBBCode text from submission to be stored in database
Returns:
string Formatted content, ready for display

Implements bbcodePlugin.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables