WIP Suche implementiert, sowie Sortieren der Ergebnisse #19
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user