db = new DB_Sql(); // $this->debug = true; } /** * Add one new item. * @param string $n Item name * @param string $d Item description * @return integer 1: OK; * <=0: ERROR(to be finished). * @access public */ function add($n, $d) { } /** * Get the item information by its ID. * @param integer $i Item ID * @return integer 1: OK; * <=0: ERROR(to be finished). * @access public */ function get($i) { } /** * Remove the item by its ID. * @param integer $i Item ID * @return integer 1: OK; * <=0: ERROR(to be finished). * @access public */ function del($i) { } /** * Update the item. * @param integer $i Item ID * @param string $n Item name * @param string $d Item description * @return integer 1: OK; * <=0: ERROR(to be finished). * @access public */ function set($i, $n, $d) { } } ?>