InstallDefaultTemplatesTask

Install default resource templates.
implements Omeka\Installation\Task\TaskInterface
Methods Summary
public
public
# installTemplate( string $label )
Install a default resource template.
protected
# cacheProperties( $prefix )
protected
# getApi( )
public
# setApi( Omeka\Api\Manager $api )
Properties Summary
protected Omeka\Api\Manager $api
# NULL
protected array $cache
# array ( )
protected array $templates
Default resource templates. Keys are the (unique) template labels. Values are arrays containing: - prefix: vocabulary prefix (required) - local_name: property local name (required) - alternate_label: template alternate label (optional) - alternate_comment: template alternate comment (optional)
# array ( 'Base Resource' => array ( 0 => array ( 'prefix' => 'dcterms', 'local_name' => 'title', ), 1 => array ( 'prefix' => 'dcterms', 'local_name' => 'rights', ), 2 => array ( 'prefix' => 'dcterms', 'local_name' => 'type', ), 3 => array ( 'prefix' => 'dcterms', 'local_name' => 'creator', ), 4 => array ( 'prefix' => 'dcterms', 'local_name' => 'date', ), 5 => array ( 'prefix' => 'dcterms', 'local_name' => 'description', ), 6 => array ( 'prefix' => 'dcterms', 'local_name' => 'format', ), 7 => array ( 'prefix' => 'dcterms', 'local_name' => 'language', ), 8 => array ( 'prefix' => 'dcterms', 'local_name' => 'spatial', 'alternate_label' => 'Place', ), 9 => array ( 'prefix' => 'dcterms', 'local_name' => 'publisher', ), 10 => array ( 'prefix' => 'dcterms', 'local_name' => 'alternative', ), 11 => array ( 'prefix' => 'dcterms', 'local_name' => 'contributor', ), 12 => array ( 'prefix' => 'dcterms', 'local_name' => 'extent', ), 13 => array ( 'prefix' => 'dcterms', 'local_name' => 'identifier', ), 14 => array ( 'prefix' => 'dcterms', 'local_name' => 'relation', ), 15 => array ( 'prefix' => 'dcterms', 'local_name' => 'isReplacedBy', ), 16 => array ( 'prefix' => 'dcterms', 'local_name' => 'replaces', ), 17 => array ( 'prefix' => 'dcterms', 'local_name' => 'rightsHolder', ), 18 => array ( 'prefix' => 'dcterms', 'local_name' => 'subject', ), 19 => array ( 'prefix' => 'dcterms', 'local_name' => 'temporal', ), ), )