summaryrefslogtreecommitdiff
path: root/htdocs/src
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-06-02 18:06:00 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-06-02 18:06:00 -0700
commit4364c76c16103870fb4a4cf6be9261871195c06f (patch)
treef4b5ab40e4a92d7992a9c2ed35132fd53d49a912 /htdocs/src
parent0720091ca73b9714aab2b38c3682c15a0cbd4533 (diff)
Added sources to post process
Diffstat (limited to 'htdocs/src')
-rw-r--r--htdocs/src/Post.inc.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/htdocs/src/Post.inc.php b/htdocs/src/Post.inc.php
index c29b5a9..4f5e246 100644
--- a/htdocs/src/Post.inc.php
+++ b/htdocs/src/Post.inc.php
@@ -149,6 +149,28 @@ class Post {
return $this->info['stage'];
}
+ public function getSource() {
+ if ($this->info['source_id'] != 0) {
+ return $this->info['source_id'];
+
+ } else {
+ return false;
+ }
+ }
+
+ public function getOtherSource() {
+ return $this->info['reason'];
+ }
+
+ public function setSource($value) {
+ $this->info['source_id'] = $value;
+ }
+
+ public function otherSource($value) {
+ $this->info['source_id'] = 0;
+ $this->info['reason'] = $value;
+ }
+
public function approve() {
if ($this->getStage() == 'moderation') {
$this->info['stage'] = 'approved';