bbcode
[ class tree: bbcode ] [ index: bbcode ] [ all elements ]

Class: ipbwi_bbcode

Source Location: /ipbwi/lib/bbcode.inc.php

Class Overview

ipbwi
   |
   --ipbwi_bbcode



Author(s):

  • Matthias Reuter ($LastChangedBy: matthias $)

Version:

  • $LastChangedDate: 2009-08-26 19:19:41 +0200 (Mi, 26 Aug 2009) $

Copyright:

  • 2007-2010 IPBWI development team

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: ipbwi

ipbwi::addSystemMessage()
adds a system message
ipbwi::date()
Returns textual/timestamp offsetted date by board and by member offset and DST setting.
ipbwi::getBoardVar()
gets the requested board-var
ipbwi::getLibLang()
gets the language-var from actual requested native language-bit
ipbwi::makeSafe()
filtering html-strings, e.g. for db-queries
ipbwi::printSystemMessages()
prints system messages
ipbwi::properXHTML()
filtering HTML strings
ipbwi::setLang()
Set's current SDK language
ipbwi::sysInfo()
informations about the current IPBWI and PHP installation
ipbwi::__destruct()

Class Details

[line 11]


Tags:

author:  Matthias Reuter ($LastChangedBy: matthias $)
version:  $LastChangedDate: 2009-08-26 19:19:41 +0200 (Mi, 26 Aug 2009) $
copyright:  2007-2010 IPBWI development team
link:  http://ipbwi.com/examples/bbcode.php
since:  2.0
license:  GNU General Public License


[ Top ]


Class Methods


method bbcode2html [line 35]

string bbcode2html( string $input, [bool $smilies = true])

converts BBCode to HTML using IPB's native parser.



Tags:

return:  HTML version of input
author:  Matthias Reuter
since:  2.0
sample:  
  1.  $ipbwi->bbcode->bbcode2html('[b]test[/b]',true);
access:  public


Parameters:

string   $input   bbcode-formatted string
bool   $smilies   set to true to parse smilies, otherwise false

[ Top ]

method html2bbcode [line 60]

string html2bbcode( string $input)

converts HTML to BBCode using IPB's native parser.



Tags:

return:  BBCode version of input
author:  Matthias Reuter
since:  2.0
sample:  
  1.  $ipbwi->bbcode->html2bbcode('<b>test</b>');
access:  public


Parameters:

string   $input   html-formatted string

[ Top ]

method listEmoticons [line 80]

array listEmoticons( [bool $clickable = false])

List emoticons, optional limit the result to clickable emoticons only.



Tags:

return:  Assoc array with Emoticons, keys 'typed', 'image'
author:  Matthias Reuter
since:  2.0
sample:  
  1.  $ipbwi->bbcode->listEmoticons(true);
access:  public


Parameters:

bool   $clickable   set to true to list clickable emoticons only, otherwise set to false

[ Top ]

method printTextEditor [line 106]

string printTextEditor( [string $post = ''], [string $field = 'post'], [int $output = false], [bool $rte = false])

Print IP.board's built in RichTextEditor (RTE). notice: if your form isn't formatted correctly, please check in your css declaration of tags, e.g. "ul", wether they conflict with IP.board's editor.



Tags:

return:  HTML Code of IP.board's RTE
author:  Matthias Reuter
since:  2.0
sample:  
  1.  $ipbwi->bbcode->printTextEditor('post content');
access:  public


Parameters:

string   $post   a string of content going to be displayed in editor. If empty, a blank editor will be loaded.
string   $field   a string which defines the name of textarea form field
int   $output   optional, if 1: output of css & javascript, if 2: output of form, if false: output of both all together
bool   $rte   optional, if true: force use of rich text editor

[ Top ]


Documentation generated on Sat, 23 Oct 2010 23:35:46 +0200 by phpDocumentor 1.4.3