aboutsummaryrefslogtreecommitdiff
path: root/app/class/art2.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/art2.php')
-rw-r--r--app/class/art2.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/class/art2.php b/app/class/art2.php
index 524caf6..5e0478e 100644
--- a/app/class/art2.php
+++ b/app/class/art2.php
@@ -35,6 +35,7 @@ class Art2
protected $templateoptions;
protected $favicon;
protected $thumbnail;
+ protected $authors;
protected $affcount;
protected $editcount;
@@ -107,6 +108,7 @@ class Art2
$this->settemplateoptions(['externalcss', 'externaljavascript', 'favicon', 'reccursivecss', 'quickcss']);
$this->setfavicon('');
$this->setthumbnail('');
+ $this->setauthors([]);
$this->setaffcount(0);
$this->seteditcount(0);
}
@@ -406,6 +408,11 @@ class Art2
return $this->thumbnail;
}
+ public function authors($type = 'array')
+ {
+ return $this->authors;
+ }
+
public function affcount($type = 'int')
{
return $this->affcount;
@@ -688,6 +695,13 @@ class Art2
}
}
+ public function setauthors($authors)
+ {
+ if(is_array($authors)) {
+ $this->authors = $authors;
+ }
+ }
+
public function setaffcount($affcount)
{
if (is_int($affcount)) {
@@ -727,6 +741,13 @@ class Art2
$this->addeditcount();
}
+ public function addauthor(string $id)
+ {
+ if(!in_array($id, $this->authors)) {
+ $this->authors[] = $id;
+ }
+ }
+
}