dolibarr  20.0.0-alpha
Functions
opensurvey.lib.php File Reference

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...
 

Detailed Description

Functions for module.

Definition in file opensurvey.lib.php.

Function Documentation

◆ ajouter_sondage()

ajouter_sondage ( )

Add a poll.

Returns
void

Definition at line 233 of file opensurvey.lib.php.

◆ dol_survey_random()

dol_survey_random (   $car)

Generate a random id.

Parameters
int$carLength of string to generate key
Returns
string

Definition at line 217 of file opensurvey.lib.php.

◆ get_server_name()

get_server_name ( )

get_server_name

Returns
string URL to use

Definition at line 158 of file opensurvey.lib.php.

◆ getUrlSondage()

getUrlSondage (   $id,
  $admin = false 
)

Fonction permettant de générer les URL pour les sondage.

Parameters
string$idL'identifiant du sondage
bool$adminTrue pour générer une URL pour l'administration d'un sondage, False pour un URL publique
Returns
string L'url pour le sondage

Definition at line 199 of file opensurvey.lib.php.

◆ issetAndNoEmpty()

issetAndNoEmpty (   $name,
  $tableau = null 
)

Fonction vérifiant l'existance et la valeur non vide d'une clé d'un tableau.

Parameters
string$nameKey to test
array$tableauArray in which searching key ($_POST by default)
Returns
bool True if key exists and return a non empty value

Definition at line 182 of file opensurvey.lib.php.

◆ llxFooterSurvey()

llxFooterSurvey ( )

Show footer for new member.

Returns
void

Definition at line 138 of file opensurvey.lib.php.

◆ llxHeaderSurvey()

llxHeaderSurvey (   $title,
  $head = "",
  $disablejs = 0,
  $disablehead = 0,
  $arrayofjs = [],
  $arrayofcss = [],
  $numsondage = '' 
)

Show header for new member.

Parameters
string$titleTitle
string$headHead array
int$disablejsMore content into html header
int$disableheadMore content into html header
array$arrayofjsArray of complementary js files
array$arrayofcssArray of complementary css files
string$numsondageNum survey
Returns
void

Definition at line 77 of file opensurvey.lib.php.

◆ opensurvey_prepare_head()

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.

Parameters
Opensurveysondage$objectCurrent viewing poll
Returns
array Tabs for the opensurvey section

Definition at line 33 of file opensurvey.lib.php.