diff options
Diffstat (limited to 'src/controller')
-rw-r--r-- | src/controller/Director.php | 2 | ||||
-rw-r--r-- | src/controller/installation.php | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/controller/Director.php b/src/controller/Director.php index 896cde1..5ff8f47 100644 --- a/src/controller/Director.php +++ b/src/controller/Director.php | |||
@@ -62,7 +62,7 @@ class Director | |||
62 | return true; | 62 | return true; |
63 | } | 63 | } |
64 | 64 | ||
65 | public function feedObjects(array $bulk_data): void // $bulk_data = tableau de Node | 65 | private function feedObjects(array $bulk_data): void // $bulk_data = tableau de Node |
66 | { | 66 | { |
67 | // puis on les range | 67 | // puis on les range |
68 | // (attention, risque de disfonctionnement si les noeuds de 1er niveau ne sont pas récupérés en 1er dans la BDD) | 68 | // (attention, risque de disfonctionnement si les noeuds de 1er niveau ne sont pas récupérés en 1er dans la BDD) |
diff --git a/src/controller/installation.php b/src/controller/installation.php index a692618..c2b38fd 100644 --- a/src/controller/installation.php +++ b/src/controller/installation.php | |||
@@ -76,13 +76,13 @@ HTACCESS; | |||
76 | // les informations ici ne sont pas demandées à l'utilisateur pour l'instant (on verra ça plus tard) | 76 | // les informations ici ne sont pas demandées à l'utilisateur pour l'instant (on verra ça plus tard) |
77 | function makeStartPage(EntityManager $entityManager){ | 77 | function makeStartPage(EntityManager $entityManager){ |
78 | /* -- table page -- */ | 78 | /* -- table page -- */ |
79 | // paramètres: name_page, end_of_path, reachable, in_menu, parent | 79 | // paramètres: name_page, end_of_path, reachable, in_menu, position, parent |
80 | $accueil = new Page('Accueil', 'accueil', true, true, NULL); | 80 | $accueil = new Page('Accueil', 'accueil', true, true, 1, NULL); |
81 | $connection = new Page('Connexion', 'connexion', true, false, NULL); | 81 | $connection = new Page('Connexion', 'connexion', true, false, NULL, NULL); |
82 | $article = new Page('Article', 'article', true, false, NULL); | 82 | $article = new Page('Article', 'article', true, false, NULL, NULL); |
83 | $edit_page = new Page("Modification d'une page", 'modif_page', true, false, NULL); | 83 | $edit_page = new Page("Modification d'une page", 'modif_page', true, false, NULL, NULL); |
84 | $new_page = new Page('Nouvelle page', 'nouvelle_page', true, false, NULL); | 84 | $new_page = new Page('Nouvelle page', 'nouvelle_page', true, false, NULL, NULL); |
85 | $edit_paths = new Page("Menu et chemins", 'menu_chemins', true, false, NULL); | 85 | $edit_paths = new Page("Menu et chemins", 'menu_chemins', true, false, NULL, NULL); |
86 | 86 | ||
87 | /* -- table node -- */ | 87 | /* -- table node -- */ |
88 | // paramètres: name_node, article_timestamp, attributes, position, parent, page, article | 88 | // paramètres: name_node, article_timestamp, attributes, position, parent, page, article |
@@ -91,7 +91,7 @@ function makeStartPage(EntityManager $entityManager){ | |||
91 | $nav = new Node('nav', NULL, [], 1, $header, NULL, NULL); | 91 | $nav = new Node('nav', NULL, [], 1, $header, NULL, NULL); |
92 | $main = new Node('main', NULL, [], 3, NULL, NULL, NULL); | 92 | $main = new Node('main', NULL, [], 3, NULL, NULL, NULL); |
93 | $footer = new Node('footer', NULL, [], 4, NULL, NULL, NULL); | 93 | $footer = new Node('footer', NULL, [], 4, NULL, NULL, NULL); |
94 | $breadcrumb = new Node('breadcrumb', NULL, [], 1, $footer, NULL, NULL); | 94 | $breadcrumb = new Node('breadcrumb', NULL, [], 2, $header, NULL, NULL); |
95 | $head_login = new Node('head', NULL, ["stop" => true, 'css_array' => ['body', 'head', 'nav', 'main'], 'js_array' => ['main']], 1, NULL, $connection, NULL); | 95 | $head_login = new Node('head', NULL, ["stop" => true, 'css_array' => ['body', 'head', 'nav', 'main'], 'js_array' => ['main']], 1, NULL, $connection, NULL); |
96 | $login = new Node('login', NULL, [], 1, $main, $connection, NULL); | 96 | $login = new Node('login', NULL, [], 1, $main, $connection, NULL); |
97 | $head_article = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'main', 'foot'], 'js_array' => ['main']], 1, NULL, $article, NULL); | 97 | $head_article = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'main', 'foot'], 'js_array' => ['main']], 1, NULL, $article, NULL); |
@@ -108,7 +108,7 @@ function makeStartPage(EntityManager $entityManager){ | |||
108 | // paramètres: data, node | 108 | // paramètres: data, node |
109 | $head_accueil_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens"], $head_accueil, new ArrayCollection([$favicon])); | 109 | $head_accueil_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens"], $head_accueil, new ArrayCollection([$favicon])); |
110 | $header_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens", "facebook_link" => "https://www.facebook.com/nageursbigoudens29120", "instagram_link" => "https://www.instagram.com/nageursbigoudens/"], $header, new ArrayCollection([$logo, $facebook, $instagram, $fond_piscine])); | 110 | $header_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens", "facebook_link" => "https://www.facebook.com/nageursbigoudens29120", "instagram_link" => "https://www.instagram.com/nageursbigoudens/"], $header, new ArrayCollection([$logo, $facebook, $instagram, $fond_piscine])); |
111 | $footer_data = new NodeData(["adresse" => "17, rue Raymonde Folgoas Guillou, 29120 Pont-l’Abbé", "contact_nom" => "Les Nageurs Bigoudens", "e_mail" => "nb.secretariat@orange.fr"], $footer); | 111 | $footer_data = new NodeData(["adresse" => "17, rue Raymonde Folgoas Guillou, 29120 Pont-l’Abbé", "contact_nom" => "Les Nageurs Bigoudens", "e_mail" => "nb.secretariat@orange.fr", "logo_footer" => "assets/logo-nb-et-ffn.png"], $footer); |
112 | $head_login_data = new NodeData(["description" => "Connexion", "title" => "Connexion"], $head_login, new ArrayCollection([$favicon])); | 112 | $head_login_data = new NodeData(["description" => "Connexion", "title" => "Connexion"], $head_login, new ArrayCollection([$favicon])); |
113 | $head_article_data = new NodeData(["description" => "", "title" => ""], $head_article, new ArrayCollection([$favicon])); | 113 | $head_article_data = new NodeData(["description" => "", "title" => ""], $head_article, new ArrayCollection([$favicon])); |
114 | 114 | ||