/** * @return TCVM_Product_Model */ public static function GetInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
public function delete($id) { $this->_model->delete(array("id" => $id)); }