[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/plugins/polls/ -> functions.inc (sommaire)

(pas de description)

Poids: 993 lignes (34 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 24 fonctions

  plugin_getmenuitems_polls()
  plugin_commentsupport_polls()
  plugin_savecomment_polls()
  plugin_deletecomment_polls()
  POLLS_countPollsAndVotes()
  plugin_showstats_polls()
  plugin_statssummary_polls()
  plugin_cclabel_polls()
  plugin_getadminoption_polls()
  plugin_user_delete_polls()
  plugin_chkVersion_polls()
  plugin_enablestatechange_polls()
  plugin_uninstall_polls()
  polls_templatePath()
  POLLS_pollVote()
  POLLS_showPoll()
  POLLS_pollResults()
  POLLS_ipAlreadyVoted()
  phpblock_polls()
  plugin_geticon_polls()
  plugin_displaycomment_polls()
  plugin_getListField_polls()
  plugin_templatesetvars_polls()
  plugin_upgrade_polls()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

plugin_getmenuitems_polls()   X-Ref
Returns the items for this plugin that should appear on the main menu

NOTE: this MUST return the url/value pairs in the following format
$<arrayname>[<label>] = <url>


plugin_commentsupport_polls()   X-Ref
Geeklog is checking to see if this plugin supports comments, tell it yes.

NOTE: to support comments you must used the same date/time based ID for your
widget.  In other words, to make primary keys for your plugin you should call
makesid().  Comments are keyed off of that...it is a limitation on how Geeklog
does comments.


plugin_savecomment_polls($title, $comment, $id, $pid, $postmode)   X-Ref
Poll saves a comment

param: string  $type   Plugin to save comment
param: string  $title  comment title
param: string  $comment comment text
param: string  $id     Item id to which $cid belongs
param: int     $pid    comment parent
param: string  $postmode 'html' or 'text'
return: mixed   false for failure, HTML string (redirect?) for success

plugin_deletecomment_polls($cid, $id)   X-Ref
polls: delete a comment

param: int     $cid    Comment to be deleted
param: string  $id     Item id to which $cid belongs
return: mixed   false for failure, HTML string (redirect?) for success

POLLS_countPollsAndVotes()   X-Ref
Helper function: count number of polls and total number of votes

return: array(number of polls, number of votes);

plugin_showstats_polls($showsitestats)   X-Ref
Shows the statistics for the Polls plugin on stats.php.
If $showsitestats is 1 then we are to only print the overall stats in the
'site statistics box' otherwise we show the detailed stats

param: int     showsitestate   Flag to let us know which stats to get

plugin_statssummary_polls()   X-Ref
New stats plugin API function for proper integration with the site stats

return: array(item text, item count);

plugin_cclabel_polls()   X-Ref
This will put an option for polls in the command and control block on
moderation.php


plugin_getadminoption_polls()   X-Ref
returns the administrative option for this plugin


plugin_user_delete_polls($uid)   X-Ref
A user is about to be deleted. Update ownership of any polls owned
by that user or delete them.

param: uid   int   User id of deleted user

plugin_chkVersion_polls()   X-Ref
Return the current version of code.
Used in the Plugin Editor to show the registered version and code version


plugin_enablestatechange_polls($enable)   X-Ref
Geeklog informs us that we're about to be enabled or disabled

param: boolean     $enable     true = we're being enabled, false = disabled
return: void

plugin_uninstall_polls($steps = '')   X-Ref
Removes the datastructures for this plugin from the Geeklog database

This may get called by the install routine to undo anything done to this
point.  To do that, $steps will have a list of steps to undo


polls_templatePath($path = '')   X-Ref
Get path for the template files.

param: string  $path   subdirectory within the base template path
return: string          full path to template directory

POLLS_pollVote( $qid )   X-Ref
Shows a poll form

Shows an HTML formatted poll for the given question ID

param: string      $qid      ID for poll question
return: string  HTML Formatted Poll

POLLS_showPoll( $size, $qid='' )   X-Ref
This shows a poll

This will determine if a user needs to see the poll form OR the poll
result.

param: int        $sise       Size in pixels of poll results
param: string     $qid        Question ID to show (optional)
return: String  HTML Formated string of Poll

POLLS_pollResults( $qid, $scale=400, $order='', $mode='' )   X-Ref
Shows the results of a poll

Shows the poll results for a given poll question

param: string      $qid        ID for poll question to show
param: int         $scale      Size in pixels to scale formatted results to
param: string      $order      'ASC' or 'DESC' for Comment ordering (SQL statment ordering)
param: string      $mode       Comment Mode possible values 'nocomment', 'flat', 'nested', 'threaded'
return: string   HTML Formated Poll Results

POLLS_ipAlreadyVoted( $qid, $ip = '' )   X-Ref
Check if we already have a vote from this IP address

param: string  $qid    Poll ID
param: string  $ip     (optional) IP address
return: boolean         true: IP already voted; false: didn't

phpblock_polls()   X-Ref
Pas de description

plugin_geticon_polls()   X-Ref
Returns the URL of the plugin's icon

return: string      URL of the icon

plugin_displaycomment_polls($id, $cid, $title, $order, $format, $page, $view)   X-Ref
Plugin should display [a] comment[s]

param: string  $id     Unique idenifier for item comment belongs to
param: int     $cid    Comment id to display (possibly including sub-comments)
param: string  $title  Page/comment title
param: string  $order  'ASC' or 'DSC' or blank                            
param: string  $format 'threaded', 'nested', or 'flat'                    
param: int     $page   Page number of comments to display                 
param: boolean $view   True to view comment (by cid), false to display (by $pid)
return: mixed   results of calling the plugin_displaycomment_ function     

plugin_getListField_polls($fieldname, $fieldvalue, $A, $icon_arr)   X-Ref
Pas de description

plugin_templatesetvars_polls($templatename, &$template)   X-Ref
Set template variables

param: string  $templatename   name of template, e.g. 'header'
param: ref     $template       reference of actual template
return: void

plugin_upgrade_polls()   X-Ref
Update the Polls plugin

return: int     Number of message to display (true = generic success msg)



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics