public function get_events_select_count($selectwhere, array $params) {
        if (!$this->init()) {
            return 0;
        }

        if (!$dbtable = $this->get_config('dbtable')) {
            return 0;
        }

        return $this->extdb->count_records_select($dbtable, $selectwhere, $params);
    }
public function get_events_select_count($selectwhere, array $params) {
        if (!$this->init()) {
            return 0;
        }

        if (!$dbtable = $this->get_config('dbtable')) {
            return 0;
        }

        return $this->extdb->count_records_select($dbtable, $selectwhere, $params);
    }
public function get_events_select_count ( $ selectwhere , array $ params ) { if ( ! $ this -> init ( ) ) { return 0 ; } if ( ! $ dbtable = $ this -> get_config ( 'dbtable' ) ) { return 0 ; } return $ this -> extdb -> count_records_select ( $ dbtable , $ selectwhere , $ params ) ; }
Get number of events present for the given select clause.

@param string $selectwhere select conditions.
@param array $params params.

@return int Number of events available for the given conditions
Get number of events present for the given select clause .