Example #1
0
 /**
  * Edits the raw text, replacing it with new. (Good for spelling mistakes!)
  *
  * @param $text
  */
 public function EditRawText($text)
 {
     $postdata = $this->GetData();
     //SAY NO TO EMPTINESS! :(
     if (empty($postdata)) {
         return;
     }
     //Overwrite the old text field.
     $postdata['text'] = $text;
     //Update the new post data ( with the updated text).
     $this->database->UpdatePostData($this->postid, json_encode($postdata));
 }