Commit 04327534 authored by speedprogs_de's avatar speedprogs_de

fixed force last run field in abstract scheduler task

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@51848 735d13b6-9817-0410-8766-e36946ffe9aa
parent 68433e2d
......@@ -133,7 +133,7 @@
/**
* Adds the structure of an input field
*
*
* @param string $fieldName Name of the field
* @param mixed $defaultValue Default value of the field
* @return void
......@@ -181,7 +181,7 @@
/**
* Adds the structure of a checkbox field
*
*
* @param string $fieldName Name of the field
* @param mixed $defaultValue Default value of the field
* @return void
......@@ -200,7 +200,7 @@
/**
* Adds the structure of a date field
*
*
* @param string $fieldName Name of the field
* @param mixed $defaultValue Default value of the field
* @return void
......@@ -219,7 +219,7 @@
);
$this->structure[$fieldName] = array(
'code' => '<input type="text" name="tx_scheduler[' . $fieldName . ']" id="tceforms-datetimefield-' . $fieldName . ' value="' . htmlspecialchars($defaultValue) . '" />' . $icon,
'code' => '<input type="text" name="tx_scheduler[' . $fieldName . ']" id="tceforms-datetimefield-' . $fieldName . '" value="' . htmlspecialchars($defaultValue) . '" />' . $icon,
'label' => 'LLL:' . $this->languageFile . ':tx_terfe2_task_' . $fieldName,
);
}
......
......@@ -39,14 +39,14 @@
public $clearCachePages = 0;
/**
* @var integer
* @var string
*/
public $forceLastRun = 0;
public $forceLastRun = '';
/**
* @var integer
*/
public $forceOffset = 0;
public $forceOffset = NULL;
/**
* @var array
......@@ -99,7 +99,7 @@
if (!empty($this->forceLastRun)) {
$lastRun = Tx_TerFe2_Utility_Datetime::getTimestampFromString($this->forceLastRun);
}
if (!empty($this->forceOffset)) {
if (is_numeric($this->forceOffset)) {
$offset = (int) $this->forceOffset;
}
......@@ -116,6 +116,7 @@
$this->clearPageCache($this->clearCachePages);
}
return TRUE;
}
......@@ -126,13 +127,13 @@
* @return void
*/
public function initializeTask() {
}
/**
* Execute the task, implement in concrete task
*
*
* @param integer $lastRun Timestamp of the last run
* @param integer $offset Starting point
* @param integer $count Element count to process at once
......
......@@ -71,9 +71,6 @@
* @return boolean TRUE on success
*/
protected function executeTask($lastRun, $offset, $count) {
// TODO: Remove testing values
$offset = 0;
// Get all versions without zip file
$versions = $this->versionRepository->findWithoutZipFile($offset, $count);
if (empty($versions)) {
......
......@@ -90,10 +90,6 @@
throw new Exception('Please configure "plugin.tx_terfe2.persistence.storagePid" in TypoScript setup');
}
// TODO: Remove testing values
$lastRun = 1306920788;
$offset = 0;
// Get extension structure from provider
$provider = $this->providerManager->getProvider($this->providerName);
$extensions = $provider->getExtensions($lastRun, $offset, $count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment