forked from Wavyzz/dolibarr
Uniformize code
This commit is contained in:
@@ -37,11 +37,11 @@ class FormAdmin
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param DoliDB $DB Database handler
|
||||
* @param DoliDB $db Database handler
|
||||
*/
|
||||
function FormAdmin($DB)
|
||||
function FormAdmin($db)
|
||||
{
|
||||
$this->db = $DB;
|
||||
$this->db = $db;
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -63,12 +63,14 @@ class FormAdmin
|
||||
|
||||
/**
|
||||
* Return html select list with available languages (key='en_US', value='United States' for example)
|
||||
* @param selected Langue pre-selectionnee
|
||||
* @param htmlname Nom de la zone select
|
||||
* @param showauto Affiche choix auto
|
||||
* @param filter Array of keys to exclude in list
|
||||
* @param showempty Add empty value
|
||||
* @param showwarning Show a warning if language is not complete
|
||||
*
|
||||
* @param string $selected Langue pre-selectionnee
|
||||
* @param string $htmlname Nom de la zone select
|
||||
* @param int $showauto Affiche choix auto
|
||||
* @param array $filter Array of keys to exclude in list
|
||||
* @param int $showempty Add empty value
|
||||
* @param int $showwarning Show a warning if language is not complete
|
||||
* @return string Return HTML select string with list of languages
|
||||
*/
|
||||
function select_language($selected='',$htmlname='lang_id',$showauto=0,$filter=0,$showempty=0,$showwarning=0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user