3 namespace Friendica\Model;
5 use Friendica\BaseObject;
6 use Friendica\Database\DBA;
9 * Model for DB specific logic for the search entity
11 class Search extends BaseObject
14 * Returns the list of user defined tags (e.g. #Friendica)
20 public static function getUserTags()
22 $termsStmt = DBA::p("SELECT DISTINCT(`term`) FROM `search`");
26 while ($term = DBA::fetch($termsStmt)) {
27 $tags[] = trim($term['term'], '#');