aboutsummaryrefslogtreecommitdiff
path: root/app/class/Page.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/Page.php')
-rw-r--r--app/class/Page.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/class/Page.php b/app/class/Page.php
index 41cf0ab..170a057 100644
--- a/app/class/Page.php
+++ b/app/class/Page.php
@@ -43,6 +43,7 @@ class Page
protected $visitcount;
protected $editcount;
protected $editby;
+ protected $sleep;
const LEN = 255;
@@ -112,6 +113,7 @@ class Page
$this->setvisitcount(0);
$this->seteditcount(0);
$this->seteditby([]);
+ $this->setsleep(0);
}
public static function classvarlist()
@@ -454,6 +456,11 @@ class Page
return $this->editby;
}
+ public function sleep($type = 'int')
+ {
+ return $this->sleep;
+ }
+
@@ -819,6 +826,15 @@ class Page
return count($this->editby) > 0;
}
+ public function setsleep($sleep)
+ {
+ $sleep = abs(intval($sleep));
+ if($sleep > 180) {
+ $sleep = 180;
+ }
+ $this->sleep = $sleep;
+ }
+
/**
* Merge new tag with actual tags
*