This commit is contained in:
Frédéric FRANCE 2019-12-11 20:33:58 +01:00
parent b59d93c8d7
commit c98ab917dd
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
7 changed files with 61 additions and 69 deletions

View File

@ -87,12 +87,9 @@ if ($action != 'create' && $action != 'edit')
} }
/* ************************************************************************** */ /*
/* */ * Creation of an optional field
/* Creation of an optional field */
/* */
/* ************************************************************************** */
if ($action == 'create') if ($action == 'create')
{ {
print '<br><div id="newattrib"></div>'; print '<br><div id="newattrib"></div>';
@ -101,11 +98,9 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php'; require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
} }
/* ************************************************************************** */ /*
/* */ * Edition of an optional field
/* Edition of an optional field */ */
/* */
/* ************************************************************************** */
if ($action == 'edit' && ! empty($attrname)) if ($action == 'edit' && ! empty($attrname))
{ {
print "<br>"; print "<br>";

View File

@ -587,8 +587,8 @@ if (!empty($conf->global->SHIPPABLE_ORDER_ICON_IN_LIST)) {
print '</a></td>'; print '</a></td>';
print '</tr>'; print '</tr>';
/* Seems to be not so used. So kept hidden for the moment to avoid dangerous options inflation.
/* /*
// Seems to be not so used. So kept hidden for the moment to avoid dangerous options inflation.
// Ask for payment bank during order // Ask for payment bank during order
if ($conf->banque->enabled) if ($conf->banque->enabled)
{ {

View File

@ -132,24 +132,21 @@ foreach ($modulesdir as $dir)
$classname = ucfirst($classname); $classname = ucfirst($classname);
require_once $dir_part.$file_searched; require_once $dir_part.$file_searched;
if (class_exists($classname)) // if (class_exists($classname))
{ // {
dol_syslog("Found API classname=".$classname); // dol_syslog("Found API classname=".$classname);
$api->r->addAPIClass($classname,''); // $api->r->addAPIClass($classname,'');
// require_once DOL_DOCUMENT_ROOT.'/includes/restler/framework/Luracast/Restler/Routes.php';
// $tmpclass = new ReflectionClass($classname);
// try {
// $classMetadata = CommentParser::parse($tmpclass->getDocComment());
// } catch (Exception $e) {
// throw new RestException(500, "Error while parsing comments of `$classname` class. " . $e->getMessage());
// }
/* // //$listofapis[]=array('classname'=>$classname, 'fullpath'=>$file_searched);
require_once DOL_DOCUMENT_ROOT.'/includes/restler/framework/Luracast/Restler/Routes.php'; // }
$tmpclass = new ReflectionClass($classname);
try {
$classMetadata = CommentParser::parse($tmpclass->getDocComment());
} catch (Exception $e) {
throw new RestException(500, "Error while parsing comments of `$classname` class. " . $e->getMessage());
}*/
//$listofapis[]=array('classname'=>$classname, 'fullpath'=>$file_searched);
/* }
}*/ }*/
} }
} }
@ -160,7 +157,7 @@ foreach ($modulesdir as $dir)
} }
//var_dump($listofapis); //var_dump($listofapis);
$listofapis = Routes::toArray(); // TODO api for "status" is lost here $listofapis = Routes::toArray(); // @todo api for "status" is lost here
//var_dump($listofapis); //var_dump($listofapis);

View File

@ -85,11 +85,11 @@ if ($action != 'create' && $action != 'edit')
} }
/* ************************************************************************** */ /*
/* */ *
/* Creation of an optional field */ * Creation of an optional field
/* */ *
/* ************************************************************************** */ */
if ($action == 'create') if ($action == 'create')
{ {
@ -99,11 +99,11 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php'; require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
} }
/* ************************************************************************** */ /*
/* */ *
/* Edition of an optional field */ * Edition of an optional field
/* */ *
/* ************************************************************************** */ */
if ($action == 'edit' && ! empty($attrname)) if ($action == 'edit' && ! empty($attrname))
{ {
$langs->load("members"); $langs->load("members");

View File

@ -86,11 +86,11 @@ if ($action != 'create' && $action != 'edit')
} }
/* ************************************************************************** */ /*
/* */ *
/* Creation of an optional field */ * Creation of an optional field
/* */ *
/* ************************************************************************** */ */
if ($action == 'create') if ($action == 'create')
{ {
@ -100,11 +100,11 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php'; require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
} }
/* ************************************************************************** */ /*
/* */ *
/* Edition of an optional field */ * Edition of an optional field
/* */ *
/* ************************************************************************** */ */
if ($action == 'edit' && ! empty($attrname)) if ($action == 'edit' && ! empty($attrname))
{ {
$langs->load("members"); $langs->load("members");

View File

@ -86,11 +86,11 @@ if ($action != 'create' && $action != 'edit')
} }
/* ************************************************************************** */ /*
/* */ *
/* Creation d'un champ optionnel * Creation d'un champ optionnel
/* */ *
/* ************************************************************************** */ */
if ($action == 'create') if ($action == 'create')
{ {
@ -100,11 +100,11 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php'; require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
} }
/* ************************************************************************** */ /*
/* */ *
/* Edition d'un champ optionnel */ * Edition d'un champ optionnel
/* */ *
/* ************************************************************************** */ */
if ($action == 'edit' && ! empty($attrname)) if ($action == 'edit' && ! empty($attrname))
{ {
print "<br>"; print "<br>";

View File

@ -86,11 +86,11 @@ if ($action != 'create' && $action != 'edit')
} }
/* ************************************************************************** */ /*
/* */ *
/* Creation d'un champ optionnel * Creation d'un champ optionnel
/* */ *
/* ************************************************************************** */ */
if ($action == 'create') if ($action == 'create')
{ {
@ -100,11 +100,11 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php'; require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
} }
/* ************************************************************************** */ /*
/* */ *
/* Edition d'un champ optionnel */ * Edition d'un champ optionnel
/* */ *
/* ************************************************************************** */ */
if ($action == 'edit' && ! empty($attrname)) if ($action == 'edit' && ! empty($attrname))
{ {
print "<br>"; print "<br>";