  |
16 | 16 | | function osC_Manufacturer($id) { |
| |
17 | 17 | | global $osC_Database; |
| |
18 | 18 | | |
  |
19 | | - | $Qmanufacturer = $osC_Database->query('select manufacturers_name as name, manufacturers_image as image from :table_manufacturers where manufacturers_id = :manufacturers_id'); |
| |
| 19 | + | $Qmanufacturer = $osC_Database->query('select manufacturers_id as id, manufacturers_name as name, manufacturers_image as image from :table_manufacturers where manufacturers_id = :manufacturers_id'); |
|
20 | 20 | | $Qmanufacturer->bindTable(':table_manufacturers', TABLE_MANUFACTURERS); |
| |
21 | 21 | | $Qmanufacturer->bindInt(':manufacturers_id', $id); |
| |
22 | 22 | | $Qmanufacturer->execute(); |
| |
|
|
 |
… |
|
26 | 26 | | } |
| |
27 | 27 | | } |
| |
28 | 28 | | |
  |
| 29 | + | function getID() { |
| |
| 30 | + | if (isset($this->_data['id'])) { |
| |
| 31 | + | return $this->_data['id']; |
| |
| 32 | + | } |
| |
| 33 | + | |
| |
| 34 | + | return false; |
| |
| 35 | + | } |
| |
| 36 | + | |
  |
29 | 37 | | function getTitle() { |
| |
30 | 38 | | if (isset($this->_data['name'])) { |
| |
31 | 39 | | return $this->_data['name']; |