mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
V 3.5 RC 1
This commit is contained in:
38
lib/classes/databox/Field/DCES/Contributor.class.php
Normal file
38
lib/classes/databox/Field/DCES/Contributor.class.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Contributor extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Contributor';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'An entity responsible for making contributions
|
||||
to the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#contributor';
|
||||
|
||||
}
|
39
lib/classes/databox/Field/DCES/Coverage.class.php
Normal file
39
lib/classes/databox/Field/DCES/Coverage.class.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Coverage extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Coverage';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'The spatial or temporal topic of the resource,
|
||||
the spatial applicability of the resource,
|
||||
or the jurisdiction under which the resource
|
||||
is relevant.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#coverage';
|
||||
}
|
37
lib/classes/databox/Field/DCES/Creator.class.php
Normal file
37
lib/classes/databox/Field/DCES/Creator.class.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Creator extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Creator';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'An entity primarily responsible
|
||||
for making the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#creator';
|
||||
}
|
37
lib/classes/databox/Field/DCES/Date.class.php
Normal file
37
lib/classes/databox/Field/DCES/Date.class.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Date extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Date';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'A point or period of time associated with an event
|
||||
in the lifecycle of the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#date';
|
||||
}
|
36
lib/classes/databox/Field/DCES/Description.class.php
Normal file
36
lib/classes/databox/Field/DCES/Description.class.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Description extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Description';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'An account of the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#description';
|
||||
}
|
37
lib/classes/databox/Field/DCES/Format.class.php
Normal file
37
lib/classes/databox/Field/DCES/Format.class.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Format extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Format';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'The file format, physical medium,
|
||||
or dimensions of the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#format';
|
||||
}
|
37
lib/classes/databox/Field/DCES/Identifier.class.php
Normal file
37
lib/classes/databox/Field/DCES/Identifier.class.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Identifier extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Identifier';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'An unambiguous reference to the resource
|
||||
within a given context.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#identifier';
|
||||
}
|
37
lib/classes/databox/Field/DCES/Language.class.php
Normal file
37
lib/classes/databox/Field/DCES/Language.class.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Language extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Language';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'A language of the resource.
|
||||
(see [RFC4646] http://www.ietf.org/rfc/rfc4646.txt)';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#language';
|
||||
}
|
37
lib/classes/databox/Field/DCES/Publisher.class.php
Normal file
37
lib/classes/databox/Field/DCES/Publisher.class.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Publisher extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Publisher';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'An entity responsible for making the resource
|
||||
available.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#publisher';
|
||||
}
|
36
lib/classes/databox/Field/DCES/Relation.class.php
Normal file
36
lib/classes/databox/Field/DCES/Relation.class.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Relation extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Relation';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'A related resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#relation';
|
||||
}
|
37
lib/classes/databox/Field/DCES/Rights.class.php
Normal file
37
lib/classes/databox/Field/DCES/Rights.class.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Rights extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Rights';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'Information about rights held
|
||||
in and over the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#rights';
|
||||
}
|
37
lib/classes/databox/Field/DCES/Source.class.php
Normal file
37
lib/classes/databox/Field/DCES/Source.class.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Source extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Source';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'A related resource from which
|
||||
the described resource is derived.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#source';
|
||||
}
|
36
lib/classes/databox/Field/DCES/Subject.class.php
Normal file
36
lib/classes/databox/Field/DCES/Subject.class.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Subject extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Subject';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'The topic of the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#subject';
|
||||
}
|
36
lib/classes/databox/Field/DCES/Title.class.php
Normal file
36
lib/classes/databox/Field/DCES/Title.class.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Title extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Title';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'A name given to the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#title';
|
||||
}
|
36
lib/classes/databox/Field/DCES/Type.class.php
Normal file
36
lib/classes/databox/Field/DCES/Type.class.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class databox_Field_DCES_Type extends databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label = 'Type';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition = 'The nature or genre of the resource.';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI = 'http://dublincore.org/documents/dces/#type';
|
||||
}
|
85
lib/classes/databox/Field/DCESAbstract.class.php
Normal file
85
lib/classes/databox/Field/DCESAbstract.class.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package Databox DCES
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
abstract class databox_Field_DCESAbstract
|
||||
{
|
||||
|
||||
const Contributor = 'Contributor';
|
||||
const Coverage = 'Coverage';
|
||||
const Creator = 'Creator';
|
||||
const Date = 'Date';
|
||||
const Description = 'Description';
|
||||
const Format = 'Format';
|
||||
const Identifier = 'Identifier';
|
||||
const Language = 'Language';
|
||||
const Publisher = 'Publisher';
|
||||
const Relation = 'Relation';
|
||||
const Rights = 'Rights';
|
||||
const Source = 'Source';
|
||||
const Subject = 'Subject';
|
||||
const Title = 'Title';
|
||||
const Type = 'Type';
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $label;
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $definition;
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $URI;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_label()
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_definition()
|
||||
{
|
||||
return $this->definition;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_documentation_link()
|
||||
{
|
||||
return $this->URI;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user