WIP Suche implementiert, sowie Sortieren der Ergebnisse #19

Merged
niklas.ortmann merged 54 commits from ImplementedSearch into dev 2026-06-03 16:07:42 +02:00
2 changed files with 7 additions and 18 deletions
Showing only changes of commit 32c2a1a3d8 - Show all commits
-11
View File
@@ -1,17 +1,6 @@
<?php
session_start();
//debugging
echo "<pre style='background:#fff; color:#000; padding:10px; border:2px solid red; position:relative; z-index:9999;'>";
echo "Aktuelle URL-Parameter (GET): "; print_r($_GET);
echo "Aktueller Session-Inhalt (SESSION): "; print_r($_SESSION);
echo "</pre>";
// debugging
//require_once '../php/model/Article.php';
$projectRoot = "/var/www/html/DI-14-C-ImplementedSearch";
$articleClassPath = $projectRoot . '/model/Article.php';
$results = $_SESSION["search_results"] ?? [];
$query = $_SESSION["search_query"] ?? "";
$resultCount = count($results);
2
+7 -7
View File
@@ -7,13 +7,13 @@
*/
class Article
{
public $id;
public $title;
public $content;
public $author;
public $creationDate;
public $category;
public $tags;
private $id;
private $title;
private $content;
private $author;
private $creationDate;
private $category;
private $tags;
/**
* Konstruktor