public function count_filtered($type = '') { if ($type == 'agenda') { return parent::count_filtered($this->get_dt_query_agenda()); } elseif ($type == 'client') { return parent::count_filtered($this->get_dt_query_client()); } }
public function count_filtered($type = '', $id = '') { if ($type == 'price') { return parent::count_filtered($this->get_dt_query_price($id)); } elseif ($type == 'price_cat') { return parent::count_filtered($this->get_dt_query_price_cat()); } }