Class: Telll

Telll

new Telll(config)

Implements the telll controler
Parameters:
Name Type Description
config Object the configuration
Author:
  • Monsenhor filipo at kobkob.org
Source:

Methods

auth(trkm) → {null}

Parameters:
Name Type Description
trkm
Source:
Returns:
Type
null

createMovie(data)

Parameters:
Name Type Description
data
Source:
Returns:
bool
Parameters:
Name Type Description
data
Source:
Returns:
bool

createTrackmotion(data)

Parameters:
Name Type Description
data
Source:
Returns:
bool

createUser(userId)

Parameters:
Name Type Description
userId
Source:
Returns:
bool

deleteMovie(data, cb)

Delete movie
Parameters:
Name Type Description
data SerializedArray from dashboard movie form
cb callback function
Source:
Returns:
bool
Delete photolink
Parameters:
Name Type Description
id
cb callback function
Source:
Returns:
bool

deleteTrackmotion(id, cb)

Delete trackmotion
Parameters:
Name Type Description
id
cb callback function
Source:
Returns:
bool

deleteUser(data, cb)

Delete user
Parameters:
Name Type Description
data SerializedArray from dashboard movie form
cb callback function
Source:
Returns:
bool

getCookie(cname) → {null}

Parameters:
Name Type Description
cname
Source:
Returns:
Type
null

getDevice() → {null}

Retrieve the device. If
Source:
Returns:
Type
null

getMovie(movieId, cb)

Load movieId in this.movie forward the callback to Movie.read()
Parameters:
Name Type Description
movieId
cb callback
Source:
Returns:
bool
Begin the websocket or long poling wait for photolinks
Parameters:
Name Type Description
cb function callback
Source:
Returns:
Type
null

getPhotolinksOfMovie(movieId, cb) → {Movie}

Parameters:
Name Type Description
movieId
cb callback
Source:
Returns:
Type
Movie

getPhotolinksOfUser(userId, from, cb)

Parameters:
Name Type Description
userId int
from date
cb function callback
Source:
Returns:
bool

getTrackmotion(trackmotionId, cb)

Load trackmotionId in this.trackmotion forward the callback to Trackmotion.read()
Parameters:
Name Type Description
trackmotionId
cb callback
Source:
Returns:
bool

getTrackms(trkId) → {null}

Parameters:
Name Type Description
trkId
Source:
Returns:
Type
null

getTracks(id, cb) → {null}

Parameters:
Name Type Description
id Integer
cb Callback
Source:
Returns:
Type
null

getUser(userId)

Parameters:
Name Type Description
userId
Source:
Returns:
bool

listMovies(data) → {null}

Parameters:
Name Type Description
data
Source:
Returns:
Type
null
Parameters:
Name Type Description
data
Source:
Returns:
Type
null

loadWidgets()

Telll.loadWidgets()
Source:
Returns:
bool

login(data)

Telll.login()
Parameters:
Name Type Description
data
Source:
Returns:
bool Construct the login machine. - login widget - donut if still authorized

logout(data)

Telll.logout()
Parameters:
Name Type Description
data
Source:
Returns:
bool

readMovie(data)

Parameters:
Name Type Description
data
Source:
Returns:
bool
Parameters:
Name Type Description
data
Source:
Returns:
bool

readTrackmotion(data)

Parameters:
Name Type Description
data
Source:
Returns:
bool

saveMovie(data, cb)

Save movie data from form
Parameters:
Name Type Description
data SerializedArray from dashboard movie form
cb callback function
Source:
Returns:
bool
save photolink
Parameters:
Name Type Description
data Object the photolink data to be saved
cb function callback function
Source:
Returns:
bool

saveTrackmotion(data, cb)

Save trackmotion data from form
Parameters:
Name Type Description
data SerializedArray from dashboard trackmotion form
cb callback function
Source:
Returns:
bool

saveUser(data, cb)

Save user data from form
Parameters:
Name Type Description
data SerializedArray from dashboard movie form
cb callback function
Source:
Returns:
bool
Parameters:
Name Type Description
data
Source:
Returns:
Type
null

setCookie(cname, cvalue, extime)

Parameters:
Name Type Description
cname
cvalue
extime
Source:
Returns:
string

showClickbox(data)

Telll.showClickbox()
Parameters:
Name Type Description
data
Source:
Returns:
bool

showDashboard(data, cb)

Telll.showDashboard()
Parameters:
Name Type Description
data Object Add-ons and fields to be included
cb function callback
Source:
Returns:
bool

showMockPlayer() → {null}

Source:
Listens to Events:
  • event:MockPlayer
Returns:
Type
null

showMoviePage(movie, cb) → {MoviePage}

MoviePage is a modal widget showing the movie details and the link to play
Parameters:
Name Type Description
movie Movie the movie to load
cb function callback
Source:
Returns:
the MoviePage object
Type
MoviePage

showMoviePlayer() → {null}

Source:
Returns:
Type
null

showMoviesList() → {null}

MoviesList is a modal widget showing a mosaic of movie thumbnails with title and description. When a movie is selected it is assigned to telll.movie and is sent to the callback
Source:
Returns:
Type
null
Source:
Returns:
the PhotolinksList View
Type
iView

showTagPlayer(player) → {null}

Parameters:
Name Type Description
player iPlayer The movie Player must be a iPlayer
Source:
Returns:
Type
null

showTelllBtn(trkm) → {null}

Parameters:
Name Type Description
trkm
Source:
Returns:
Type
null

showVimeoPlayer() → {null}

Source:
Returns:
Type
null

showYoutubePlayer() → {null}

Source:
Returns:
Type
null

start() → {null}

Source:
Returns:
Type
null

syncPlayer(tagPlayer, moviePlayer)

Telll.syncPlayer()
Parameters:
Name Type Description
tagPlayer
moviePlayer
Source:
Returns:
bool

updateMovie(data)

Parameters:
Name Type Description
data
Source:
Returns:
bool
Parameters:
Name Type Description
data
Source:
Returns:
bool

updateTrackmotion(data)

Parameters:
Name Type Description
data
Source:
Returns:
bool

updateUser(userId)

Parameters:
Name Type Description
userId
Source:
Returns:
bool

wsAuth(data)

Telll.wsAuth()
Parameters:
Name Type Description
data
Source:
Returns:
bool