\LobbyApp

Summary

Methods
Properties
Constants
__construct()
init()
getPageContent()
getARResponse()
addStyle()
addScript()
setTitle()
u()
l()
get()
write()
redirect()
inc()
routes()
page()
ar()
onUpdate()
log()
$fs
$router
$manifest
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$fs

$fs : \Lobby\FS

Type

\Lobby\FS — Filesystem object with app's folder as base path

$manifest

$manifest : array

Type

array — App's manifest values

Methods

__construct()

__construct(array  $appInfo = array()) 

Parameters

array $appInfo

Array containing object properties to be set

init()

init() 

Initialize callback

getPageContent()

getPageContent(string  $page) 

Parameters

string $page

Path of requested page

getARResponse()

getARResponse(string  $handler) 

Get response of Asynchronous Request

Parameters

string $handler

Name of the AR handler

addStyle()

addStyle(  $fileName) 

Parameters

$fileName

addScript()

addScript(  $fileName) 

Parameters

$fileName

setTitle()

setTitle(  $title) 

Parameters

$title

u()

u(  $path = null,   $src = false) 

Parameters

$path
$src

l()

l(  $path,   $text = "",   $extra = "") 

Parameters

$path
$text
$extra

get()

get(  $path) 

Parameters

$path

write()

write(  $path,   $content,   $type = "w") 

Parameters

$path
$content
$type

redirect()

redirect(  $path) 

Parameters

$path

inc()

inc(  $path,   $vars = array()) 

Include a page from the app's source

Parameters

$path
$vars

routes()

routes() 

page()

page(  $page) 

Parameters

$page

ar()

ar(string  $handler) : string

Handle Asynchronous Requests

Parameters

string $handler

Handler file path

Returns

string —

Response

onUpdate()

onUpdate(string  $newVersion, string  $oldVersion = null) 

Callback on app install/update

Parameters

string $newVersion

The version to which the app is updated

string $oldVersion

The version from which the app is updated

log()

log(  $msg) 

Write messages to log file

Parameters

$msg