Version devient versionData
This commit is contained in:
parent
4d9d71602e
commit
b495afc2e8
@ -111,9 +111,9 @@ class blog extends common {
|
|||||||
*/
|
*/
|
||||||
private function update() {
|
private function update() {
|
||||||
// Version 5.0
|
// Version 5.0
|
||||||
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '5.0', '<') ) {
|
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '5.0', '<') ) {
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]);
|
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]);
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'version','5.0']);
|
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','5.0']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -404,7 +404,7 @@ class blog extends common {
|
|||||||
'feeds' => $this->getInput('blogConfigShowFeeds',helper::FILTER_BOOLEAN),
|
'feeds' => $this->getInput('blogConfigShowFeeds',helper::FILTER_BOOLEAN),
|
||||||
'feedsLabel' => $this->getInput('blogConfigFeedslabel',helper::FILTER_STRING_SHORT),
|
'feedsLabel' => $this->getInput('blogConfigFeedslabel',helper::FILTER_STRING_SHORT),
|
||||||
'itemsperPage' => $this->getInput('blogConfigItemsperPage', helper::FILTER_INT,true),
|
'itemsperPage' => $this->getInput('blogConfigItemsperPage', helper::FILTER_INT,true),
|
||||||
'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version'])
|
'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData'])
|
||||||
]]);
|
]]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
@ -124,9 +124,9 @@ class download extends common {
|
|||||||
*/
|
*/
|
||||||
private function update() {
|
private function update() {
|
||||||
// Version 5.0
|
// Version 5.0
|
||||||
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '1.1', '<') ) {
|
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '1.1', '<') ) {
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]);
|
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]);
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'version','1.2']);
|
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','1.2']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -418,7 +418,7 @@ class download extends common {
|
|||||||
'feeds' => $this->getInput('downloadConfigShowFeeds',helper::FILTER_BOOLEAN),
|
'feeds' => $this->getInput('downloadConfigShowFeeds',helper::FILTER_BOOLEAN),
|
||||||
'feedsLabel' => $this->getInput('downloadConfigFeedslabel',helper::FILTER_STRING_SHORT),
|
'feedsLabel' => $this->getInput('downloadConfigFeedslabel',helper::FILTER_STRING_SHORT),
|
||||||
'itemsperPage' => $this->getInput('blogConfigItemsperPage', helper::FILTER_INT,true),
|
'itemsperPage' => $this->getInput('blogConfigItemsperPage', helper::FILTER_INT,true),
|
||||||
'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version'])
|
'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData'])
|
||||||
]]);
|
]]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
@ -76,10 +76,10 @@ class news extends common {
|
|||||||
*/
|
*/
|
||||||
private function update() {
|
private function update() {
|
||||||
// Version 3.0
|
// Version 3.0
|
||||||
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '3.0', '<') ) {
|
if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '3.0', '<') ) {
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 16]);
|
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 16]);
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperCol', 6]);
|
$this->setData(['module', $this->getUrl(0), 'config', 'itemsperCol', 6]);
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'version','3.0']);
|
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','3.0']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ class news extends common {
|
|||||||
'itemsperPage' => $this->getInput('newsConfigItemsperPage', helper::FILTER_INT,true),
|
'itemsperPage' => $this->getInput('newsConfigItemsperPage', helper::FILTER_INT,true),
|
||||||
'itemsperCol' => $this->getInput('newsConfigItemsperCol', helper::FILTER_INT,true),
|
'itemsperCol' => $this->getInput('newsConfigItemsperCol', helper::FILTER_INT,true),
|
||||||
'itemsHeight' => $this->getInput('newsConfigItemsHeight',helper::FILTER_STRING_SHORT),
|
'itemsHeight' => $this->getInput('newsConfigItemsHeight',helper::FILTER_STRING_SHORT),
|
||||||
'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version']),
|
'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData']),
|
||||||
'style' => $success ? self::DATA_DIR . 'modules/' . $class . '/' . $moduleId . '/style.css' : ''
|
'style' => $success ? self::DATA_DIR . 'modules/' . $class . '/' . $moduleId . '/style.css' : ''
|
||||||
]]);
|
]]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
|
Loading…
Reference in New Issue
Block a user