/** * Fetch Tag vocabulary * @return AM_Model_Db_Application */ public function fetchVocabularyTag() { $oVocabularyTable = AM_Model_Db_Table_Abstract::factory('vocabulary'); /* @var $oVocabularyTable AM_Model_Db_Table_Vocabulary */ $this->_oVocabularyTag = $oVocabularyTable->findOneBy(array('has_hierarchy' => 0, 'multiple' => 1, 'application' => $this->id)); if (empty($this->_oVocabularyTag)) { //Create tag vocabulary $this->_oVocabularyTag = $oVocabularyTable->createTagVocabulary($this); } $this->_oVocabularyTag->fetchTags(); return $this; }