Changeset 6893 for extensions/ColorStat/cstat_rb_callback.class.inc.php
- Timestamp:
- Sep 13, 2010, 8:48:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ColorStat/cstat_rb_callback.class.inc.php
r6210 r6893 23 23 24 24 /** 25 * the getImageId returns the name of the image id attribute 26 * return String 27 */ 28 static public function getImageId() 29 { 30 return("pci.image_id"); 31 } 32 33 /** 25 34 * the getSelect function must return an attribute list separated with a comma 26 35 * … … 60 69 } 61 70 62 $colors= split(',', $param['colors']);71 $colors=explode(',', $param['colors']); 63 72 if(count($colors)>0) 64 73 { … … 66 75 { 67 76 if($returned!='') $returned.=" ".$param['mode']." "; 68 $returned.=" pci. colors LIKE '%".trim($val)."%'";77 $returned.=" pci.analyzed='y' AND pci.colors LIKE '%".trim($val)."%'"; 69 78 } 70 79 } … … 87 96 88 97 98 /** 99 * the getFilter function must return a ready to use where clause 100 * this where clause is used to filter the cache when the used tables can 101 * return more than one result 102 * 103 * the filter can be empty, can be equal to the where clause, or can be equal 104 * to a sub part of the where clause 105 * 106 */ 107 static public function getFilter($param="") 108 { 109 return(self::getWhere($param)); 110 } 89 111 90 112 /**
Note: See TracChangeset
for help on using the changeset viewer.