Copyright 2009-2016 Horde LLC (http://www.horde.org/)
저자: Michael J. Rubinsky (mrubinsk@horde.org)
상속: extends Horde_Core_Tagger
예제 #1
0
파일: TopTags.php 프로젝트: DSNS-LAB/Dmail
 /**
  * Imple handler.
  *
  * @param Horde_Variables $vars  A variables object.
  *
  * @return stdClass  The top 10 most popular tags for the current user.
  */
 protected function _handle(Horde_Variables $vars)
 {
     $tagger = new Trean_Tagger();
     $result = new stdClass();
     $result->tags = array();
     $tags = $tagger->getCloud($GLOBALS['registry']->getAuth(), 10, true);
     foreach ($tags as $tag) {
         $results->tags[] = $tag['tag_name'];
     }
     return $results;
 }
예제 #2
0
 /**
  */
 protected function _handleAutoCompleter($input)
 {
     $tagger = new Trean_Tagger();
     return array_values($tagger->listTags($input));
 }