Example #1
0
 /**
  * Gets the data in the form of an array.
  *
  * @param bool|true $convert
  *
  * @return mixed
  */
 public function GetData($convert = true)
 {
     $post = $this->database->ReturnPost($this->postid);
     if ($convert) {
         //Returns a decoded json string in the form of a string
         return json_decode($post['data'], true);
     }
     return $post['data'];
 }