Skip to content

class Polls

Oliver edited this page Apr 26, 2020 · 2 revisions

www/includes/poll.inc.php


Polls

Package

zorg\Polls

Overview

Public Properties

No public properties found

Constants

No constants found

Public Methods

show() | user_has_vote_permission() |

Methods

show()

Poll anzeigen

public show( $id) : string

Uses \self::user_has_vote_permission()

Tags
  • author: ?
  • author: IneX
  • version: 3.0
  • since: 1.0 function added
  • since: 1.5 04.02.2018 moved Strings used to Global Strings
  • since: 2.0 11.09.2018 fixed SQL-Query (Polls were broken for not-loggedin users)
  • since: 3.0 11.09.2018 fixed @TODO Extract HTML-View into Template-File and use $smarty->display()
  • since: 3.1 19.02.2019 code optimizations, moved function inside class
  • global: object $db Globales Class-Object mit allen MySQL-Methoden
  • global: object $user Globales Class-Object mit den User-Methoden & Variablen

user_has_vote_permission()

Check User Vote-Permissions on Poll

public user_has_vote_permission(string $poll_type) : bool

Tags
  • version: 1.0
  • since: 1.0 function added
  • global: object $user Globales Class-Object mit den User-Methoden & Variablen

\ » Classes » Polls

Clone this wiki locally