This commit is contained in:
Romain Neutron
2012-05-23 00:01:29 +02:00
parent 41e56ed86b
commit 4afa21d419
346 changed files with 2234 additions and 3759 deletions

View File

@@ -40,7 +40,7 @@ class databox_descriptionStructure implements IteratorAggregate
/**
*
* @param databox_field $field
* @param databox_field $field
* @return databox_descriptionStructure
*/
public function add_element(databox_field $field)
@@ -52,7 +52,7 @@ class databox_descriptionStructure implements IteratorAggregate
/**
*
* @param databox_field $field
* @param databox_field $field
* @return databox_descriptionStructure
*/
public function remove_element(databox_field $field)
@@ -74,7 +74,7 @@ class databox_descriptionStructure implements IteratorAggregate
/**
*
* @param int $id
* @param int $id
* @return databox_field
*/
public function get_element($id)
@@ -87,7 +87,7 @@ class databox_descriptionStructure implements IteratorAggregate
/**
*
* @param string $name
* @param string $name
* @return databox_field
*/
public function get_element_by_name($name)
@@ -111,7 +111,7 @@ class databox_descriptionStructure implements IteratorAggregate
/**
*
* @param string $id
* @param string $id
* @return boolean
*/
public function isset_element($id)

View File

@@ -151,8 +151,8 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param databox $databox
* @param <type> $id
* @param databox $databox
* @param <type> $id
* @return databox_field
*/
protected function __construct(databox &$databox, $id)
@@ -239,8 +239,8 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param \databox $databox
* @param int $id
* @param \databox $databox
* @param int $id
* @return \databox_field
*/
public static function get_instance(databox &$databox, $id)
@@ -414,7 +414,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param string $name
* @param string $name
* @return databox_field
*/
public function set_name($name)
@@ -439,7 +439,7 @@ class databox_field implements cache_cacheableInterface
/**
* Get a PHPExiftool Tag from tagName
*
* @param type $tagName
* @param type $tagName
* @return \PHPExiftool\Driver\Tag
* @throws Exception_Databox_metadataDescriptionNotFound
*/
@@ -523,7 +523,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param boolean $bool
* @param boolean $bool
* @return databox_field
*/
public function set_indexable($bool)
@@ -536,7 +536,7 @@ class databox_field implements cache_cacheableInterface
/**
* Set a vocabulary
*
* @param Vocabulary\ControlProvider\ControlProviderInterface $vocabulary
* @param Vocabulary\ControlProvider\ControlProviderInterface $vocabulary
* @return \databox_field
*/
public function setVocabularyControl(Vocabulary\ControlProvider\ControlProviderInterface $vocabulary = null)
@@ -549,8 +549,8 @@ class databox_field implements cache_cacheableInterface
/**
* Set whether or not the vocabulary is restricted to the provider
*
* @param boolean $boolean
* @return \databox_field
* @param boolean $boolean
* @return \databox_field
*/
public function setVocabularyRestricted($boolean)
{
@@ -561,7 +561,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param boolean $bool
* @param boolean $bool
* @return databox_field
*/
public function set_readonly($readonly)
@@ -573,7 +573,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param boolean $boolean
* @param boolean $boolean
* @return databox_field
*/
public function set_business($boolean)
@@ -585,7 +585,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param boolean $bool
* @param boolean $bool
* @return databox_field
*/
public function set_required($required)
@@ -597,7 +597,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param boolean $bool
* @param boolean $bool
* @return databox_field
*/
public function set_multi($multi)
@@ -617,7 +617,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param boolean $bool
* @param boolean $bool
* @return databox_field
*/
public function set_report($report)
@@ -629,7 +629,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param string $type
* @param string $type
* @return databox_field
*/
public function set_type($type)
@@ -641,7 +641,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param string $type
* @param string $type
* @return databox_field
*/
public function set_tbranch($branch)
@@ -653,7 +653,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param string $type
* @param string $type
* @return databox_field
*/
public function set_separator($separator)
@@ -666,9 +666,9 @@ class databox_field implements cache_cacheableInterface
/**
* Return the separator depending of the multi attribute
*
* @param string $separator
* @param boolean $multi
* @return string
* @param string $separator
* @param boolean $multi
* @return string
*/
protected static function checkMultiSeparator($separator, $multi)
{
@@ -685,7 +685,7 @@ class databox_field implements cache_cacheableInterface
/**
*
* @param string $type
* @param string $type
* @return databox_field
*/
public function set_thumbtitle($value)
@@ -881,7 +881,7 @@ class databox_field implements cache_cacheableInterface
/**
* Part of the cache_cacheableInterface
*
* @param string $option
* @param string $option
* @return string
*/
public function get_cache_key($option = null)
@@ -892,7 +892,7 @@ class databox_field implements cache_cacheableInterface
/**
* Part of the cache_cacheableInterface
*
* @param string $option
* @param string $option
* @return mixed
*/
public function get_data_from_cache($option = null)
@@ -903,9 +903,9 @@ class databox_field implements cache_cacheableInterface
/**
* Part of the cache_cacheableInterface
*
* @param mixed $value
* @param string $option
* @param int $duration
* @param mixed $value
* @param string $option
* @param int $duration
* @return caption_field
*/
public function set_data_to_cache($value, $option = null, $duration = 0)
@@ -916,7 +916,7 @@ class databox_field implements cache_cacheableInterface
/**
* Part of the cache_cacheableInterface
*
* @param string $option
* @param string $option
* @return caption_field
*/
public function delete_data_from_cache($option = null)

View File

@@ -49,7 +49,7 @@ class databox_status
/**
*
* @param int $sbas_id
* @param int $sbas_id
* @return status
*/
private function __construct($sbas_id)
@@ -411,7 +411,7 @@ class databox_status
$switch = in_array($switch, array('on', 'off')) ? $switch : false;
if ( ! $switch){
if ( ! $switch) {
throw new Exception_InvalidArgument();
}

View File

@@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/
use MediaAlchemyst\Specification\Specification;
use Alchemy\Phrasea\Media\Subdef\Image;
use Alchemy\Phrasea\Media\Subdef\Audio;
use Alchemy\Phrasea\Media\Subdef\Video;
@@ -60,7 +59,7 @@ class databox_subdef
/**
*
* @param SimpleXMLElement $sd
* @param SimpleXMLElement $sd
* @return databox_subdef
*/
public function __construct(SubdefType $type, SimpleXMLElement $sd)
@@ -286,7 +285,7 @@ class databox_subdef
/**
* Build Image Subdef object depending the SimpleXMLElement
*
* @param SimpleXMLElement $sd
* @param SimpleXMLElement $sd
* @return \Alchemy\Phrasea\Media\Subdef\Video
*/
protected function buildImageSubdef(SimpleXMLElement $sd)
@@ -312,7 +311,7 @@ class databox_subdef
/**
* Build Audio Subdef object depending the SimpleXMLElement
*
* @param SimpleXMLElement $sd
* @param SimpleXMLElement $sd
* @return \Alchemy\Phrasea\Media\Subdef\Video
*/
protected function buildAudioSubdef(SimpleXMLElement $sd)
@@ -323,7 +322,7 @@ class databox_subdef
/**
* Build Flexpaper Subdef object depending the SimpleXMLElement
*
* @param SimpleXMLElement $sd
* @param SimpleXMLElement $sd
* @return \Alchemy\Phrasea\Media\Subdef\Video
*/
protected function buildFlexPaperSubdef(SimpleXMLElement $sd)
@@ -334,7 +333,7 @@ class databox_subdef
/**
* Build GIF Subdef object depending the SimpleXMLElement
*
* @param SimpleXMLElement $sd
* @param SimpleXMLElement $sd
* @return \Alchemy\Phrasea\Media\Subdef\Video
*/
protected function buildGifSubdef(SimpleXMLElement $sd)
@@ -354,7 +353,7 @@ class databox_subdef
/**
* Build Video Subdef object depending the SimpleXMLElement
*
* @param SimpleXMLElement $sd
* @param SimpleXMLElement $sd
* @return \Alchemy\Phrasea\Media\Subdef\Video
*/
protected function buildVideoSubdef(SimpleXMLElement $sd)

View File

@@ -33,7 +33,7 @@ class databox_subdefsStructure implements IteratorAggregate
/**
*
* @param databox $databox
* @param databox $databox
* @return Array
*/
public function __construct(databox &$databox)
@@ -122,8 +122,8 @@ class databox_subdefsStructure implements IteratorAggregate
/**
*
* @param type $subdef_type
* @param type $subdef_name
* @param type $subdef_type
* @param type $subdef_name
* @return databox_subdef
*/
public function get_subdef($subdef_type, $subdef_name)
@@ -136,8 +136,8 @@ class databox_subdefsStructure implements IteratorAggregate
/**
*
* @param string $group
* @param string $name
* @param string $group
* @param string $name
* @return databox_subdefsStructure
*/
public function delete_subdef($group, $name)
@@ -168,9 +168,9 @@ class databox_subdefsStructure implements IteratorAggregate
/**
*
* @param string $group
* @param string $name
* @param string $class
* @param string $group
* @param string $name
* @param string $class
* @return databox_subdefsStructure
*/
public function add_subdef($groupname, $name, $class)
@@ -204,11 +204,11 @@ class databox_subdefsStructure implements IteratorAggregate
/**
*
* @param string $group
* @param string $name
* @param string $class
* @param boolean $downloadable
* @param Array $options
* @param string $group
* @param string $name
* @param string $class
* @param boolean $downloadable
* @param Array $options
* @return databox_subdefsStructure
*/
public function set_subdef($group, $name, $class, $downloadable, $options)