API - XOOPS 2.5.11 Beta 2
By monxoops.fr
MyTextSanitizerExtension Class Reference
Inheritance diagram for MyTextSanitizerExtension:

Public Member Functions

 __construct (MyTextSanitizer $ts)
 
 encode ($textarea_id)
 

Static Public Member Functions

static loadConfig ($path=null)
 
static mergeConfig ($config_default, $config_custom)
 
static decode ($url, $width, $height)
 

Data Fields

 $instance
 
 $ts
 
 $config
 
 $image_path
 

Detailed Description

Abstract class for extensions

Author
Taiwen Jiang phppp.nosp@m.@use.nosp@m.rs.so.nosp@m.urce.nosp@m.forge.nosp@m..net

Constructor & Destructor Documentation

◆ __construct()

__construct ( MyTextSanitizer  $ts)

Constructor

Parameters
MyTextSanitizer$ts

Member Function Documentation

◆ decode()

static decode (   $url,
  $width,
  $height 
)
static

decode

Parameters
string$url
string | integer$width
string | integer$height
Returns
Null

Reimplemented in MytsWiki, MytsFlash, MytsMp3, and MytsYoutube.

◆ encode()

encode (   $textarea_id)

encode

Parameters
string$textarea_idid attribute of text area
Returns
array

Reimplemented in MytsFlash, MytsMms, MytsMp3, MytsRtsp, MytsSoundcloud, MytsWiki, MytsWmp, and MytsYoutube.

◆ loadConfig()

static loadConfig (   $path = null)
static

loadConfig

Parameters
string$path
Returns
string|array
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mergeConfig()

static mergeConfig (   $config_default,
  $config_custom 
)
static

Merge Config

Parameters
array$config_default
array$config_custom
Returns
array
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ $config

$config

◆ $image_path

$image_path

◆ $instance

$instance

◆ $ts

$ts

The documentation for this class was generated from the following file: