diff --git a/content/search-results.php b/content/search-results.php index 5a0192c..b9f0427 100644 --- a/content/search-results.php +++ b/content/search-results.php @@ -1,17 +1,6 @@ "; -echo "Aktuelle URL-Parameter (GET): "; print_r($_GET); -echo "Aktueller Session-Inhalt (SESSION): "; print_r($_SESSION); -echo ""; -// 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); diff --git a/php/model/Article.php b/php/model/Article.php index 4b1d492..9ffd701 100644 --- a/php/model/Article.php +++ b/php/model/Article.php @@ -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