create collection attribute for filters ordination
This commit is contained in:
parent
e0c630475c
commit
3c24516905
|
@ -255,6 +255,15 @@ class Collection extends Entity {
|
|||
return $this->get_mapped_property('fields_order');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get collection filters ordination
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_filters_order() {
|
||||
return $this->get_mapped_property('filters_order');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get collection moderators ids
|
||||
*
|
||||
|
@ -395,6 +404,16 @@ class Collection extends Entity {
|
|||
$this->set_mapped_property('fields_order', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set collection filters ordination
|
||||
*
|
||||
* @param [string] $value
|
||||
* @return void
|
||||
*/
|
||||
function set_filters_order($value) {
|
||||
$this->set_mapped_property('filters_order', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set collection moderators ids
|
||||
*
|
||||
|
|
|
@ -138,6 +138,13 @@ class Collections extends Repository {
|
|||
'description'=> __('Collection fields ordination', 'tainacan'),
|
||||
//'validation' => v::stringType(),
|
||||
],
|
||||
'filters_order' => [
|
||||
'map' => 'meta',
|
||||
'title' => __('Ordination filters', 'tainacan'),
|
||||
'type' => 'string',
|
||||
'description'=> __('Collection filters ordination', 'tainacan'),
|
||||
//'validation' => v::stringType(),
|
||||
],
|
||||
/*
|
||||
|
||||
Isnt it just post status private?
|
||||
|
|
Loading…
Reference in New Issue