Lines Matching refs:tags

47      * Return the user to use for accessing tags
105 * Create or Update tags of a page
111 * @param array $tags
115 public function replaceTags($id, $user, $tags) {
128 foreach ($tags as $tag) {
193 * @param array $tags list of tags => count
198 public function cloudData($tags, $levels = 10) {
199 $min = min($tags);
200 $max = max($tags);
209 foreach ($tags as $tag => $cnt) {
212 $tags[$tag] = $tresh;
215 $tags[$tag] = $levels;
219 return $tags;
225 * @param array $tags list of tags => count
228 * @param bool $wrap wrap cloud in UL tags?
234 public function html_cloud($tags, $type, $func, $wrap = true, $return = false, $ns = '') {
244 if (count($tags) === 0) {
249 $tags = $this->cloudData($tags);
250 foreach ($tags as $val => $size) {
251 // skip hidden tags for users that can't edit
332 $tags = $this->findItems($filter, 'tag');
337 $ret .= $this->html_cloud($tags, 'tag', array($this, 'linkToSearch'), true, true);
353 $tags = $this->findItems(array(
357 $form->addTextarea('tagging[tags]')
358 ->val(implode(', ', array_keys($tags)))
415 * Get all pages with tags and their tags
421 SELECT pid, GROUP_CONCAT(tag) AS tags
431 array_column($db->res2arr($res), 'tags', 'pid')
450 // enable splitting tags on rename
457 // non-admins can rename only their own tags
474 // insert new tags first
490 // finally delete the renamed tags
554 * @param array $tags
557 public function deleteTags($tags, $namespace = '') {
558 if (empty($tags)) {
567 implode(' OR ', array_fill(0, count($tags), 'CLEANTAG(tag) = ?')) . ')';
568 $args = array_map(array($this, 'cleanTag'), $tags);
571 // non-admins can delete only their own tags
584 msg(sprintf($this->getLang("admin deleted"), count($tags), $numAffectedPages), 1);
601 * Updates tags with a new page name
612 * Extracts tags from search query
619 $tags = [];
621 $tags = $parsedQuery['phrases'];
623 $tags = $parsedQuery['and'];
626 $tags[] = $parsedQuery['tag'];
628 return $tags;
658 * Syntax to allow users to manage tags on regular pages, respects ACLs
734 $tags = $this->getAllTags($INPUT->str('filter'), $order_by, $desc, $filters);
818 foreach ($tags as $taginfo) {
896 $this->getLang('admin tags') .
900 $html .= '<tr><td>' . $row['pid'] . '</td><td>' . $row['tags'] . '</td></tr>';
1012 GROUP_CONCAT(CLEANTAG("tag")) AS "tags"