aboutsummaryrefslogtreecommitdiff
path: root/app/class
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-08 02:17:18 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-08 02:17:18 +0100
commite7747bf975a8523be7756a71d1b5166f5229363b (patch)
tree74e69eebf29c7c963a8ef36d3aed4d0470a3cbdd /app/class
parent4b30e32dba3a53f02f2c5b5360ed73d1a023a5df (diff)
downloadwcms-e7747bf975a8523be7756a71d1b5166f5229363b.tar.gz
wcms-e7747bf975a8523be7756a71d1b5166f5229363b.zip
mini help
Diffstat (limited to 'app/class')
-rw-r--r--app/class/art2.php18
1 files changed, 14 insertions, 4 deletions
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)) {