dolibarr
20.0.0-alpha
|
Functions for module. More...
Go to the source code of this file.
Functions | |
opensurvey_prepare_head (Opensurveysondage $object) | |
Returns an array with the tabs for the "Opensurvey poll" section It loads tabs from modules looking for the entity Opensurveyso. More... | |
llxHeaderSurvey ($title, $head="", $disablejs=0, $disablehead=0, $arrayofjs=[], $arrayofcss=[], $numsondage='') | |
Show header for new member. More... | |
llxFooterSurvey () | |
Show footer for new member. More... | |
get_server_name () | |
get_server_name More... | |
issetAndNoEmpty ($name, $tableau=null) | |
Fonction vérifiant l'existance et la valeur non vide d'une clé d'un tableau. More... | |
getUrlSondage ($id, $admin=false) | |
Fonction permettant de générer les URL pour les sondage. More... | |
dol_survey_random ($car) | |
Generate a random id. More... | |
ajouter_sondage () | |
Add a poll. More... | |
Functions for module.
Definition in file opensurvey.lib.php.
ajouter_sondage | ( | ) |
dol_survey_random | ( | $car | ) |
Generate a random id.
int | $car | Length of string to generate key |
Definition at line 217 of file opensurvey.lib.php.
get_server_name | ( | ) |
getUrlSondage | ( | $id, | |
$admin = false |
|||
) |
Fonction permettant de générer les URL pour les sondage.
string | $id | L'identifiant du sondage |
bool | $admin | True pour générer une URL pour l'administration d'un sondage, False pour un URL publique |
Definition at line 199 of file opensurvey.lib.php.
issetAndNoEmpty | ( | $name, | |
$tableau = null |
|||
) |
Fonction vérifiant l'existance et la valeur non vide d'une clé d'un tableau.
string | $name | Key to test |
array | $tableau | Array in which searching key ($_POST by default) |
Definition at line 182 of file opensurvey.lib.php.
llxFooterSurvey | ( | ) |
llxHeaderSurvey | ( | $title, | |
$head = "" , |
|||
$disablejs = 0 , |
|||
$disablehead = 0 , |
|||
$arrayofjs = [] , |
|||
$arrayofcss = [] , |
|||
$numsondage = '' |
|||
) |
Show header for new member.
string | $title | Title |
string | $head | Head array |
int | $disablejs | More content into html header |
int | $disablehead | More content into html header |
array | $arrayofjs | Array of complementary js files |
array | $arrayofcss | Array of complementary css files |
string | $numsondage | Num survey |
Definition at line 77 of file opensurvey.lib.php.
opensurvey_prepare_head | ( | Opensurveysondage | $object | ) |
Returns an array with the tabs for the "Opensurvey poll" section It loads tabs from modules looking for the entity Opensurveyso.
Opensurveysondage | $object | Current viewing poll |
Definition at line 33 of file opensurvey.lib.php.