Files
Phraseanet/lib/Alchemy/Phrasea/Media/Subdef/Provider.php
Romain Neutron 093869d3d0 Add devices in API answer / CS / Fixes
Add tests to media subdefs
Fix CS
Add Mplayer to build
Fix Alchemy\Phrasea\Exceptions
Add media_subdef etags
2012-04-27 16:46:52 +02:00

48 lines
913 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2012 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Media\Subdef;
/**
*
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
abstract class Provider implements Subdef
{
protected $options = array();
protected $spec;
public function registerOption(OptionType\OptionType $option)
{
$this->options[$option->getName()] = $option;
return $this;
}
public function getOptions()
{
return $this->options;
}
public function getOption($name)
{
return $this->options[$name];
}
public function setOptionValue($name, $value)
{
$this->options[$name]->setValue($value);
return $this;
}
}