public function get_post_data() { if (!empty($this->data) && is_array($this->data)) { return $this->data; } return $_POST; }