From 52b077a48c743ba4d08ac00520a0bf1ef6deef5f Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 24 Feb 2017 21:27:59 +0100 Subject: Initial commit. --- core/namespace/Page/Attribute.php | 22 ++++++++++++++++++++++ core/namespace/Page/Exception.php | 5 +++++ core/namespace/Page/Factory.php | 9 +++++++++ core/namespace/Page/Item.php | 29 +++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 core/namespace/Page/Attribute.php create mode 100644 core/namespace/Page/Exception.php create mode 100644 core/namespace/Page/Factory.php create mode 100644 core/namespace/Page/Item.php (limited to 'core/namespace/Page') diff --git a/core/namespace/Page/Attribute.php b/core/namespace/Page/Attribute.php new file mode 100644 index 0000000..c12a2c8 --- /dev/null +++ b/core/namespace/Page/Attribute.php @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/core/namespace/Page/Exception.php b/core/namespace/Page/Exception.php new file mode 100644 index 0000000..d4794b7 --- /dev/null +++ b/core/namespace/Page/Exception.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/core/namespace/Page/Factory.php b/core/namespace/Page/Factory.php new file mode 100644 index 0000000..f53b35f --- /dev/null +++ b/core/namespace/Page/Factory.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/core/namespace/Page/Item.php b/core/namespace/Page/Item.php new file mode 100644 index 0000000..c6cece7 --- /dev/null +++ b/core/namespace/Page/Item.php @@ -0,0 +1,29 @@ +Attribute->get('slug')}/"); + } + + return \Application::getPageURL("{$this->Attribute->get('id')}/"); + } + + #=============================================================================== + # 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)); + } +} +?> \ No newline at end of file -- cgit v1.2.3