removing unused property
This commit is contained in:
parent
2a93dfa383
commit
75b0fc7c65
|
@ -276,13 +276,6 @@ Return if field is key
|
|||
Return the mask
|
||||
|
||||
|
||||
**Returns:** string
|
||||
|
||||
### `function get_privacy()`
|
||||
|
||||
Return the privacy type
|
||||
|
||||
|
||||
**Returns:** string
|
||||
|
||||
### `function get_default_value()`
|
||||
|
|
|
@ -139,7 +139,6 @@ A REST API for Tainacan Plugin. This API uses the Wordpress REST API.
|
|||
"collection_key": "string",
|
||||
"multiple": "string",
|
||||
"cardinality": "string",
|
||||
"privacy": "string",
|
||||
"mask": "string",
|
||||
"default_value": "string",
|
||||
"field_type_options": "string",
|
||||
|
|
|
@ -19,7 +19,6 @@ class Field extends Entity {
|
|||
$cardinality,
|
||||
$collection_key,
|
||||
$mask,
|
||||
$privacy,
|
||||
$default_value,
|
||||
$field_type,
|
||||
$field_type_options;
|
||||
|
@ -131,15 +130,6 @@ class Field extends Entity {
|
|||
return $this->get_mapped_property('mask');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the privacy type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_privacy(){
|
||||
return $this->get_mapped_property('privacy');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the field default value
|
||||
*
|
||||
|
@ -294,16 +284,6 @@ class Field extends Entity {
|
|||
$this->set_mapped_property('mask', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set privacy
|
||||
*
|
||||
* @param [string] $value
|
||||
* @return void
|
||||
*/
|
||||
function set_privacy( $value ){
|
||||
$this->set_mapped_property('privacy', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default value
|
||||
*
|
||||
|
|
|
@ -128,15 +128,6 @@ class Fields extends Repository {
|
|||
'validation' => v::numeric()->positive(),
|
||||
'default' => 1
|
||||
],
|
||||
'privacy' => [
|
||||
'map' => 'meta',
|
||||
'title' => __('Privacy', 'tainacan'),
|
||||
'type' => 'string',
|
||||
'description'=> __('The field should be omitted in item view', 'tainacan'),
|
||||
'on_error' => __('Privacy is invalid', 'tainacan'),
|
||||
'validation' => v::stringType()->in(['yes', 'no']), // yes or no. It cant be multiple if its collection_key
|
||||
'default' => 'no'
|
||||
],
|
||||
'mask' => [
|
||||
'map' => 'meta',
|
||||
'title' => __('Mask', 'tainacan'),
|
||||
|
|
Loading…
Reference in New Issue