diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-26 19:35:19 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-26 19:35:19 +0100 |
commit | 3cbecb3a54fac2708774158ae65dafec6d098937 (patch) | |
tree | bf3b105f0dffe425d528f4caa4de4dc40261167b /app/class/art2.php | |
parent | b596f5d1c15ce3e2df50c756fd56080192e438ef (diff) | |
download | wcms-3cbecb3a54fac2708774158ae65dafec6d098937.tar.gz wcms-3cbecb3a54fac2708774158ae65dafec6d098937.zip |
feature: invite editors
Diffstat (limited to 'app/class/art2.php')
-rw-r--r-- | app/class/art2.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/class/art2.php b/app/class/art2.php index 5e0478e..b6311c0 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -36,6 +36,7 @@ class Art2 protected $favicon; protected $thumbnail; protected $authors; + protected $invites; protected $affcount; protected $editcount; @@ -109,6 +110,7 @@ class Art2 $this->setfavicon(''); $this->setthumbnail(''); $this->setauthors([]); + $this->setinvites([]); $this->setaffcount(0); $this->seteditcount(0); } @@ -413,6 +415,11 @@ class Art2 return $this->authors; } + public function invites($type = 'array') + { + return $this->invites; + } + public function affcount($type = 'int') { return $this->affcount; @@ -702,6 +709,13 @@ class Art2 } } + public function setinvites($invites) + { + if(is_array($invites)) { + $this->invites = array_values(array_filter($invites)); + } + } + public function setaffcount($affcount) { if (is_int($affcount)) { |