Page manage, RFM pointe sur le dossier de l'espace

This commit is contained in:
Fred Tempez 2024-09-03 19:02:02 +02:00
parent b6d3eb8ec2
commit 5c0efda0ca

View File

@ -174,6 +174,9 @@ class course extends common
$this->initData('module', $courseId);
$this->initData('theme', $courseId);
// Pointer RFM sur le dossier
self::$siteContent = $courseId;
// BDD des inscrits
$this->setData([
'enrolment',
@ -305,6 +308,8 @@ class course extends common
// Liste des pages disponibles
$this->initDB('page', $courseId);
// Pointer RFM sur le dossier
self::$siteContent = $courseId;
self::$pagesList = $this->getData(['page']);
foreach (self::$pagesList as $pageId => $page) {
if (
@ -354,6 +359,8 @@ class course extends common
// Liste des pages disponibles
$this->initDB('page', $courseId);
// Pointer RFM sur le dossier
self::$siteContent = $courseId;
self::$pagesList = $this->getData(['page']);
foreach (self::$pagesList as $pageId => $page) {
if (
@ -1700,6 +1707,7 @@ class course extends common
// Liste des pages disponibles
$this->initDB('page', $courseId);
self::$siteContent = $courseId;
self::$pagesList = [];
foreach ($this->getData(['page']) as $pageId => $page) {
if (