Changeset 301 for dev/common/includes/class.item.php
- Timestamp:
- 12/27/07 12:02:37 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/class.item.php
r299 r301 67 67 { 68 68 $this->execQuery(); 69 70 // if item has no slot get the slot from parent item 71 if ($this->row_['itt_slot'] == 0) 72 { 73 $qry = new DBQuery(); 74 $query = "select itt_slot from kb3_item_types 75 inner join kb3_dgmtypeattributes d 76 where itt_id = d.value 77 and d.typeID = ".$this->row_['typeID']." 78 and d.attributeID in (137,602);"; 79 $qry->execute($query); 80 $row = $qry->getRow(); 81 return $row['itt_slot']; 82 } 69 83 return $this->row_['itt_slot']; 70 84 } 71 85 72 86 function execQuery() 73 87 { … … 156 170 $this->id_ = $row['itm_id']; 157 171 } 158 172 173 159 174 function get_item_id($name) 160 175 { … … 175 190 } 176 191 192 function get_used_launcher_group($name) 193 { 194 $qry = new DBQuery(); 195 // I dont think CCP will change this attribute in near future ;-) 196 $query = "SELECT value 197 FROM kb3_dgmtypeattributes d 198 INNER JOIN kb3_invtypes i ON i.typeID = d.typeID 199 WHERE i.typeName = '".slashfix($name)."' AND d.attributeID IN (137,602);"; 200 $qry->execute($query); 201 $row = $qry->getRow(); 202 return $row['value']; 203 } 204 177 205 function get_group_id($name) 178 206 {