manufacturer.php

来自「this the oscommerce 3.0 aplha 4」· PHP 代码 · 共 56 行

PHP
56
字号
<?php/*  $Id: account.php 207 2005-09-26 01:29:31 +0200 (Mo, 26 Sep 2005) hpdl $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2005 osCommerce  This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License v2 (1991)  as published by the Free Software Foundation.*/  class osC_Manufacturer {    var $_data = array();    function osC_Manufacturer($id) {      global $osC_Database;      $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');      $Qmanufacturer->bindTable(':table_manufacturers', TABLE_MANUFACTURERS);      $Qmanufacturer->bindInt(':manufacturers_id', $id);      $Qmanufacturer->execute();      if ($Qmanufacturer->numberOfRows() === 1) {        $this->_data = $Qmanufacturer->toArray();      }    }    function getID() {      if (isset($this->_data['id'])) {        return $this->_data['id'];      }      return false;    }    function getTitle() {      if (isset($this->_data['name'])) {        return $this->_data['name'];      }      return false;    }    function getImage() {      if (isset($this->_data['image'])) {        return $this->_data['image'];      }      return false;    }  }?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?