Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/worker/src/MWP/Incremen.../Database
File: DumpOptions.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* This file is part of the ManageWP Worker plugin.
[2] Fix | Delete
*
[3] Fix | Delete
* (c) ManageWP LLC <contact@managewp.com>
[4] Fix | Delete
*
[5] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[6] Fix | Delete
* file that was distributed with this source code.
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
class MWP_IncrementalBackup_Database_DumpOptions
[10] Fix | Delete
{
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* @var string[]
[14] Fix | Delete
*/
[15] Fix | Delete
private $tables = null;
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* @var bool
[19] Fix | Delete
*/
[20] Fix | Delete
private $skipLockTables = true;
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* @var bool
[24] Fix | Delete
*/
[25] Fix | Delete
private $skipExtendedInsert = true;
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* @var bool
[29] Fix | Delete
*/
[30] Fix | Delete
private $dropTables = true;
[31] Fix | Delete
[32] Fix | Delete
/**
[33] Fix | Delete
* @var array
[34] Fix | Delete
*/
[35] Fix | Delete
private $connectionMethods = array();
[36] Fix | Delete
[37] Fix | Delete
/**
[38] Fix | Delete
* @return array
[39] Fix | Delete
*/
[40] Fix | Delete
public function getTables()
[41] Fix | Delete
{
[42] Fix | Delete
return $this->tables;
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* @param array $tables
[47] Fix | Delete
*/
[48] Fix | Delete
public function setTables($tables)
[49] Fix | Delete
{
[50] Fix | Delete
$this->tables = $tables;
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
/**
[54] Fix | Delete
* @return boolean
[55] Fix | Delete
*/
[56] Fix | Delete
public function isSkipLockTables()
[57] Fix | Delete
{
[58] Fix | Delete
return $this->skipLockTables;
[59] Fix | Delete
}
[60] Fix | Delete
[61] Fix | Delete
/**
[62] Fix | Delete
* @param boolean $skipLockTables
[63] Fix | Delete
*/
[64] Fix | Delete
public function setSkipLockTables($skipLockTables)
[65] Fix | Delete
{
[66] Fix | Delete
$this->skipLockTables = $skipLockTables;
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
/**
[70] Fix | Delete
* @return boolean
[71] Fix | Delete
*/
[72] Fix | Delete
public function isSkipExtendedInsert()
[73] Fix | Delete
{
[74] Fix | Delete
return $this->skipExtendedInsert;
[75] Fix | Delete
}
[76] Fix | Delete
[77] Fix | Delete
/**
[78] Fix | Delete
* @param boolean $skipExtendedInsert
[79] Fix | Delete
*/
[80] Fix | Delete
public function setSkipExtendedInsert($skipExtendedInsert)
[81] Fix | Delete
{
[82] Fix | Delete
$this->skipExtendedInsert = $skipExtendedInsert;
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
/**
[86] Fix | Delete
* @return boolean
[87] Fix | Delete
*/
[88] Fix | Delete
public function isDropTables()
[89] Fix | Delete
{
[90] Fix | Delete
return $this->dropTables;
[91] Fix | Delete
}
[92] Fix | Delete
[93] Fix | Delete
/**
[94] Fix | Delete
* @param boolean $dropTables
[95] Fix | Delete
*/
[96] Fix | Delete
public function setDropTables($dropTables)
[97] Fix | Delete
{
[98] Fix | Delete
$this->dropTables = $dropTables;
[99] Fix | Delete
}
[100] Fix | Delete
[101] Fix | Delete
public static function createFromArray(array $options = array())
[102] Fix | Delete
{
[103] Fix | Delete
$dumpOptions = new self();
[104] Fix | Delete
[105] Fix | Delete
if (isset($options['skip_lock_tables'])) {
[106] Fix | Delete
$dumpOptions->setSkipLockTables($options['skip_lock_tables']);
[107] Fix | Delete
}
[108] Fix | Delete
[109] Fix | Delete
if (isset($options['skip_extended_insert'])) {
[110] Fix | Delete
$dumpOptions->setSkipExtendedInsert($options['skip_extended_insert']);
[111] Fix | Delete
}
[112] Fix | Delete
[113] Fix | Delete
if (isset($options['connection_methods'])) {
[114] Fix | Delete
$dumpOptions->setConnectionMethods($options['connection_methods']);
[115] Fix | Delete
}
[116] Fix | Delete
[117] Fix | Delete
return $dumpOptions;
[118] Fix | Delete
}
[119] Fix | Delete
[120] Fix | Delete
/**
[121] Fix | Delete
* @return array
[122] Fix | Delete
*/
[123] Fix | Delete
public function getConnectionMethods()
[124] Fix | Delete
{
[125] Fix | Delete
return $this->connectionMethods;
[126] Fix | Delete
}
[127] Fix | Delete
[128] Fix | Delete
/**
[129] Fix | Delete
* @param array $connectionMethods
[130] Fix | Delete
*/
[131] Fix | Delete
public function setConnectionMethods($connectionMethods)
[132] Fix | Delete
{
[133] Fix | Delete
$this->connectionMethods = $connectionMethods;
[134] Fix | Delete
}
[135] Fix | Delete
}
[136] Fix | Delete
[137] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function