public function __construct() { parent::__construct(); global $wpdb; $this->tree_species_type = 'tree_species'; $this->table_name = $wpdb->prefix . 'posts'; }
public function __construct($plan_id = -1, $current_page = 1, $items_per_page = 10) { parent::__construct(); global $wpdb; global $post; if ($plan_id == -1 && isset($post)) { $this->plan_id = $post->ID; } $this->plan_id = $plan_id; $this->current_page = $current_page; $this->table_name = $wpdb->prefix . 'post_to_posts'; //'forest_plan_posts'; $this->plan = null; }
public function __construct() { parent::__construct(); }
public function __construct($tree_card_id) { parent::__construct(); $this->tree_card_id = $tree_card_id; }