XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
SystemMaintenance Class Reference

Public Member Functions

 CheckRepairAnalyzeOptimizeQueries ($tables, $maintenance)
 
 CleanCache ($cache)
 
 CleanSession ()
 
 displayTables ($array=true)
 
 dump_modules ($modules, $drop)
 
 dump_table_datas ($ret, $table)
 
 dump_table_structure ($ret, $table, $drop, $class)
 
 dump_tables ($tables, $drop)
 
 dump_write ($ret)
 
 SystemMaintenance ()
 

Public Attributes

 $db
 
 $prefix
 

Detailed Description

Definition at line 27 of file maintenance.php.

Member Function Documentation

SystemMaintenance::CheckRepairAnalyzeOptimizeQueries (   $tables,
  $maintenance 
)

Maintenance database

Parameters
arraytables 'list of tables'
arraymaintenance 'optimize, check, repair, analyze'
Returns
array

Definition at line 113 of file maintenance.php.

References $i, $j, $result, $ret, $tables, _AM_SYSTEM_MAINTENANCE_TABLES_ANALYZE, _AM_SYSTEM_MAINTENANCE_TABLES_CHECK, _AM_SYSTEM_MAINTENANCE_TABLES_OPTIMIZE, and _AM_SYSTEM_MAINTENANCE_TABLES_REPAIR.

SystemMaintenance::CleanCache (   $cache)

Clean cache 'xoops_data/caches/smarty_cache'

Parameters
arraycache
Returns

Definition at line 78 of file maintenance.php.

References $i.

SystemMaintenance::CleanSession ( )

Clear sessions

Returns

Definition at line 67 of file maintenance.php.

References $result.

SystemMaintenance::displayTables (   $array = true)

Display Tables

Parameters
array
Returns

Definition at line 47 of file maintenance.php.

References $result, $tables, and XOOPS_DB_PREFIX.

SystemMaintenance::dump_modules (   $modules,
  $drop 
)

Dump by modules

Parameters
arraymodules 'list of modules'
intdrop
Returns
array 'ret[0] = dump, ret[1] = display result

Definition at line 208 of file maintenance.php.

References $i, $module, $module_handler, $ret, _AM_SYSTEM_MAINTENANCE_DUMP_NB_RECORDS, _AM_SYSTEM_MAINTENANCE_DUMP_STRUCTURES, and xoops_gethandler().

Here is the call graph for this function:

SystemMaintenance::dump_table_datas (   $ret,
  $table 
)

Dump table data

Parameters
array
stringtable
Returns
array 'ret[0] = dump, ret[1] = display result

Definition at line 275 of file maintenance.php.

References $i, $index, $result, $ret, and _AM_SYSTEM_MAINTENANCE_DUMP_RECORDS.

SystemMaintenance::dump_table_structure (   $ret,
  $table,
  $drop,
  $class 
)

Dump table structure

Parameters
array
stringtable
intdrop
stringclass
Returns
array 'ret[0] = dump, ret[1] = display result

Definition at line 247 of file maintenance.php.

References $result, $ret, system_AdminIcons(), and true.

Here is the call graph for this function:

SystemMaintenance::dump_tables (   $tables,
  $drop 
)

Dump by tables

Parameters
arraytables 'list of tables'
intdrop
Returns
array 'ret[0] = dump, ret[1] = display result

Definition at line 182 of file maintenance.php.

References $i, $ret, $tables, _AM_SYSTEM_MAINTENANCE_DUMP_NB_RECORDS, and _AM_SYSTEM_MAINTENANCE_DUMP_STRUCTURES.

SystemMaintenance::dump_write (   $ret)

Dump Write

Parameters
array
Returns
array 'ret[0] = dump, ret[1] = display result

Definition at line 339 of file maintenance.php.

References $ret, _AM_SYSTEM_MAINTENANCE_DUMP_RESULT, and system_AdminIcons().

Here is the call graph for this function:

SystemMaintenance::SystemMaintenance ( )

Constructor

Definition at line 35 of file maintenance.php.

References $db, and XoopsDatabaseFactory\getDatabaseConnection().

Here is the call graph for this function:

Member Data Documentation

SystemMaintenance::$db

Definition at line 29 of file maintenance.php.

SystemMaintenance::$prefix

Definition at line 30 of file maintenance.php.


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