# Class AjaxTable

The Factory class is a base class which can be used to make any classes externally extensible. A filter is added for wpgmza_create_{class} which is called by createInstance. If this filter returns a subclass of Factory, that filter will override the default class and will be used.

IMPORTANT: Any objects which subclass Factory MUST be created by calling createInstance on the subclass. Calling new on the constructor directly will not cause this filter to fire, and the extended class will not be used.

  WPGMZA\Factory
  WPGMZA\Table
  WPGMZA\AjaxTable

#### Direct known subclasses

WPGMZA\DataTable, WPGMZA\MarkerListing

#### Indirect known subclasses

WPGMZA\AdminMarkerDataTable, WPGMZA\MarkerDataTable, WPGMZA\MarkerListing\AdvancedTable, WPGMZA\MarkerListing\BasicList, WPGMZA\MarkerListing\BasicTable, WPGMZA\MarkerListing\Carousel, WPGMZA\MarkerListing\Modern, WPGMZA\ProAdminMarkerDataTable
Namespace: WPGMZA
Located at tables/class.ajax-table.php

Methods summary
`public` | # `__construct( $table_name, $rest_api_route, $ajax_parameters = null )` #### Overrides `WPGMZA\Table::__construct()`
`public` | # `getAjaxParameters( )`
`public` | # `setAjaxParameters( $ajax_parameters )`
`protected` | # `getAttributeParams( $name )`
`protected` | # `setAttributeParams( $name, $params )`
`protected` | # `getRestAPIRoute( )`
`protected` | # `setRestAPIRoute( $route )`
`protected` | # `getColumns( )`
`protected` | # `getColumnNameByIndex( $index )`
`protected` | # `getOrderBy( $input_params, $column_keys )`
`protected` | # `getOrderDirection( $input_params )`
`protected` | # `getWhereClause( $input_params, & $query_params, $clause_for_total = false )`
`protected` | # `getSearchClause( $input_params, & $query_params, $exclude_columns = null )`
`protected string` | # `getHavingClause( $input_params, & $query_params, $exclude_columns = null )` Gets the HAVING clause for the table query Gets the HAVING clause for the table query #### Returns string
`protected array` | # `filterColumns( & $columns, $input_params )` Override this function to add additional columns to the query Override this function to add additional columns to the query #### Returns array
`protected array` | # `filterResults( & $rows )` Override this function to manipulate data before it's converted to datatables numeric array format Override this function to manipulate data before it's converted to datatables numeric array format #### Returns array
`protected string` | # `filterOrderBy( $orderBy, $keys )` Function can be used to override order by column Function can be used to override order by column #### Returns string
`protected string` | # `filterOrderDirection( $orderDirection )` Function can be used to override order by column Function can be used to override order by column #### Returns string
`public` | # `getRecords( $input_params )`
`public` | # `data( $input_params )` #### Overrides `WPGMZA\Table::data()`

Methods inherited from WPGMZA\Table
`__get(), __set(), getElement(), html(), loadDocument()`

Methods inherited from WPGMZA\Factory
`createInstance()`