polls_table = new pollpress_table_poll(); $this->options_table = new pollpress_table_option(); } function create_poll() { return new pollpress_poll($this->polls_table, $this->options_table); } function get_poll($poll_id) { return $this->polls_table->get_poll($this->options_table, $poll_id); } function get_all_polls() { return $this->polls_table->get_all_polls($this->options_table); } function get_all_polls_by_date() { return $this->polls_table->get_all_polls_by_date($this->options_table); } function get_all_published_polls_by_date() { return $this->polls_table->get_all_published_polls_by_date($this->options_table); } function get_polls_with_text($text) { return $this->polls_table->get_polls_with_text($this->options_table, $text); } function get_polls_in_month($year, $month) { return $this->polls_table->get_polls_in_month($this->options_table, $year, $month); } function get_poll_count() { return $this->polls_table->get_poll_count(); } function get_draft_polls($user_id) { return $this->polls_table->get_draft_polls($this->options_table, $user_id); } function get_others_draft_polls($user_id) { return $this->polls_table->get_others_draft_polls($this->options_table, $user_id); } function get_months_for_polls() { return $this->polls_table->get_months_for_polls(); } function get_current_poll() { return $this->polls_table->get_current_poll($this->options_table); } function get_posts_with_text_sql($text) { return $this->polls_table->get_posts_with_text_sql($this->options_table, $text); } } ?>