get_poll_info
Utilisation : array get_poll_info (int topicid)
But : Renvoie les informations sur un sondage
Disponible depuis : IPB SDK 0.5
But : Renvoie les informations sur un sondage
Disponible depuis : IPB SDK 0.5
Retourne un tableau avec les informations sur un sondage associé au sujet, topicid.
Si il n'y a pas de vote dans le sujet topicid, FALSE sera retourné.
Les informations seront retournées sous la forme d'un tableau :
Array (
[pid] => 1 // Poll ID
[tid] => 10 // Topic ID
[start_date] => 1051005774 // Date de création du sondage au format UNIX Timestamp
[choices] => Array ( // Liste des choix
[0] => Array (
[option_id] => 0 // Option ID
[option_title] => yes // Titre de l'option
[votes] => 1 // Nombre de votes retourné
[percentage] => 33 // Pourcentage total de votes
)
[1] => Array (
[option_id] => 1
[option_title] => no
[votes] => 1
[percentage] => 33
)
[2] => Array (
[option_id] => 2
[option_title] => definetly not
[votes] => 1
[percentage] => 33
)
)
[starter_id] => 1 // ID du membre qui a créé le sondage
[starter_name] => khlo // Nom du membre qui a créé le sondage
[votes] => 3 // Total de vote retourné
[forum_id] => 1 // ID du forum
[poll_question] => can u wait 4 ipb 1.2? // Question posée
)
[pid] => 1 // Poll ID
[tid] => 10 // Topic ID
[start_date] => 1051005774 // Date de création du sondage au format UNIX Timestamp
[choices] => Array ( // Liste des choix
[0] => Array (
[option_id] => 0 // Option ID
[option_title] => yes // Titre de l'option
[votes] => 1 // Nombre de votes retourné
[percentage] => 33 // Pourcentage total de votes
)
[1] => Array (
[option_id] => 1
[option_title] => no
[votes] => 1
[percentage] => 33
)
[2] => Array (
[option_id] => 2
[option_title] => definetly not
[votes] => 1
[percentage] => 33
)
)
[starter_id] => 1 // ID du membre qui a créé le sondage
[starter_name] => khlo // Nom du membre qui a créé le sondage
[votes] => 3 // Total de vote retourné
[forum_id] => 1 // ID du forum
[poll_question] => can u wait 4 ipb 1.2? // Question posée
)
Contributions utilisateurs
Documentation Générée le Mon, 22 Mar 2004 11:09:49 -0800
Vous trouverez la dernière version (en anglais) sur le site officiel http://ipbsdk.sourceforge.net
Il n'y a pas de contribution d'utilisateurs pour cette page.