XG Proyect

BBCodeLib
in package

BBCodeLib Class

Tags
category

Classes

author

XG Proyect Team

license

http://www.xgproyect.org XG Proyect

link
http://www.xgproyect.org
version
3.0.0

Table of Contents

bbCode()  : void
bbCode function.
getBbCode()  : string
Recover the different stuff and choose the right one
setBackgroundColor()  : void
Set the background color for a piece of text.
setBold()  : string
Set bold for a piece of text.
setEmail()  : string
Set an email for a piece of text
setFontColor()  : string
Set the font color for a piece of text.
setFontFamiliy()  : string
Set the font family for a piece of text.
setFontSize()  : void
Set the font size fro a piece of text.
setImage()  : void
Set an image
setItalic()  : string
Set italic for a piece of text.
setLineJump()  : string
Set la line jump
setList()  : string
Set list for a block of text.
setReturn()  : string
Set return
setStrike()  : string
Set line through for a piece of text.
setUnderline()  : string
Set underline for a piece of text.
setUrl()  : string
Set the url for a piece of text.

Methods

bbCode()

bbCode function.

public bbCode([string $string = '' ]) : void
Parameters
$string : string = ''

String

Return values
void

getBbCode()

Recover the different stuff and choose the right one

private getBbCode(array<string|int, mixed> $matches, string $replace) : string
Parameters
$matches : array<string|int, mixed>

Matches

$replace : string

Replace

Return values
string

setBackgroundColor()

Set the background color for a piece of text.

private setBackgroundColor(mixed $bg, mixed $title) : void
Parameters
$bg : mixed

Background color

$title : mixed

Title

Return values
void

setBold()

Set bold for a piece of text.

private setBold(mixed $string) : string
Parameters
$string : mixed

String

Return values
string

setEmail()

Set an email for a piece of text

private setEmail(mixed $mail, mixed $title) : string
Parameters
$mail : mixed

Mail

$title : mixed

Title

Return values
string

setFontColor()

Set the font color for a piece of text.

private setFontColor(string $color, string $title) : string
Parameters
$color : string

Color

$title : string

Title

Return values
string

setFontFamiliy()

Set the font family for a piece of text.

private setFontFamiliy(string $font, string $title) : string
Parameters
$font : string

Font

$title : string

Title

Return values
string

setFontSize()

Set the font size fro a piece of text.

private setFontSize(mixed $size, mixed $text) : void
Parameters
$size : mixed
$text : mixed
Return values
void

setImage()

Set an image

private setImage(mixed $img) : void
Parameters
$img : mixed

Mixed

Return values
void

setItalic()

Set italic for a piece of text.

private setItalic(mixed $string) : string
Parameters
$string : mixed

String

Return values
string

setLineJump()

Set la line jump

private setLineJump() : string
Return values
string

setList()

Set list for a block of text.

private setList(mixed $string) : string
Parameters
$string : mixed

String

Return values
string

setReturn()

Set return

private setReturn() : string
Return values
string

setStrike()

Set line through for a piece of text.

private setStrike(mixed $string) : string
Parameters
$string : mixed

String

Return values
string

setUnderline()

Set underline for a piece of text.

private setUnderline(mixed $string) : string
Parameters
$string : mixed

String

Return values
string

setUrl()

Set the url for a piece of text.

private setUrl(mixed $url, mixed $title) : string
Parameters
$url : mixed

Url

$title : mixed

Title

Return values
string

Search results