Code style
Set public and private
This commit is contained in:
parent
5d94c8ddac
commit
a8c5661cb7
@ -22,14 +22,14 @@
|
|||||||
*/
|
*/
|
||||||
class Auth
|
class Auth
|
||||||
{
|
{
|
||||||
var $db;
|
private $db;
|
||||||
|
|
||||||
var $login;
|
private $login;
|
||||||
var $passwd;
|
private $passwd;
|
||||||
|
|
||||||
var $reponse;
|
private $reponse;
|
||||||
|
|
||||||
var $sqlQuery;
|
public $sqlQuery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enter description here ...
|
* Enter description here ...
|
||||||
@ -37,7 +37,7 @@ class Auth
|
|||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function __construct($db)
|
public function __construct($db)
|
||||||
{
|
{
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->reponse(null);
|
$this->reponse(null);
|
||||||
@ -49,7 +49,7 @@ class Auth
|
|||||||
* @param string $aLogin Login
|
* @param string $aLogin Login
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function login($aLogin)
|
public function login($aLogin)
|
||||||
{
|
{
|
||||||
$this->login = $aLogin;
|
$this->login = $aLogin;
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@ class Auth
|
|||||||
* @param string $aReponse Response
|
* @param string $aReponse Response
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function reponse($aReponse)
|
public function reponse($aReponse)
|
||||||
{
|
{
|
||||||
$this->reponse = $aReponse;
|
$this->reponse = $aReponse;
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ class Auth
|
|||||||
* @param string $aPasswd Password
|
* @param string $aPasswd Password
|
||||||
* @return int 0 or 1
|
* @return int 0 or 1
|
||||||
*/
|
*/
|
||||||
function verif($aLogin, $aPasswd)
|
public function verif($aLogin, $aPasswd)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
global $dolibarr_main_authentication,$dolibarr_auto_user;
|
global $dolibarr_main_authentication,$dolibarr_auto_user;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user