Repair

class OC\Repair
Source:lib/private/Repair.php#84
Implements:OCP\Migration\IOutput

Properties

Methods

public OC\Repair::__construct($repairSteps, $dispatcher, $logger)
Creates a new repair step runner
Source:

lib/private/Repair.php#103

Parameters:
  • $repairSteps (OCP\Migration\IRepairStep[]) array of RepairStep instances
  • $dispatcher (Symfony\Component\EventDispatcher\EventDispatcherInterface)
public OC\Repair::run()
Run a series of repair steps for common problems
Source:lib/private/Repair.php#112
public OC\Repair::addStep($repairStep)
Add repair step
Source:

lib/private/Repair.php#137

Parameters:
Throws:

\Exception

public static OC\Repair::getRepairSteps()
Returns the default repair steps to be run on the
command line or after an upgrade.
Source:lib/private/Repair.php#165
Returns:\OCP\Migration\IRepairStep[]
public static OC\Repair::getExpensiveRepairSteps()
Returns expensive repair steps to be run on the
command line with a special option.
Source:lib/private/Repair.php#214
Returns:\OCP\Migration\IRepairStep[]
public static OC\Repair::getBeforeUpgradeRepairSteps()
Returns the repair steps to be run before an
upgrade.
Source:lib/private/Repair.php#227
Returns:\OCP\Migration\IRepairStep[]
public OC\Repair::emit($scope, $method, $arguments=[])
Source:

lib/private/Repair.php#248

Parameters:
  • $scope (string)
  • $method (string)
  • $arguments (array)
public OC\Repair::info($string)
Source:lib/private/Repair.php#255
public OC\Repair::warning($message)
Source:

lib/private/Repair.php#263

Parameters:
  • $message (string)
public OC\Repair::startProgress($max=0)
Source:

lib/private/Repair.php#271

Parameters:
  • $max (int)
public OC\Repair::advance($step=1, $description="")
Source:

lib/private/Repair.php#280

Parameters:
  • $step (int)
  • $description (string)
public OC\Repair::finishProgress()
Source:lib/private/Repair.php#288
Parameters: