|
dolibarr 21.0.4
|
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. | |
| llxHeaderSurvey ($title, $head="", $disablejs=0, $disablehead=0, $arrayofjs=[], $arrayofcss=[], $numsondage='') | |
| Show header for new member. | |
| llxFooterSurvey () | |
| Show footer for new member. | |
| get_server_name () | |
| get_server_name | |
| issetAndNoEmpty ($name, $tableau=null) | |
| Fonction vérifiant l'existance et la valeur non vide d'une clé d'un tableau. | |
| getUrlSondage ($id, $admin=false) | |
| Fonction permettant de générer les URL pour les sondage. | |
| dol_survey_random ($car) | |
| Generate a random id. | |
| ajouter_sondage () | |
| Add a poll. | |
Functions for module.
Definition in file opensurvey.lib.php.
| ajouter_sondage | ( | ) |
Add a poll.
Definition at line 234 of file opensurvey.lib.php.
References dol_buildpath(), dol_print_error(), and dol_survey_random().
| dol_survey_random | ( | $car | ) |
Generate a random id.
| int | $car | Length of string to generate key |
Definition at line 218 of file opensurvey.lib.php.
Referenced by ajouter_sondage().
| get_server_name | ( | ) |
get_server_name
Definition at line 159 of file opensurvey.lib.php.
Referenced by getUrlSondage().
| 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 200 of file opensurvey.lib.php.
References $id, and get_server_name().
| 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<string,null|mixed|mixed[]> | $tableau Array in which searching key ($_POST by default) |
Definition at line 183 of file opensurvey.lib.php.
| llxFooterSurvey | ( | ) |
Show footer for new member.
Definition at line 139 of file opensurvey.lib.php.
References dol_htmloutput_events(), and printCommonFooter().
| 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 |
| string[] | string | $arrayofjs | Array of complementary js files |
| string[] | string | $arrayofcss | Array of complementary css files |
| string | $numsondage | Num survey |
Definition at line 78 of file opensurvey.lib.php.
References $conf, getDolGlobalString(), and top_htmlhead().
| 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 34 of file opensurvey.lib.php.
References $conf, $object, and complete_head_from_modules().