docs for metadata mapper prop

This commit is contained in:
Jacson Passold 2018-05-29 19:25:22 -03:00
parent d9d5eac044
commit 8c9d0515c4
1 changed files with 22 additions and 1 deletions

View File

@ -7,7 +7,28 @@ abstract class Mapper {
public $name = null; // Public name do mapper public $name = null; // Public name do mapper
public $allow_extra_fields = true; // Allow more field to be register public $allow_extra_fields = true; // Allow more field to be register
public $context_url = null; // URL of mapper documentation public $context_url = null; // URL of mapper documentation
public $metadata = false; // array of supported metadata, false for not validade the list
/**
* array of supported metadata, false for not validade the list format:
* ['slug'] => [
* 'URI' => 'http://...', // URI of the field description
* 'label' => 'Label', // Label to show on UI
* 'field_type' => 'date', // Tainacan recomended field type, default text
* 'core_field' => 'description' // if have a core tainacan field, what?
* ['date' => [
* 'URI' => 'http://purl.org/dc/elements/1.1/date',
* 'label' => 'Date',
* 'field_type' => 'date'
* ],
* 'description' => [
* 'URI' => 'http://purl.org/dc/elements/1.1/description',
* 'label' => 'Description',
* 'core_field' => 'description'
* ]]
* @var array
*/
public $metadata = false;
public $prefix = ''; // Tag prefix like "dc:" public $prefix = ''; // Tag prefix like "dc:"
public $sufix = ''; // Tag sufix public $sufix = ''; // Tag sufix
public $header = false; // API response header or file header to be used with public $header = false; // API response header or file header to be used with