public function getTerms($vocabulary_id)
    {
        if (!$data = Cache::get($this->getTaxonomyCacheKey())) {
            $data = $this->cacheTermsForContent();
        }

        if (!is_numeric($vocabulary_id)) {
            $vocabulary_id = T::vocabulary($vocabulary_id);
        }

        $results = new Collection();
        if (array_key_exists($vocabulary_id, $data)) {
            foreach ($data[$vocabulary_id] as $term) {
                $results[] = T::getTerm($term);
            }
        }

        return $results;
    }
public function getTerms($vocabulary_id)
    {
        if (!$data = Cache::get($this->getTaxonomyCacheKey())) {
            $data = $this->cacheTermsForContent();
        }

        if (!is_numeric($vocabulary_id)) {
            $vocabulary_id = T::vocabulary($vocabulary_id);
        }

        $results = new Collection();
        if (array_key_exists($vocabulary_id, $data)) {
            foreach ($data[$vocabulary_id] as $term) {
                $results[] = T::getTerm($term);
            }
        }

        return $results;
    }
public function getTerms ( $ vocabulary_id ) { if ( ! $ data = Cache :: get ( $ this -> getTaxonomyCacheKey ( ) ) ) { $ data = $ this -> cacheTermsForContent ( ) ; } if ( ! is_numeric ( $ vocabulary_id ) ) { $ vocabulary_id = T :: vocabulary ( $ vocabulary_id ) ; } $ results = new Collection ( ) ; if ( array_key_exists ( $ vocabulary_id , $ data ) ) { foreach ( $ data [ $ vocabulary_id ] as $ term ) { $ results [ ] = T :: getTerm ( $ term ) ; } } return $ results ; }
Get the terms from a content

@param  int|string $vocabulary_id
@return Collection
Get the terms from a content