dolibarr/htdocs/includes/modules/security/generate/modGeneratePassNone.class.php

94 lines
2.3 KiB
PHP
Raw Normal View History

<?php
2008-10-25 13:33:59 +02:00
/* Copyright (C) 2006-2008 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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.
* or see http://www.gnu.org/
*/
/**
2008-10-25 13:33:59 +02:00
* \file htdocs/includes/modules/security/generate/modGeneratePassNone.class.php
* \ingroup core
* \brief File to manage no password generation.
* \version $Id$
*/
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/security/generate/modules_genpassword.php");
/**
\class modGeneratePassNone
2008-10-25 13:33:59 +02:00
\brief Classe permettant de g<EFBFBD>n<EFBFBD>rer un mot de passe selon r<EFBFBD>gle standard
*/
class modGeneratePassNone extends ModeleGenPassword
{
var $id;
var $length;
var $db;
var $conf;
var $lang;
var $user;
/**
* \brief Constructeur
2008-10-25 13:33:59 +02:00
* \param db Handler d'acc<EFBFBD>s base
* \param conf Handler de conf
* \param lang Handler de langue
2008-10-25 13:33:59 +02:00
* \param user Handler du user connect<EFBFBD>
*/
function modGeneratePassNone($db, $conf, $langs, $user)
{
$this->id = "none";
$this->length = 0;
$this->db=$db;
$this->conf=$conf;
$this->langs=$langs;
$this->user=$user;
}
/**
* \brief Renvoi la description du module
* \return string Texte descripif
*/
function getDescription()
{
2008-10-25 13:33:59 +02:00
global $langs;
return $langs->trans("PasswordGenerationNone");
}
/**
2008-10-25 13:33:59 +02:00
* \brief Renvoie exemple de mot de passe g<EFBFBD>n<EFBFBD>r<EFBFBD> par cette r<EFBFBD>gle
* \return string Exemple
*/
function getExample()
{
return $this->langs->trans("None");
}
/**
2008-10-25 13:33:59 +02:00
* \brief G<EFBFBD>n<EFBFBD>re le mot de passe
* \return string Renvoi mot de passe g<EFBFBD>n<EFBFBD>r<EFBFBD>
*/
function getNewGeneratedPassword()
{
return "";
}
}
?>