From 5e1f5a639f1f3d8b064d4254fd3d81239c393cc6 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 16:24:59 +0200 Subject: Remove getGUID methods from Item classes --- core/namespace/Item.php | 2 -- core/namespace/Page/Item.php | 11 ----------- core/namespace/Post/Item.php | 11 ----------- core/namespace/User/Item.php | 11 ----------- 4 files changed, 35 deletions(-) (limited to 'core/namespace') diff --git a/core/namespace/Item.php b/core/namespace/Item.php index 96f2355..0cd504b 100644 --- a/core/namespace/Item.php +++ b/core/namespace/Item.php @@ -4,8 +4,6 @@ abstract class Item implements ItemInterface { protected $Attribute = NULL; protected $Reflection = NULL; - abstract public function getGUID(); - #=============================================================================== # Abstract item constructor #=============================================================================== diff --git a/core/namespace/Page/Item.php b/core/namespace/Page/Item.php index 46545d6..cbc99e6 100644 --- a/core/namespace/Page/Item.php +++ b/core/namespace/Page/Item.php @@ -4,17 +4,6 @@ namespace Page; class Item extends \Item { const CONFIGURATION = 'PAGE'; - #=============================================================================== - # Return unique pseudo GUID - #=============================================================================== - public function getGUID(): string { - foreach(\Application::get('PAGE.FEED_GUID') as $attribute) { - $attributes[] = $this->Attribute->get($attribute); - } - - return sha1(implode(NULL, $attributes)); - } - #=============================================================================== # Return unique page IDs for search results #=============================================================================== diff --git a/core/namespace/Post/Item.php b/core/namespace/Post/Item.php index 1adf897..e8b4615 100644 --- a/core/namespace/Post/Item.php +++ b/core/namespace/Post/Item.php @@ -4,17 +4,6 @@ namespace Post; class Item extends \Item { const CONFIGURATION = 'POST'; - #=============================================================================== - # Return unique pseudo GUID - #=============================================================================== - public function getGUID(): string { - foreach(\Application::get('POST.FEED_GUID') as $attribute) { - $attributes[] = $this->Attribute->get($attribute); - } - - return sha1(implode(NULL, $attributes)); - } - #=============================================================================== # Return unique post IDs for search results #=============================================================================== diff --git a/core/namespace/User/Item.php b/core/namespace/User/Item.php index 8b1c3ed..5039287 100644 --- a/core/namespace/User/Item.php +++ b/core/namespace/User/Item.php @@ -3,15 +3,4 @@ namespace User; class Item extends \Item { const CONFIGURATION = 'USER'; - - #=============================================================================== - # Return unique pseudo GUID - #=============================================================================== - public function getGUID(): string { - foreach(['id', 'time_insert'] as $attribute) { - $attributes[] = $this->Attribute->get($attribute); - } - - return sha1(implode(NULL, $attributes)); - } } -- cgit v1.2.3