コード例 #1
0
 function getObject()
 {
     $query = 'SELECT `coupon`.* FROM `' . $this->_table->getTableName() . '` AS `coupon` ';
     $query .= 'WHERE `coupon`.`id` = ' . (int) $this->_id;
     $this->_db->setQuery($query);
     if ($object =& $this->_db->loadObject()) {
         $this->_table->bind($object);
         return $this->_table;
     }
     return parent::getObject();
 }