src/WordpressDatabase.php
public function getTerms($taxonomy) {
		static $table = 'terms';
		$this->_init();
		$taxonomy = $this->_db->real_escape_string($taxonomy);
		$termIds = $this->_query('SELECT term_taxonomy_id FROM '.$this->getTable('term_taxonomy').' WHERE taxonomy = \''.$taxonomy.'\'', 'term_taxonomy_id', true);
		$result = $this->_query('SELECT * FROM '.$this->getTable($table).' WHERE term_id IN ('.implode(',', $termIds).')', 'term_id');
		foreach ($result as &$item) {
			$item[self::HINT]['table'] = $table;
			unset($item);
		}
		return $result;
	}
public function getTerms($taxonomy) {
		static $table = 'terms';
		$this->_init();
		$taxonomy = $this->_db->real_escape_string($taxonomy);
		$termIds = $this->_query('SELECT term_taxonomy_id FROM '.$this->getTable('term_taxonomy').' WHERE taxonomy = \''.$taxonomy.'\'', 'term_taxonomy_id', true);
		$result = $this->_query('SELECT * FROM '.$this->getTable($table).' WHERE term_id IN ('.implode(',', $termIds).')', 'term_id');
		foreach ($result as &$item) {
			$item[self::HINT]['table'] = $table;
			unset($item);
		}
		return $result;
	}
public function getTerms ( $ taxonomy ) { static $ table = 'terms' ; $ this -> _init ( ) ; $ taxonomy = $ this -> _db -> real_escape_string ( $ taxonomy ) ; $ termIds = $ this -> _query ( 'SELECT term_taxonomy_id FROM ' . $ this -> getTable ( 'term_taxonomy' ) . ' WHERE taxonomy = \'' . $ taxonomy . '\'' , 'term_taxonomy_id' , true ) ; $ result = $ this -> _query ( 'SELECT * FROM ' . $ this -> getTable ( $ table ) . ' WHERE term_id IN (' . implode ( ',' , $ termIds ) . ')' , 'term_id' ) ; foreach ( $ result as & $ item ) { $ item [ self :: HINT ] [ 'table' ] = $ table ; unset ( $ item ) ; } return $ result ; }
Get all terms that exist in a taxonomy type. To determine what taxonomy types are available, call 'getTermTypes' and use
one of the names provided.

@return array
Get all terms that exist in a taxonomy type . To determine what taxonomy types are available call getTermTypes and use one of the names provided .