aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Page
diff options
context:
space:
mode:
Diffstat (limited to 'core/namespace/Page')
-rw-r--r--core/namespace/Page/Item.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/namespace/Page/Item.php b/core/namespace/Page/Item.php
index e3bf6a3..4206f2f 100644
--- a/core/namespace/Page/Item.php
+++ b/core/namespace/Page/Item.php
@@ -39,5 +39,13 @@ class Item extends \Item {
return [];
}
+
+ #===============================================================================
+ # Return associated User\Attribute
+ #===============================================================================
+ public function getUserAttribute() {
+ $Statement = $this->Database->query(sprintf('SELECT * FROM user WHERE id = %d', $this->Attribute->get('user')));
+ return $Statement->fetchObject('User\Attribute');
+ }
}
?> \ No newline at end of file