Lines Matching refs:cloud
80 $cloud = $this->_getTagCloud($num, $min, $max, $namespaces, $tag);
85 $cloud = $helper->getSearchWordArray($num);
86 $this->_filterCloud($cloud, 'search_blacklist');
90 foreach ($cloud as $size) {
99 $cloud = $this->_getWordCloud($num, $min, $max);
101 if (!is_array($cloud) || empty($cloud)) return false;
109 foreach ($cloud as $word => $size) {
196 function _filterCloud(&$cloud, $balcklistName) { argument
199 foreach ($cloud as $key => $count) {
201 unset($cloud[$key]);
208 if (isset($cloud[$word]))
209 unset($cloud[$word]);
220 if (isset($cloud[$word]))
221 unset($cloud[$word]);
232 $cloud = array();
242 $this->_addWordsToCloud($cloud, $idx, $word_idx);
249 $this->_addWordsToCloud($cloud, $idx, $word_idx);
252 $this->_filterCloud($cloud, 'word_blacklist');
254 return $this->_sortCloud($cloud, $num, $min, $max);
260 function _addWordsToCloud(&$cloud, $idx, $word_idx) { argument
268 $cloud[$key] = count($value);
276 $cloud = $tag->tagOccurrences([], $namespaces, true, $this->getConf('list_tags_of_subns'));
278 $this->_filterCloud($cloud, 'tag_blacklist');
280 return $this->_sortCloud($cloud, $num, $min, $max);
286 function _sortCloud($cloud, $num, &$min, &$max) { argument
287 if(empty($cloud)) return $cloud;
290 arsort($cloud);
291 $cloud = array_chunk($cloud, $num, true);
292 $max = current($cloud[0]);
293 $min = end($cloud[0]);
294 ksort($cloud[0]);
296 return $cloud[0];