aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 02:08:59 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 02:08:59 +0200
commitdb3e19a76a2335c9cf88fb08441b35e0cc3648fc (patch)
treedc50dca355988598ba93bd695bc92e2cddb8ec06 /core
parent70f366ce1d102e4712af2408e6dcf5432b1926c2 (diff)
downloadblog-db3e19a76a2335c9cf88fb08441b35e0cc3648fc.tar.gz
blog-db3e19a76a2335c9cf88fb08441b35e0cc3648fc.tar.xz
blog-db3e19a76a2335c9cf88fb08441b35e0cc3648fc.zip
Remove getURL methods from Item classes
Diffstat (limited to 'core')
-rw-r--r--core/namespace/Item.php1
-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, 34 deletions
diff --git a/core/namespace/Item.php b/core/namespace/Item.php
index f674a60..96f2355 100644
--- a/core/namespace/Item.php
+++ b/core/namespace/Item.php
@@ -4,7 +4,6 @@ abstract class Item implements ItemInterface {
protected $Attribute = NULL;
protected $Reflection = NULL;
- abstract public function getURL();
abstract public function getGUID();
#===============================================================================
diff --git a/core/namespace/Page/Item.php b/core/namespace/Page/Item.php
index d559b81..46545d6 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 absolute page URL
- #===============================================================================
- public function getURL(): string {
- if(\Application::get('PAGE.SLUG_URLS')) {
- return \Application::getPageURL("{$this->Attribute->get('slug')}/");
- }
-
- return \Application::getPageURL("{$this->Attribute->get('id')}/");
- }
-
- #===============================================================================
# Return unique pseudo GUID
#===============================================================================
public function getGUID(): string {
diff --git a/core/namespace/Post/Item.php b/core/namespace/Post/Item.php
index 0f2c6a5..1adf897 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 absolute post URL
- #===============================================================================
- public function getURL(): string {
- if(\Application::get('POST.SLUG_URLS')) {
- return \Application::getPostURL("{$this->Attribute->get('slug')}/");
- }
-
- return \Application::getPostURL("{$this->Attribute->get('id')}/");
- }
-
- #===============================================================================
# Return unique pseudo GUID
#===============================================================================
public function getGUID(): string {
diff --git a/core/namespace/User/Item.php b/core/namespace/User/Item.php
index e3ecd2b..8b1c3ed 100644
--- a/core/namespace/User/Item.php
+++ b/core/namespace/User/Item.php
@@ -5,17 +5,6 @@ class Item extends \Item {
const CONFIGURATION = 'USER';
#===============================================================================
- # Return absolute user URL
- #===============================================================================
- public function getURL(): string {
- if(\Application::get('USER.SLUG_URLS')) {
- return \Application::getUserURL("{$this->Attribute->get('slug')}/");
- }
-
- return \Application::getUserURL("{$this->Attribute->get('id')}/");
- }
-
- #===============================================================================
# Return unique pseudo GUID
#===============================================================================
public function getGUID(): string {