class Api_Interface_Collapsed extends Api_InterfaceAbstract

Constants

API_COLLAPSED

API_LIGHT

API_TEST

Properties

protected $initialized

Methods

static 
setTest(bool $on)

Turns on/off the test mode in API

static 
setLight(bool $on = true)

Turns on/off the light mode in API

static 
instance($type = NULL)

No description

__clone()

No description

init()

Initialized method. This method is to prevent nested construct calls. See VBV-1862

callApi($controller, $method, array $arguments = array(), $useNamedParams = false, $byTemplate = false)

No description

relay($file)

No description

createSession($request, $options)

Handles inializing the vB session

static 
callApiStatic($controller, $method, array $arguments = array())

No description

cacheInstance($type)

No description

stringInstance()

No description

invokeHook($hook_name, $params)

No description

Details

in Api_InterfaceAbstract at line 36
static setTest(bool $on)

Turns on/off the test mode in API

Parameters

bool $on

in Api_InterfaceAbstract at line 45
static setLight(bool $on = true)

Turns on/off the light mode in API

Parameters

bool $on

in Api_InterfaceAbstract at line 50
static instance($type = NULL)

Parameters

$type

in Api_InterfaceAbstract at line 83
__clone()

at line 17
init()

Initialized method. This method is to prevent nested construct calls. See VBV-1862

at line 84
callApi($controller, $method, array $arguments = array(), $useNamedParams = false, $byTemplate = false)

Parameters

$controller
$method
array $arguments
$useNamedParams
$byTemplate

at line 127
relay($file)

Parameters

$file

in Api_InterfaceAbstract at line 128
protected createSession($request, $options)

Handles inializing the vB session

This includes checking for a session cookie, checking the "rememberme" cookie and doing the facebook redirect if rememberme is flagged as "facebook" and we fail to initialize the user (there is a chicken and egg problem with inializing a facebook user since we generate an auth token via JS but that won't run until the user loads a page so we need to fake load a page to make FB work when a user initially hits the site). This only occurs for get requests as we will lose post data in this process.

We also handle updating the rememberme and session cookies as needed.

This does not handle things like updating lastvisit. We want to skip this for the "light" session used for some AJAX calls.

Parameters

$request
$options

at line 117
static callApiStatic($controller, $method, array $arguments = array())

Parameters

$controller
$method
array $arguments

at line 157
cacheInstance($type)

Parameters

$type

at line 162
stringInstance()

at line 167
invokeHook($hook_name, $params)

Parameters

$hook_name
$params