| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function init() |
||
| 20 | { |
||
| 21 | foreach (self::$tagCloudItems as $itemArray) { |
||
| 22 | $cloudString = '<a style=\''.$itemArray["style"].'\'>'.$itemArray["ItemName"].'</a>'; |
||
| 23 | } |
||
| 24 | Requirements::javascript("flash/javascript/swfobjectOlder.js"); |
||
| 25 | $customJS = ' |
||
| 26 | var so = new SWFObject("themes/massolution/images/tagcloud.swf", "tagcloud", "400", "300", "7", ""); |
||
| 27 | so.addParam("wmode", "transparent"); |
||
| 28 | so.addVariable("tcolor", "0xffffff"); |
||
| 29 | so.addVariable("tcolor2", "0xacacac"); |
||
| 30 | so.addVariable("mode", "tags"); |
||
| 31 | so.addVariable("distr", "true"); |
||
| 32 | so.addVariable("tspeed", "100"); |
||
| 33 | so.addVariable("tagcloud", "<tags>'.$cloudString.'</tags>"); |
||
| 34 | so.write("'.self::$elementID.'");'; |
||
| 35 | Requirements::customScript($customJS); |
||
| 36 | $doSet = new DataObjectSet(); |
||
| 37 | return $doSet; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.