aboutsummaryrefslogtreecommitdiffstats
path: root/core/functions.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-25 22:13:59 +0200
committerThomas Lange <code@nerdmind.de>2021-06-25 22:13:59 +0200
commita86bdc6b5bab78b4026f44161413f4e482df42e4 (patch)
tree76ffd745780671371272e97b3eeac85e154e236e /core/functions.php
parent366d0de19c012821ef587d5fdb9557c339b43303 (diff)
downloadblog-a86bdc6b5bab78b4026f44161413f4e482df42e4.tar.gz
blog-a86bdc6b5bab78b4026f44161413f4e482df42e4.tar.xz
blog-a86bdc6b5bab78b4026f44161413f4e482df42e4.zip
Reorganize namespaces
Diffstat (limited to 'core/functions.php')
-rw-r--r--core/functions.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/core/functions.php b/core/functions.php
index 55744f1..dadaab8 100644
--- a/core/functions.php
+++ b/core/functions.php
@@ -1,7 +1,9 @@
<?php
-use Page\Entity as Page;
-use Post\Entity as Post;
-use User\Entity as User;
+use ORM\Entities\Page;
+use ORM\Entities\Post;
+use ORM\Entities\User;
+use ORM\EntityInterface;
+
use Template\Template as Template;
use Template\Factory as TemplateFactory;
@@ -114,10 +116,10 @@ function generateItemTemplateData(EntityInterface $Entity): array {
#===============================================================================
function generatePseudoGUID(EntityInterface $Entity) {
switch(get_class($Entity)) {
- case "Page\Entity":
+ case "ORM\Entities\Page":
$attr = Application::get('PAGE.FEED_GUID');
break;
- case "Post\Entity":
+ case "ORM\Entities\Post":
$attr = Application::get('POST.FEED_GUID');
break;
default:
@@ -164,13 +166,13 @@ function parseContentTags(string $text): string {
#===============================================================================
function parseEntityContent(EntityInterface $Entity): string {
switch($class = get_class($Entity)) {
- case 'Page\Entity':
+ case 'ORM\Entities\Page':
$prefix = 'PAGE';
break;
- case 'Post\Entity':
+ case 'ORM\Entities\Post':
$prefix = 'POST';
break;
- case 'User\Entity':
+ case 'ORM\Entities\User':
$prefix = 'USER';
break;
default: