Removes the render functions from the filter_type class, as it is not used anymore.

This commit is contained in:
Mateus Machado Luna 2020-03-02 17:58:03 -03:00
parent 14dd406d08
commit 6fbc93cb82
12 changed files with 0 additions and 131 deletions

View File

@ -40,15 +40,4 @@ class Autocomplete extends Filter_Type {
</div>
');
}
/**
* @param $filter
* @return string
*/
public function render( $filter ){
return '<tainacan-filter-autocomplete name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum()->get_id().'"></tainacan-filter-autocomplete>';
}
}

View File

@ -57,15 +57,4 @@ class Checkbox extends Filter_Type {
</div>
');
}
/**
* @param $filter
* @return string
*/
public function render( $filter ){
return '<tainacan-filter-checkbox name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum_id().'"></tainacan-filter-selectbox>';
}
}

View File

@ -40,16 +40,4 @@ class Date_Interval extends Filter_Type {
</div>
');
}
/**
* @param $filter
* @return string
* @internal param $metadatum
*/
public function render( $filter ){
return '<tainacan-filter-date-interval
name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum()->get_id().'"></tainacan-filter-date-interval>';
}
}

View File

@ -72,18 +72,4 @@ class Date extends Filter_Type {
// ]
// ];
// }
/**
* @param $filter
* @return string
* @internal param $metadatum
*/
public function render( $filter ){
return '<tainacan-filter-date
name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum_id().'"></tainacan-filter-date>';
// type="' . $this->get_option('type') . '"
}
}

View File

@ -59,8 +59,6 @@ abstract class Filter_Type {
add_action('register_filter_types', array(&$this, 'register_filter_type'));
}
abstract function render( $metadatum );
/**
* generate the metadata for this metadatum type
*/

View File

@ -72,16 +72,4 @@ class Numeric_Interval extends Filter_Type {
'custom' => ['title' => __('Custom interval','tainacan')],
];
}
/**
* @param $filter
* @return string
* @internal param $metadatum
*/
public function render( $filter ){
return '<tainacan-filter-numeric-interval
name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum()->get_id().'"></tainacan-filter-numeric-interval>';
}
}

View File

@ -55,16 +55,4 @@ class Numeric_List_Interval extends Filter_Type {
]
];
}
/**
* @param $filter
* @return string
* @internal param $metadatum
*/
public function render( $filter ) {
return '<tainacan-filter-numeric-list-interval
name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum()->get_id().'"></tainacan-filter-form-numeric-list-interval>';
}
}

View File

@ -80,19 +80,6 @@ class Numeric extends Filter_Type {
]
];
}
/**
* @param $filter
* @return string
* @internal param $metadatum
*/
public function render( $filter ){
return '<tainacan-filter-numeric
step="' . $this->get_option('step') . '"
name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum_id().'"></tainacan-filter-numeric>';
}
/**
* @param \Tainacan\Entities\Filter $filter

View File

@ -25,15 +25,4 @@ class Selectbox extends Filter_Type {
</div>
');
}
/**
* @param $filter
* @return string
*/
public function render( $filter ){
return '<tainacan-filter-selectbox name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum_id().'"></tainacan-filter-selectbox>';
}
}

View File

@ -55,15 +55,4 @@ class Taginput extends Filter_Type {
</div>
');
}
/**
* @param $filter
* @return string
*/
public function render( $filter ){
return '<tainacan-filter-taginput name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum_id().'"></tainacan-filter-taginput>';
}
}

View File

@ -57,15 +57,4 @@ class TaxonomyCheckbox extends Filter_Type {
</div>
');
}
/**
* @param $filter
* @return string
*/
public function render( $filter ){
return '<tainacan-filter-taxonomy-checkbox name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum_id().'"></tainacan-filter-taxonomy-checkbox>';
}
}

View File

@ -55,15 +55,4 @@ class TaxonomyTaginput extends Filter_Type {
</div>
');
}
/**
* @param $filter
* @return string
*/
public function render( $filter ){
return '<tainacan-filter-taxonomy-taginput name="'.$filter->get_name().'"
collection_id="'.$filter->get_collection_id().'"
metadatum_id="'.$filter->get_metadatum_id().'"></tainacan-filter-taxonomy-taginput>';
}
}