aboutsummaryrefslogtreecommitdiff
path: root/app/class/Page.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-28 20:18:17 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-28 20:24:52 +0200
commit9090550d241f9f7b3246b24bfd323bd988add749 (patch)
tree2c2de66510533da53848dd876a9ab392471b38b8 /app/class/Page.php
parent98514a4e0037aa0879e45bbad660aeda8837c624 (diff)
downloadwcms-9090550d241f9f7b3246b24bfd323bd988add749.tar.gz
wcms-9090550d241f9f7b3246b24bfd323bd988add749.zip
listen to brother Stan and clean some things
Diffstat (limited to 'app/class/Page.php')
-rw-r--r--app/class/Page.php27
1 files changed, 1 insertions, 26 deletions
diff --git a/app/class/Page.php b/app/class/Page.php
index 43cf387..b1c6b49 100644
--- a/app/class/Page.php
+++ b/app/class/Page.php
@@ -234,22 +234,11 @@ class Page extends Dbitem
if ($this->secure == 2) {
$secure = 'not_published';
}
- return $secure;
} else {
return $this->secure;
}
}
- public function invitepassword($type = 'string')
- {
- return $this->invitepassword;
- }
-
- public function readpassword($type = 'string')
- {
- return $this->readpassword;
- }
-
public function interface($type = 'string')
{
return $this->interface;
@@ -266,7 +255,7 @@ class Page extends Dbitem
} elseif ($option == 'string') {
return implode(', ', $this->linkto);
}
- return $linkto;
+ return $this->linkto;
}
public function templatebody($type = 'string')
@@ -576,20 +565,6 @@ class Page extends Dbitem
}
}
- public function setinvitepassword($invitepassword)
- {
- if (is_string($invitepassword) && strlen($invitepassword) < self::LEN) {
- $this->invitepassword = $invitepassword;
- }
- }
-
- public function setreadpassword($readpassword)
- {
- if (is_string($readpassword) && strlen($readpassword) < self::LEN) {
- $this->readpassword = $readpassword;
- }
- }
-
public function setinterface($interface)
{
if (in_array($interface, self::TABS)) {