page: replace global variables by $Page object
[minimedit.git] / article.inc.php
index 6c3ca935be15bf0318a377564ba8d136b4f8239b..acd219d164aab81397d9da33ef104148f3e23574 100644 (file)
@@ -17,7 +17,7 @@ function showdate($parts)
 class ArchiveArticle
 {
        public $raw, $title, $body; # file contents
-       public $meta = [];
+       public $meta = [];  # head metadata properties
 
        function __construct($path)
        {
@@ -77,6 +77,12 @@ class ArchiveArticle
                return;
        }
 
+       function restricted()
+       {
+               $this->handler;
+               return $this->restricted;
+       }
+
        function safetitle()
        {
                return trim($this->meta['og:title'] ?? strip_tags($this->title));