\URL

Summary

Methods
Properties
Constants
setup()
generateLink()
generateAPILink()
currentLinkGenerator()
urlParser()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$configjson
$parsedurl
$urlrew
$querydata
N/A

Properties

$configjson

$configjson : 

Config

Type

$parsedurl

$parsedurl : 

Parsed URL data array

Type

$urlrew

$urlrew : 

URL Rewrite status and data store

Type

$querydata

$querydata : 

Type

Methods

setup()

setup() 

Setting up the class, in a static context

generateLink()

generateLink(  $task = 'start',   $pollid = '',   $admincode = '') : \the

Generates a System Link/ URL

Parameters

$task

the task (start is default)

$pollid

the poll (empty string is default)

$admincode

Returns

\the —

url as string

generateAPILink()

generateAPILink(  $task,   $params = array()) : \the

Generates a API Link/ URL

Parameters

$task

the task

$params

params to append array(param => value, ...)

Returns

\the —

url as string

currentLinkGenerator()

currentLinkGenerator(  $params = array()) : \the

Generates the current link Additional params should be parsed by urlParser() into $_GET

Parameters

$params

parameter to append at the end; array( 'param' => 'value' )

Returns

\the —

url as string

urlParser()

urlParser() : \['task'

Parses the current url into an array and additional params into $_GET

Returns

\['task' —

=> task, 'pollid' => pollid or false, 'admincode' => admincode or false]