From e7747bf975a8523be7756a71d1b5166f5229363b Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 8 Jan 2019 02:17:18 +0100 Subject: mini help --- app/class/art2.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'app/class/art2.php') diff --git a/app/class/art2.php b/app/class/art2.php index b6311c0..474531b 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -24,8 +24,6 @@ class Art2 protected $renderhead; protected $renderbody; protected $secure; - protected $invitepassword; - protected $readpassword; protected $interface; protected $linkfrom; protected $linkto; @@ -37,6 +35,7 @@ class Art2 protected $thumbnail; protected $authors; protected $invites; + protected $readers; protected $affcount; protected $editcount; @@ -98,8 +97,6 @@ class Art2 $this->setrenderhead(''); $this->setrenderbody(''); $this->setsecure(3); - $this->setinvitepassword('invitepassword'); - $this->setinvitepassword('readpassword'); $this->setinterface('main'); $this->setlinkfrom([]); $this->setlinkto([]); @@ -111,6 +108,7 @@ class Art2 $this->setthumbnail(''); $this->setauthors([]); $this->setinvites([]); + $this->setreaders([]); $this->setaffcount(0); $this->seteditcount(0); } @@ -420,6 +418,11 @@ class Art2 return $this->invites; } + public function readers($type = 'array') + { + return $this->invites; + } + public function affcount($type = 'int') { return $this->affcount; @@ -716,6 +719,13 @@ class Art2 } } + public function setreaders($readers) + { + if(is_array($readers)) { + $this->readers = array_values(array_filter($readers)); + } + } + public function setaffcount($affcount) { if (is_int($affcount)) { -- cgit v1.2.3