Delete showDate form core
This commit is contained in:
parent
0c0cd2a2a4
commit
e8cb55ab08
|
@ -1269,35 +1269,6 @@ class common
|
||||||
$zip->close();
|
$zip->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Summary of dateUTF8
|
|
||||||
* @param mixed $format
|
|
||||||
* @param mixed $date time()
|
|
||||||
* @param mixed $scope UI ou Content
|
|
||||||
* @return string Date formatée
|
|
||||||
*/
|
|
||||||
public static function showDate($format, $date, $scope = "UI")
|
|
||||||
{
|
|
||||||
$d = new DateTime(time());
|
|
||||||
$d->format($format);
|
|
||||||
|
|
||||||
/*
|
|
||||||
$d = datefmt_create(
|
|
||||||
self::$i18nUI,
|
|
||||||
IntlDateFormatter::FULL,
|
|
||||||
IntlDateFormatter::FULL,
|
|
||||||
self::$timezone,
|
|
||||||
IntlDateFormatter::GREGORIAN,
|
|
||||||
$format
|
|
||||||
);
|
|
||||||
exit (datefmt_format($d, $date));
|
|
||||||
//return datefmt_format($d, $date);
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Layout remplace la classe précédente
|
// Layout remplace la classe précédente
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -529,7 +529,16 @@ class page extends common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self::$moduleIds = array_merge(['' => 'Aucun'], helper::arrayColumn(helper::getModules(), 'realName', 'SORT_ASC')); // Pages sans parent
|
// Construction du formulaire
|
||||||
|
|
||||||
|
// Création du sélecteur de modules
|
||||||
|
self::$moduleIds = [];
|
||||||
|
foreach (helper::getModules() as $key => $values) {
|
||||||
|
self::$moduleIds[$key] = $values['realName'] . ' (' . $key . ')';
|
||||||
|
}
|
||||||
|
self::$moduleIds = array_merge(['' => 'Aucun'], self::$moduleIds);
|
||||||
|
|
||||||
|
// Pages sans parent
|
||||||
foreach ($this->getHierarchy() as $parentPageId => $childrenPageIds) {
|
foreach ($this->getHierarchy() as $parentPageId => $childrenPageIds) {
|
||||||
if ($parentPageId !== $this->getUrl(2)) {
|
if ($parentPageId !== $this->getUrl(2)) {
|
||||||
self::$pagesNoParentId[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
|
self::$pagesNoParentId[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
|
||||||
|
@ -566,7 +575,8 @@ class page extends common
|
||||||
$css = $this->getInput('pageCssEditorContent', null);
|
$css = $this->getInput('pageCssEditorContent', null);
|
||||||
// Enregistre le CSS
|
// Enregistre le CSS
|
||||||
$this->setData([
|
$this->setData([
|
||||||
'page', $this->getUrl(2), 'css',
|
'page', $this->getUrl(2),
|
||||||
|
'css',
|
||||||
$css
|
$css
|
||||||
]);
|
]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
|
@ -597,7 +607,8 @@ class page extends common
|
||||||
$js = $this->getInput('pageJsEditorContent', null);
|
$js = $this->getInput('pageJsEditorContent', null);
|
||||||
// Enregistre le JS
|
// Enregistre le JS
|
||||||
$this->setData([
|
$this->setData([
|
||||||
'page', $this->getUrl(2), 'js',
|
'page', $this->getUrl(2),
|
||||||
|
'js',
|
||||||
$js
|
$js
|
||||||
]);
|
]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
|
|
Loading…
Reference in New Issue