FIX : some doc in comment

This commit is contained in:
sparkyx 2024-12-06 17:32:59 +01:00
parent 2b2a21f7b6
commit af9fb3e8c5
6 changed files with 64 additions and 7 deletions

View file

@ -172,7 +172,7 @@ class HttpInput
}
if (!array_key_exists($p_name,$this->array))
{
throw new Exception(_('Paramètre invalide')."[$p_name]",
throw new Exception("C175."._('Paramètre invalide')."[$p_name]",
EXC_PARAM_VALUE);
}
$this->check_type($p_name, $p_type);

View file

@ -23,7 +23,61 @@
/**
* @file
* @brief Display the tabs
*
* @code
* // create TAQ , with a url
$tab = new Html_Tab('tab1',_("Titre 1"));
$tab->set_mode('link');
$tab->set_link("test.php?".
http_build_query([ "gDossier"=>Dossier::id(),
"script"=>"html_tab.test.php",
"a"=>1,
"b"=>2]));
*
// create a TAB and give the content
$tab2 = new Html_Tab('tab2',_("Titre 2"));
$tab2->set_content(""
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2"
. "<br> Très longue chaine HTML pour 2");
$tab3 = new Html_Tab('tab3',_("Titre 3"));
$tab3->set_content('<p >'
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
. "<br> Très longue chaine HTML pour 3"
.'</p>'
);
$output = new Output_Html_Tab;
$output->add($tab);
$output->add($tab2);
$output->add($tab3);
// show all the TABS
$output->output();
*
* @endcode
*/
/**