XOOPS  2.6.0
MyTextSanitizerExtension Class Reference
Inheritance diagram for MyTextSanitizerExtension:
Inheritance graph

Public Member Functions

 __construct (MyTextSanitizer &$ts)
 
 encode ($value)
 

Static Public Member Functions

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

Public Attributes

 $config
 
 $image_path
 
 $instance
 
 $ts
 

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

Definition at line 31 of file module.textsanitizer.php.

Constructor & Destructor Documentation

MyTextSanitizerExtension::__construct ( MyTextSanitizer $ts)

Constructor

Parameters
MyTextSanitizer$ts

Definition at line 58 of file module.textsanitizer.php.

References $ts, and XoopsBaseConfig\get().

Here is the call graph for this function:

Member Function Documentation

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

decode

to be implemented by the extending class

Parameters
string$url
string$width
string$height
Returns
string

Definition at line 139 of file module.textsanitizer.php.

MyTextSanitizerExtension::encode (   $value)

to be implemented by the extending class

Parameters
mixed$value
Returns
array

Definition at line 123 of file module.textsanitizer.php.

static MyTextSanitizerExtension::loadConfig (   $path = null)
static

loadConfig

Parameters
string$path
Returns
string

Definition at line 70 of file module.textsanitizer.php.

References $path, $ts, DIRECTORY_SEPARATOR, XoopsLoad\fileExists(), and MyTextSanitizer\getInstance().

Referenced by MytsImage\load(), and MyTextSanitizer\loadConfig().

Here is the call graph for this function:

Here is the caller graph for this function:

static MyTextSanitizerExtension::mergeConfig (   $config_default,
  $config_custom 
)
static

Merge Config

Parameters
array$config_default
array$config_custom
Returns
array

Definition at line 102 of file module.textsanitizer.php.

Member Data Documentation

MyTextSanitizerExtension::$image_path

Definition at line 51 of file module.textsanitizer.php.

MyTextSanitizerExtension::$instance

Definition at line 36 of file module.textsanitizer.php.

MyTextSanitizerExtension::$ts

Definition at line 41 of file module.textsanitizer.php.

Referenced by __construct(), MytsSoundcloud\load(), and loadConfig().


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