aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 16:24:59 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 16:24:59 +0200
commit5e1f5a639f1f3d8b064d4254fd3d81239c393cc6 (patch)
tree1174d968200a5cd9850ae6e635221a069d77db5d /core/namespace
parent1d921fc04bf73c6ca879f13e9737ad52596748c5 (diff)
downloadblog-5e1f5a639f1f3d8b064d4254fd3d81239c393cc6.tar.gz
blog-5e1f5a639f1f3d8b064d4254fd3d81239c393cc6.tar.xz
blog-5e1f5a639f1f3d8b064d4254fd3d81239c393cc6.zip
Remove getGUID methods from Item classes
Diffstat (limited to 'core/namespace')
-rw-r--r--core/namespace/Item.php2
-rw-r--r--core/namespace/Page/Item.php11
-rw-r--r--core/namespace/Post/Item.php11
-rw-r--r--core/namespace/User/Item.php11
4 files changed, 0 insertions, 35 deletions
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
@@ -5,17 +5,6 @@ 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
#===============================================================================
public static function getSearchResultIDs($search, \Database $Database): array {
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
@@ -5,17 +5,6 @@ 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
#===============================================================================
public static function getSearchResultIDs($search, array $date, \Database $Database): array {
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));
- }
}