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

Public Member Functions

 __construct ()
 
 check_bannerintsize ()
 
 apply_bannerintsize ()
 
 apply_qmail ()
 
 check_captchadata ()
 
 apply_captchadata ()
 
 check_xoopsconfig ()
 
 apply_xoopsconfig ()
 
 check_textsanitizer ()
 
 apply_textsanitizer ()
 
 check_rmindexhtml ()
 
 apply_rmindexhtml ()
 
 check_modulesvarchar ()
 
 apply_modulesvarchar ()
 
- Public Member Functions inherited from XoopsUpgrade
 __construct ($dirname=null)
 
 isApplied ()
 
 apply ()
 
 loadLanguage ($dirname)
 
 message ()
 

Protected Member Functions

 fromMediumToInt (Tables $migrate, $bannerTableName, $bannerColumnNames)
 
 buildListTSConfigs ()
 
 fromSmallintToVarchar (Tables $migrate, $modulesTableName, $modulesColumnNames)
 
- Protected Member Functions inherited from XoopsUpgrade
 getDbValue (XoopsDatabase $db, $table, $field, $condition='')
 

Protected Attributes

 $textsanitizerConfigFiles
 

Additional Inherited Members

- Data Fields inherited from XoopsUpgrade
 $usedFiles = array()
 
 $tasks = array()
 
 $languageFolder = null
 
 $logs = array()
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

__construct

Member Function Documentation

◆ apply_bannerintsize()

apply_bannerintsize ( )

Increase count columns from mediumint to int (Think BIG!)

Returns
bool true if applied, false if failed
Here is the call graph for this function:

◆ apply_captchadata()

apply_captchadata ( )

Move captcha configs to xoops_data to segregate writable data

Returns
bool

◆ apply_modulesvarchar()

apply_modulesvarchar ( )

Increase count columns from smallint to varchar

Returns
bool true if applied, false if failed
Here is the call graph for this function:

◆ apply_qmail()

apply_qmail ( )

Add qmail as valid mailmethod

phpMailer has qmail support, similar to but slightly different than sendmail This will allow webmasters to utilize qmail if it is provisioned on server.

Returns
bool

◆ apply_rmindexhtml()

apply_rmindexhtml ( )

Unlink any index.html files that have been replaced by index.php files

Returns
bool true if patch applied, false if failed

Do unlink() on file Always return true so we process each writable index.html

Parameters
string$namefile name to unlink
Returns
true always report true, even if we can't delete – best effort only

◆ apply_textsanitizer()

apply_textsanitizer ( )

Copy and rename any existing class/textsanitizer/ config files to xoops_data/configs/textsanitizer/

Returns
bool true if applied, false if failed
Here is the call graph for this function:

◆ apply_xoopsconfig()

apply_xoopsconfig ( )

Create xoops_data/configs/xoopsconfig.php from xoopsconfig.dist.php

Returns
bool true if applied, false if failed

◆ buildListTSConfigs()

buildListTSConfigs ( )
protected

Build a list of config files using the existing textsanitizer/config.php This should prevent some issues with customized systems.

Returns
string[] array of existing ts and extension config files each as source name => destination name
Here is the caller graph for this function:

◆ check_bannerintsize()

check_bannerintsize ( )

Increase count columns from mediumint to int

Returns
bool true if patch IS applied, false if NOT applied
Here is the call graph for this function:

◆ check_captchadata()

check_captchadata ( )

Do we need to move captcha writable data?

Returns
bool

◆ check_modulesvarchar()

check_modulesvarchar ( )

Increase count columns from smallint to varchar

Returns
bool true if patch IS applied, false if NOT applied
Here is the call graph for this function:

◆ check_rmindexhtml()

check_rmindexhtml ( )

Do we need to remove any index.html files that were replaced by index.php files?

Returns
bool true if patch IS applied, false if NOT applied

If we find an index.html that is writable, we know there is work to do

Parameters
string$namefile name to check
Returns
bool true to continue, false to stop scan

◆ check_textsanitizer()

check_textsanitizer ( )

Do we need to move any existing files to xoops_data/configs/textsanitizer/ ?

Returns
bool true if patch IS applied, false if NOT applied
Here is the call graph for this function:

◆ check_xoopsconfig()

check_xoopsconfig ( )

Do we need to create a xoops_data/configs/xoopsconfig.php?

Returns
bool true if patch IS applied, false if NOT applied

◆ fromMediumToInt()

fromMediumToInt ( Tables  $migrate,
  $bannerTableName,
  $bannerColumnNames 
)
protected

Determine if columns are declared mediumint, and if so, queue ddl to alter to int.

Parameters
$migrate\Xmf\Database\Tables
$bannerTableNamestring
$bannerColumnNamesstring[] array of columns to check
Returns
integer count of queue items added
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromSmallintToVarchar()

fromSmallintToVarchar ( Tables  $migrate,
  $modulesTableName,
  $modulesColumnNames 
)
protected

Determine if columns are declared smallint, and if so, queue ddl to alter to varchar.

Parameters
$migrate\Xmf\Database\Tables
$modulesTableNamestring
$modulesColumnNamesstring[] array of columns to check
Returns
integer count of queue items added
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ $textsanitizerConfigFiles

$textsanitizerConfigFiles
protected
Initial value:
= array(
'config.php' => 'config.php',
'censor/config.php' => 'config.censor.php',
'flash/config.php' => 'config.flash.php',
'image/config.php' => 'config.image.php',
'mms/config.php' => 'config.mms.php',
'rtsp/config.php' => 'config.rtsp.php',
'syntaxhighlight/config.php' => 'config.syntaxhighlight.php',
'textfilter/config.php' => 'config.textfilter.php',
'wiki/config.php' => 'config.wiki.php',
'wmp/config.php' => 'config.wmp.php',
)

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