dolibarr/htdocs/societe/canvas/default/thirdparty.default.class.php
2010-08-25 17:19:10 +00:00

97 lines
2.4 KiB
PHP

<?php
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
* \file htdocs/societe/canvas/default/thirdparty.default.class.php
* \ingroup thirparty
* \brief Fichier de la classe des tiers par defaut
* \version $Id$
*/
/**
* \class ThirdPartyDefault
* \brief Classe permettant la gestion des tiers par defaut, cette classe surcharge la classe societe
*/
class ThirdPartyDefault extends Societe
{
//! Numero d'erreur Plage 1280-1535
var $errno = 0;
//! Template container
var $tpl = array();
/**
* \brief Constructeur de la classe
* \param DB Handler acces base de donnees
* \param id Id produit (0 par defaut)
*/
function ThirdPartyDefault($DB=0, $id=0, $user=0)
{
$this->db = $DB;
$this->id = $id ;
$this->user = $user;
$this->smarty = 0;
$this->module = "societe";
$this->canvas = "default";
$this->name = "default";
$this->definition = "Canvas des tiers (défaut)";
$this->fieldListName = "thirdparty_default";
$this->next_prev_filter = "canvas='default'";
}
function getTitle()
{
global $langs;
return $langs->trans("ThirdParty");
}
/**
* \brief Lecture des donnees dans la base
* \param id Product id
*/
function fetch($id='', $ref='', $action='')
{
$result = parent::fetch($id);
return $result;
}
/**
* \brief Assigne les valeurs pour les templates
* \param object object
*/
function assign_values($action='')
{
global $conf,$langs;
}
/**
* \brief Fetch datas list
*/
function LoadListDatas($limit, $offset, $sortfield, $sortorder)
{
global $conf, $langs;
$this->list_datas = array();
}
}
?>