restore code format after netbeans update

This commit is contained in:
jygaulier
2012-05-10 18:39:20 +02:00
parent d834d4f3f8
commit 22c492f69d
16 changed files with 340 additions and 342 deletions

View File

@@ -23,6 +23,7 @@ class task_Scheduler
const METHOD_FORK = 'METHOD_FORK';
const METHOD_PROC_OPEN = 'METHOD_PROC_OPEN';
const ERR_ALREADY_RUNNING = 114; // aka EALREADY (Operation already in progress)
private $method;
private $input;
protected $output;
@@ -51,7 +52,7 @@ class task_Scheduler
return appbox::get_instance(\bootstrap::getCore())->get_connection();
}
public function run($input=null, OutputInterface $output = null)
public function run($input = null, OutputInterface $output = null)
{
require_once dirname(__FILE__) . '/../../bootstrap.php';
$this->input = $input;

View File

@@ -4,25 +4,21 @@ abstract class task_abstract
{
const LAUCHED_BY_BROWSER = 1;
const LAUCHED_BY_COMMANDLINE = 2;
const STATE_TOSTOP = 'tostop';
const STATE_STARTED = 'started';
const STATE_TOSTART = 'tostart';
const STATE_TORESTART = 'torestart';
const STATE_STOPPED = 'stopped';
const STATE_TODELETE = 'todelete';
const RUNNER_MANUAL = 'manual';
const RUNNER_SCHEDULER = 'scheduler';
const STATE_OK = 'STATE_OK';
const STATE_MAXMEGSREACHED = 'STATE_MAXMEGS';
const STATE_MAXRECSDONE = 'STATE_MAXRECS';
const STATE_FINISHED = 'STATE_FINISHED';
const SIGNAL_SCHEDULER_DIED = 'SIGNAL_SCHEDULER_DIED';
const ERR_ALREADY_RUNNING = 114; // aka EALREADY (Operation already in progress)
protected $suicidable = false;
protected $launched_by = 0;
@@ -390,7 +386,7 @@ abstract class task_abstract
$this->running = $stat;
}
protected function pause($when_started=0)
protected function pause($when_started = 0)
{
$this->log($this->records_done . ' records done');
if ($this->running) {// && $this->records_done == 0)
@@ -409,7 +405,7 @@ abstract class task_abstract
}
}
final public function run($runner, $input=null, $output = null)
final public function run($runner, $input = null, $output = null)
{
$this->input = $input;
$this->output = $output;
@@ -500,7 +496,7 @@ abstract class task_abstract
}
}
function traceRam($msg='')
function traceRam($msg = '')
{
static $lastt = null;
$t = explode(' ', ($ut = microtime()));

View File

@@ -17,13 +17,14 @@ class task_period_cindexer extends task_abstract
{
// how to execute indexer (choose in 'run2' method)
private $method;
const METHOD_FORK = 'METHOD_FORK';
const METHOD_EXEC = 'METHOD_EXEC';
const METHOD_PROC_OPEN = 'METHOD_PROC_OPEN';
const ERR_EXECUTABLE_NOT_FOUND = 2; // aka ENOENT (No such file or directory)
const ERR_CRASHED = 14; // aka EFAULT (Bad address)
const ERR_CANT_FORK = 3; // aka ESRCH (No such process)
/**
*
* @var string