Documentation

Event extends BaseController
in package

Events view handler

Table of Contents

$pdo  : mixed
$spotify  : Spotify
$concert  : Concert
__construct()  : mixed
addArtist()  : void
Add artist to concert
addTrack()  : void
Add track to artist's repository of songs
adminView()  : void
Return admin view
artistSearch()  : void
Search for artists on Spotify
createEvent()  : void
Create an event
editEvent()  : void
Modify an event
get()  : void
Handle all GET requests
post()  : void
Handle all POST requests
removeArtist()  : void
Remove artist from concert
removeTrack()  : void
Remove track from an artist tracklist
trackSearch()  : void
Search for tracks on Spotify
initializeSession()  : void
Initialize session
isLoggedIn()  : bool
Check if admin is logged in
createConcert()  : void
Create concert
findConcert()  : bool
Check if concert exists and is active
generateColor()  : string
Generate a hex color
generateRandomHex()  : string
Generate random hex
getAllArtists()  : array<string|int, Artist>
Get all artists for a concert
getArtist()  : Artist|null
Get artist from concert

Properties

Methods

__construct()

public __construct() : mixed
Return values
mixed

addArtist()

Add artist to concert

public addArtist() : void
Return values
void

addTrack()

Add track to artist's repository of songs

public addTrack() : void
Return values
void

adminView()

Return admin view

public adminView() : void
Return values
void

artistSearch()

Search for artists on Spotify

public artistSearch() : void
Return values
void

createEvent()

Create an event

public createEvent() : void
Return values
void

editEvent()

Modify an event

public editEvent() : void
Return values
void

get()

Handle all GET requests

public get() : void
Return values
void

post()

Handle all POST requests

public post() : void
Return values
void

removeArtist()

Remove artist from concert

public removeArtist() : void
Return values
void

removeTrack()

Remove track from an artist tracklist

public removeTrack() : void
Return values
void

trackSearch()

Search for tracks on Spotify

public trackSearch() : void
Return values
void

initializeSession()

Initialize session

protected initializeSession() : void
Return values
void

isLoggedIn()

Check if admin is logged in

protected isLoggedIn() : bool
Return values
bool

createConcert()

Create concert

private createConcert(Concert $concert) : void
Parameters
$concert : Concert
Return values
void

findConcert()

Check if concert exists and is active

private findConcert() : bool
Return values
bool

generateColor()

Generate a hex color

private generateColor() : string
Return values
string

generateRandomHex()

Generate random hex

private generateRandomHex() : string
Return values
string

getAllArtists()

Get all artists for a concert

private getAllArtists() : array<string|int, Artist>
Return values
array<string|int, Artist>

getArtist()

Get artist from concert

private getArtist() : Artist|null
Return values
Artist|null

Search results