Moved vocabulary to Alchemy namespace

This commit is contained in:
Romain Neutron
2012-01-23 18:18:49 +01:00
parent 7b1e98ce6c
commit a4c103fa42
3 changed files with 238 additions and 193 deletions

View File

@@ -185,7 +185,7 @@ class databox_field implements cache_cacheableInterface
try
{
$this->Vocabulary = databox_Field_VocabularyControl::get($row['VocabularyControlType']);
$this->Vocabulary = \Alchemy\Phrasea\Vocabulary\Controller::get($row['VocabularyControlType']);
$this->VocabularyRestriction = !!$row['RestrictToVocabularyControl'];
}
catch (Exception $e)
@@ -498,7 +498,7 @@ class databox_field implements cache_cacheableInterface
return $this;
}
public function setVocabularyControl(databox_Field_VocabularyControl_Interface $vocabulary = null)
public function setVocabularyControl(\Alchemy\Phrasea\Vocabulary\ControlProvider\ControlProviderInterface $vocabulary = null)
{
$this->Vocabulary = $vocabulary;