$cache
$cache : \Battis\HierarchicalSimpleCache
Cache manager
Add HTML templating and basic caching to the ReflexiveCanvasLTI Toolbox
interactiveGetAccessToken(string $reason = null, string $redirectURL = null, string $errorURL = null) : void
Interactively acquire an API access token
/config/canvas/key
and /config/canvas/secret
must be defined in
config.xml
for this to work!
string | $reason | Explanation of why an API access token is necessary |
string | $redirectURL | (Optional, defaults to
|
string | $errorURL | (Optional) URL of page to redirect to on error |
smarty_display(string $template = 'page.tpl', string $cache_id = null, string $compile_id = null, string $parent = null) : void
Display an HTML template
string | $template | (Optional, default |
string | $cache_id | (Optional, default |
string | $compile_id | (Optional, default, |
string | $parent | (Optional, default |
loadConfiguration(string $configFilePath, boolean $forceRecache = false) : void
Update a Toolbox instance from a configuration file
Extends the inherited Toolbox::loadConfiguration()
to add two
additional pieces of configuration metadata:
APP_PATH
is the path to the Tool Provider appAPP_URL
is the URL of the Tool Provider appAlso stores the API access token acquired by interactiveGetAccessToken()
.
string | $configFilePath | |
boolean | $forceRecache | (Optional, default |