V 3.5 RC 1

This commit is contained in:
Romain Neutron
2011-12-05 00:23:28 +01:00
parent 6f1ee368aa
commit 4c5b7eb658
5563 changed files with 466984 additions and 985416 deletions

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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';
}

View 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;
}
}