Lines Matching refs:cloud
118 $cloud = $this->_getTagCloud($options['max'], $min, $max, $tag);
121 $cloud = $this->_getNamespaceCloud($options['max'], $min, $max);
124 $cloud = $this->_getWordCloud($options['max'], $min, $max);
126 if (!is_array($cloud) || empty($cloud)) return '';
131 foreach ($cloud as $word => $size) {
183 $cloud = array();
189 if ($name['ns'] == '') $cloud[$name['id']] = 100;
191 return $this->_sortCloud($cloud, $num, $min, $max);
210 $cloud = array();
221 $this->_addWordsToCloud($cloud, $idx, $word_idx, $stopwords);
228 $this->_addWordsToCloud($cloud, $idx, $word_idx, $stopwords);
230 return $this->_sortCloud($cloud, $num, $min, $max);
237 function _addWordsToCloud(&$cloud, $idx, $word_idx, &$stopwords) { argument
246 $cloud[$key] = count($value);
256 $cloud = $tag->tagOccurrences(NULL, NULL, true);
257 return $this->_sortCloud($cloud, $num, $min, $max);
264 function _sortCloud($cloud, $num, &$min, &$max) { argument
265 if(empty($cloud)) return;
268 arsort($cloud);
269 $cloud = array_chunk($cloud, $num, true);
270 $max = current($cloud[0]);
271 $min = end($cloud[0]);
272 ksort($cloud[0]);
274 return $cloud[0];