A
Access — Class in namespace Tsugi\Blob
$ConfigInfo #apphome — Property in class ConfigInfo
The Application URL when Tsugi is part of an application $ConfigInfo #autoapprovekeys — Property in class ConfigInfo
$ConfigInfo #adminpw — Property in class ConfigInfo
This is the PW that you need to access the Administration features of this application. $ConfigInfo #analytics_key — Property in class ConfigInfo
Configure analytics for this Tsugi instance. $ConfigInfo #analytics_name — Property in class ConfigInfo
Analytics — Class in namespace Tsugi\Controllers
Activity — Class in namespace Tsugi\Core
Activity utilities Annotate — Class in namespace Tsugi\Core
Our class to handle annotation storage ContentItem ::allowMultiple () — Method in class ContentItem
allowMultiple - Returns true if we can return multiple items ContentItem ::allowLtiLinkItem () — Method in class ContentItem
allowLtiLinkItem - Returns true if we can return LTI Link Items ContentItem ::allowLink () — Method in class ContentItem
allowLink - Returns true if we can return URLs ContentItem ::allowContentItem () — Method in class ContentItem
allowContentItem - Returns true if we can return HTML Items ContentItem ::allowImportItem () — Method in class ContentItem
allowImportItem - Returns true if we can return Common Cartridges LTIX ::adjustData () — Method in class LTIX
Make sure that the data in our lti_ tables matches the POST data LTIX ::abort_with_error_log () — Method in class LTIX
We are aborting this request. If this is a launch, redirect back $Link #activity — Property in class Link
The count of the overall activity on this link at the moment of launch $Tool #analytics — Property in class Tool
$User #admin — Property in class User
Is the user an administrator? Aes — Class in namespace Tsugi\Crypt
AesCtr — Class in namespace Tsugi\Crypt
AesOpenSSL — Class in namespace Tsugi\Crypt
$GoogleLogin #access_token — Property in class GoogleLogin
$GoogleLogin #authentication_object — Property in class GoogleLogin
Png ::addOrReplaceTextInPng () — Method in class Png
Png ::addPngChunk () — Method in class Png
Application — Class in namespace Tsugi\Lumen
The Tsugi variant of a Lumen Application OAuthServer ::add_signature_method () — Method in class OAuthServer
TrivialOAuthDataStore ::add_consumer () — Method in class TrivialOAuthDataStore
Analytics — Class in namespace Tsugi\UI
Our class to show analytics Annotate — Class in namespace Tsugi\UI
Our class to handle annotation markup $Lessons #anchor — Property in class Lessons
Lessons ::adjustArray () — Method in class Lessons
Make non-array into an array and adjust paths Lessons ::absolute_url_ref () — Method in class Lessons
Menu ::add () — Method in class Menu
Add an entry to the menu Menu ::addLink () — Method in class Menu
Add an link to the menu Menu ::addSeparator () — Method in class Menu
Add a separator to the menu $MenuEntry #attr — Property in class MenuEntry
Extra attributes MenuSet ::addLeft () — Method in class MenuSet
Add an entty to the Left Menu MenuSet ::addRight () — Method in class MenuSet
Add an entty to the Right Menu Output ::adjust_theme () — Method in class Output
Adjust the theme from various places based on the following low-to-high precedence SettingsDialog ::attr () — Method in class SettingsDialog
Return the attributes to add to a tag to connect to activate the settings modal SettingsForm ::attr () — Method in class SettingsForm
Return the attributes to add to a tag to connect to activate the settings modal $Topics #anchor — Property in class Topics
Topics ::adjustArray () — Method in class Topics
Make non-array into an array and adjust paths CC ::add_module () — Method in class CC
Adds a module to the manifest CC ::add_sub_module () — Method in class CC
Adds a sub module to a module CC ::add_web_link () — Method in class CC
CC ::add_topic () — Method in class CC
CC ::add_lti_link () — Method in class CC
Add an LTI link resource item CC ::add_resource_item () — Method in class CC
Add a resource to the manifest. ContentItem ::allowMultiple () — Method in class ContentItem
allowMultiple - Returns true if we can return LTI Link Items ContentItem ::allowLtiLinkItem () — Method in class ContentItem
allowLtiLinkItem - Returns true if we can return LTI Link Items ContentItem ::allowLink () — Method in class ContentItem
allowLink - Returns true if we can return HTML Items ContentItem ::allowContentItem () — Method in class ContentItem
allowContentItem - Returns true if we can return HTML Items ContentItem ::allowImportItem () — Method in class ContentItem
allowImportItem - Returns true if we can return IMS Common Cartridges ContentItem ::addLtiLinkItem () — Method in class ContentItem
addLtiLinkItem - Add an LTI Link Content Item ContentItem ::addLtiLinkItemExtended () — Method in class ContentItem
addLtiLinkItemExtended - Add an LTI Link Content Item ContentItem ::addContentItem () — Method in class ContentItem
addContentItem - Add an Content Item ContentItem ::addContentItemExtended () — Method in class ContentItem
addContentItemExtended - Add an Content Item ContentItem ::addFileItem () — Method in class ContentItem
addFileItem - Add an File Item DeepLinkRequest ::allowMimetype () — Method in class DeepLinkRequest
allowMimetype - Returns true if we can return LTI Link Items DeepLinkRequest ::allowMultiple () — Method in class DeepLinkRequest
allowMultiple - Returns true if we can return multiple items DeepLinkRequest ::acceptType () — Method in class DeepLinkRequest
acceptType - Returns true if the string is in the accept_types DeepLinkRequest ::allowLtiLinkItem () — Method in class DeepLinkRequest
allowLtiLinkItem - Returns true if we can return LTI Link Items
"accept_types": ["link", "file", "html", "ltiResourceLink", "image"], DeepLinkRequest ::allowContentItem () — Method in class DeepLinkRequest
allowContentItem - Returns true if we can return HTML Items DeepLinkRequest ::allowLink () — Method in class DeepLinkRequest
allowLink - Returns true if we can return HTML Items DeepLinkRequest ::allowImportItem () — Method in class DeepLinkRequest
allowImportItem - Returns true if we can return IMS Common Cartridges DeepLinkResponse ::addLtiLinkItem () — Method in class DeepLinkResponse
addLtiLinkItem - Add an LTI Link Deep Link DeepLinkResponse ::addLtiLinkItemExtended () — Method in class DeepLinkResponse
addLtiLinkItemExtended - Add an LTI Link Content Item DeepLinkResponse ::addContentItem () — Method in class DeepLinkResponse
addContentItem - Add an Content Item DeepLinkResponse ::addContentItemExtended () — Method in class DeepLinkResponse
addContentItemExtended - Add an Content Item DeepLinkResponse ::addFileItem () — Method in class DeepLinkResponse
addFileItem - Add an File Item GitRepo ::add () — Method in class GitRepo
Runs a git add
call GitRepo ::active_branch () — Method in class GitRepo
Returns name of active branch GitRepo ::add_tag () — Method in class GitRepo
Add a new tag on the current position LTI ::addCustom () — Method in class LTI
LinkHeader ::all () — Method in class LinkHeader
get all items LinkHeader ::add () — Method in class LinkHeader
add a LinkHeaderItem. TsugiDOM ::add_child () — Method in class TsugiDOM
TsugiDOM ::add_child_ns () — Method in class TsugiDOM
U ::addSession () — Method in class U
U ::add_url_parm () — Method in class U
U ::absolute_url_ref () — Method in class U
U ::absolute_url () — Method in class U
U ::apache_request_headers () — Method in class U
U ::array_Integer_Serialize () — Method in class U
Tightly serialize an integer-only PHP array U ::array_Integer_Serialize_Map () — Method in class U
U ::array_Integer_Deserialize () — Method in class U
Deserialize an tightly serialized integer-only PHP array U ::array_kshift () — Method in class U
Pull off the first element of a key/value array U ::allow_track () — Method in class U
U ::apcAvailable () — Method in class U
Return if APC cache is available (Deprecated) U ::apcuAvailable () — Method in class U
Return if APCU cache is available U ::appCacheGet () — Method in class U
U ::appCacheSet () — Method in class U
U ::appCacheDelete () — Method in class U
B
BlobUtil — Class in namespace Tsugi\Blob
BlobUtil ::blob2blob () — Method in class BlobUtil
Check and migrate a blob from blob_file to blob_blob BlobUtil ::blob2file () — Method in class BlobUtil
Check and migrate a blob to its corresponding file $ConfigInfo #branch_override — Property in class ConfigInfo
$ConfigInfo #bootswatch — Property in class ConfigInfo
$ConfigInfo #bootswatch_color — Property in class ConfigInfo
$ConfigInfo #badge_encrypt_password — Property in class ConfigInfo
Badge generation settings - once you start issuing badges - don't change these $ConfigInfo #badge_assert_salt — Property in class ConfigInfo
$ConfigInfo #badge_path — Property in class ConfigInfo
$ConfigInfo #badge_url — Property in class ConfigInfo
Keyset ::build_jwk () — Method in class Keyset
LTIX ::buildLaunch () — Method in class LTIX
$Launch #base_string — Property in class Launch
Get the base string from the launch. $Entry #buckets — Property in class Entry
The buckets key->value $OAuthRequest #base_string — Property in class OAuthRequest
OAuthRequest ::build_signature () — Method in class OAuthRequest
OAuthSignatureMethod_HMAC_SHA1 ::build_signature () — Method in class OAuthSignatureMethod_HMAC_SHA1
OAuthSignatureMethod_HMAC_SHA256 ::build_signature () — Method in class OAuthSignatureMethod_HMAC_SHA256
OAuthSignatureMethod_PLAINTEXT ::build_signature () — Method in class OAuthSignatureMethod_PLAINTEXT
OAuthSignatureMethod_RSA_SHA1 ::build_signature () — Method in class OAuthSignatureMethod_RSA_SHA1
OAuthUtil ::build_http_query () — Method in class OAuthUtil
Analytics ::button () — Method in class Analytics
Emit a properly styled "settings" button $Output #buffer — Property in class Output
Output ::bodyStart () — Method in class Output
Finish the head and start the body of a Tsugi HTML page. SettingsDialog ::buttonText () — Method in class SettingsDialog
Emit a properly styled "settings" button SettingsDialog ::button () — Method in class SettingsDialog
Emit a properly styled "settings" button SettingsForm ::buttonText () — Method in class SettingsForm
Emit a properly styled "settings" button SettingsForm ::button () — Method in class SettingsForm
Emit a properly styled "settings" button $Git #bin — Property in class Git
Git executable location $GitRepo #bare — Property in class GitRepo
LTI ::bodyRequest () — Method in class LTI
LTI13 ::base_jwt () — Method in class LTI13
Build up a basic JWT LTI13 ::build_jwt_html () — Method in class LTI13
Build an HTML form to submit a JWT Mimeparse ::best_match () — Method in class Mimeparse
Takes a list of supported mime-types and finds the best match
for all the media-ranges listed in header. The value of header
must be a string that conforms to the format of the HTTP Accept:
header. The value of supported is an Enumerable of mime-types Net ::bodySocket () — Method in class Net
Net ::bodyStream () — Method in class Net
Net ::bodyCurl () — Method in class Net
C
BlobUtil ::checkFileSafety () — Method in class BlobUtil
ConfigInfo — Class in namespace Tsugi\Config
A class that contains the configuration fields and defaults. $ConfigInfo #cookiesecret — Property in class ConfigInfo
Configure the long-term login cookie encryption values. $ConfigInfo #cookiename — Property in class ConfigInfo
$ConfigInfo #cookiepad — Property in class ConfigInfo
$ConfigInfo #context_title — Property in class ConfigInfo
$ConfigInfo #certification — Property in class ConfigInfo
Profile ::checkbox () — Method in class Profile
Cache — Class in namespace Tsugi\Core
A very simple Cache - currently implemented in session Cache ::check () — Method in class Cache
Check and return a value from the cache. Cache ::clear () — Method in class Cache
Delete an entry from the cache. ContentItem — Class in namespace Tsugi\Core
This is a ContentItem class with Tsugi-specific convienences. Context — Class in namespace Tsugi\Core
This is a class to provide access to the resource context level data. Context ::createLineItem () — Method in class Context
Create a lineitem in the LMS Debug ::clear () — Method in class Debug
LTIX ::caliperSend () — Method in class LTIX
Send a Caliper Body to the correct URL using the key and secret LTIX ::curPageUrl () — Method in class LTIX
curPageUrl - Returns the URL to the currently executing script with query string LTIX ::curPageUrlNoQuery () — Method in class LTIX
curPageUrlNoQuery - Returns the URL to the currently executing query without query string LTIX ::curPageUrlFolder () — Method in class LTIX
curPageUrlFolder - Returns the URL to the folder currently executing LTIX ::curPageUrlScript () — Method in class LTIX
curPageUrlScript - Returns the URL to the currently executing script LTIX ::curPageUrlBase () — Method in class LTIX
curPageUrlBase - Returns the protocol, host, and port for the current URL $Launch #context — Property in class Launch
Get the Context associated with the launch. $Launch #current_url — Property in class Launch
Must be a string that is the current called URL. Mail ::computeCheck () — Method in class Mail
Tool ::canvasToolRegistration () — Method in class Tool
Tool ::canvasStoreRegistration () — Method in class Tool
Aes ::cipher () — Method in class Aes
AES Cipher function: encrypt 'input' with Rijndael algorithm SecureCookie ::create () — Method in class SecureCookie
Entry ::click () — Method in class Entry
Record a click. $GoogleLogin #client_id — Property in class GoogleLogin
$GoogleLogin #client_secret — Property in class GoogleLogin
GoogleLogin ::curl_post () — Method in class GoogleLogin
Utility code in order not to have external dependencies
and to have some logging. GoogleLogin ::curl_get () — Method in class GoogleLogin
Utility code in order not to have external dependencies
and to have some logging. $OAuthConsumer #callback_url — Property in class OAuthConsumer
OAuthSignatureMethod ::check_signature () — Method in class OAuthSignatureMethod
OAuthSignatureMethod_RSA_SHA1 ::check_signature () — Method in class OAuthSignatureMethod_RSA_SHA1
CrudForm — Class in namespace Tsugi\UI
This is a class that supports the creation of simple CRUD forms. Output ::closeButton () — Method in class Output
Emit a properly styled close button for use in own popup Output ::closeMenuSet () — Method in class Output
SettingsDialog ::color () — Method in class SettingsDialog
Handle a settings color box SettingsDialog ::checkbox () — Method in class SettingsDialog
Handle a settings checkbox SettingsForm ::checkbox () — Method in class SettingsForm
Handle a settings checkbox $Topics #course — Property in class Topics
The course object CC — Class in namespace Tsugi\Util
This class allows us to produce an IMS Common Cartridge Version 1.2 CC_LTI_Outcome — Class in namespace Tsugi\Util
CC_Topic — Class in namespace Tsugi\Util
CC_WebLink — Class in namespace Tsugi\Util
Caliper — Class in namespace Tsugi\Util
This is a general purpose LTI class with no Tsugi-specific dependencies. Color — Class in namespace Tsugi\Util
ContentItem — Class in namespace Tsugi\Util
This is a general purpose ContentItem class with no Tsugi-specific dependencies. $DeepLinkRequest #claim — Property in class DeepLinkRequest
FileRouter ::cwd () — Method in class FileRouter
Gives the current folder of the executing script Git ::create () — Method in class Git
Create a new git repository Git ::clone_remote () — Method in class Git
Clones a remote repo into a directory and then returns a GitRepo object
for the newly created local repo GitRepo ::create_new () — Method in class GitRepo
Create a new git repository GitRepo ::commit () — Method in class GitRepo
Runs a git commit
call GitRepo ::clone_to () — Method in class GitRepo
Runs a git clone
call to clone the current repository
into a different directory GitRepo ::clone_from () — Method in class GitRepo
Runs a git clone
call to clone a different repository
into the current repository GitRepo ::clone_remote () — Method in class GitRepo
Runs a git clone
call to clone a remote repository
into the current repository GitRepo ::clean () — Method in class GitRepo
Runs a git clean
call GitRepo ::create_branch () — Method in class GitRepo
Runs a git branch
call GitRepo ::checkout () — Method in class GitRepo
Runs a git checkout
call LTI ::compareBaseStrings () — Method in class LTI
LTI13 ::createLineItem () — Method in class LTI13
Create a lineitem in the LMS LTI13 ::cleanup_PKCS8 () — Method in class LTI13
Cleanup common mess-ups in PKCS8 strings LTI13 ::checkLTI11Transition () — Method in class LTI13
Check the OAuth signature for an LTI 1.3 Launch JWT LTI13 ::compute_HMAC_SHA256 () — Method in class LTI13
Compute the HMAC256 of a string (part of LTI 1.1 Transition) $TsugiDOM #currentNamespace — Property in class TsugiDOM
U ::conservativeUrl () — Method in class U
U ::curPHPUrl () — Method in class U
Return the URL as seen by PHP (no query string or parameters) U ::conversion_time () — Method in class U
Give the current time in the "conversion format" U ::createGUID () — Method in class U
Create a unique GUID
return string UrlRouter ::cwd () — Method in class UrlRouter
Gives the current folder of the executing script D
BlobUtil ::deleteBlob () — Method in class BlobUtil
Delete a blob based on its id $ConfigInfo #dbuser — Property in class ConfigInfo
Database user for the PDO connection $ConfigInfo #dbpass — Property in class ConfigInfo
Database password for the PDO connection $ConfigInfo #dbprefix — Property in class ConfigInfo
A prefix to prepend to all table names. $ConfigInfo #DEVELOPER — Property in class ConfigInfo
Enable developer features of the application. $ConfigInfo #dirroot — Property in class ConfigInfo
Top level file system folder for the application $ConfigInfo #dataroot — Property in class ConfigInfo
Configure where TSUGI will store uploaded files. $ConfigInfo #defaultmenu — Property in class ConfigInfo
A default menu for pages $ConfigInfo #dbversion — Property in class ConfigInfo
Context ::deleteLineItem () — Method in class Context
Delete a lineitem from the LMS Debug — Class in namespace Tsugi\Core
This is a place holder. Other than dumpPost() it needs a bit of work. Debug ::dump () — Method in class Debug
Debug ::dumpPost () — Method in class Debug
Dump out the contents of the $_POST properly escaped in pre tags. DeepLinkResponse — Class in namespace Tsugi\Core
This is a general purpose DeepLink class with no Tsugi-specific dependencies. LTIX ::decrypt_secret () — Method in class LTIX
Decrypt a secret from the session LTIX ::displayNameFromClaim () — Method in class LTIX
Get a display name from a LTI 1.3 user claim $Launch #deeplink — Property in class Launch
The deeplink url, if any Launch ::documentTarget () — Method in class Launch
Return the document target
The value for this property MUST be one of: frame, iframe, or window. $Roster #data — Property in class Roster
$User #displayname — Property in class User
The user's display name WebSocket ::decodeToken () — Method in class WebSocket
Decode and parse a token to make sure it is valid AesCtr ::decrypt () — Method in class AesCtr
Decrypt a text encrypted by AES in counter mode of operation AesOpenSSL ::decrypt () — Method in class AesOpenSSL
Decrypt a text encrypted by AES in counter mode of operation SecureCookie ::decrypt () — Method in class SecureCookie
SecureCookie ::delete () — Method in class SecureCookie
Entry ::deSerialize () — Method in class Entry
De-Serialize scale, timestart and buckets (can be compressed) GoogleClassroom ::destroy_instructor_token () — Method in class GoogleClassroom
JWT ::decode () — Method in class JWT
$OAuthServer #data_store — Property in class OAuthServer
Output ::doAnalytics () — Method in class Output
Output ::defaultMenuSet () — Method in class Output
Output ::dumpDebugArray () — Method in class Output
Dump a debug array with messages and optional detail Output ::doRedirect () — Method in class Output
Redirect to a local URL, adding session if necessary Output ::displaySize () — Method in class Output
SettingsDialog ::dueDate () — Method in class SettingsDialog
Emit the text and form fields to support due dates SettingsDialog ::done () — Method in class SettingsDialog
Emit the text and form fields to support the done option SettingsForm ::dueDate () — Method in class SettingsForm
Emit the text and form fields to support due dates SettingsForm ::done () — Method in class SettingsForm
Emit the text and form fields to support the done option $Table #DEFAULT_PAGE_LENGTH — Property in class Table
Table ::doForm () — Method in class Table
Table ::doUrl () — Method in class Table
$Theme #dark_mode — Property in class Theme
Theme ::defaults () — Method in class Theme
Get default theme values from a configured theme or the actual defaults Theme ::deriveTsugiColors () — Method in class Theme
Derive a range of named colors from a single base color DeepLinkRequest — Class in namespace Tsugi\Util
This is a general purpose DeepLinkRequest class DeepLinkResponse — Class in namespace Tsugi\Util
This is a general purpose DeepLink class with no Tsugi-specific dependencies. GitRepo ::delete_branch () — Method in class GitRepo
Runs a git branch -[d|D]
call KVS ::delete () — Method in class KVS
LTI13 ::dump_jwt () — Method in class LTI13
Print out the contents of the JWT LTI13 ::deleteLineItem () — Method in class LTI13
Delete a lineitem from the LMS Net ::doGet () — Method in class Net
Net ::doBody () — Method in class Net
TsugiDOM ::delete_tag () — Method in class TsugiDOM
TsugiDOM ::delete_tag_ns () — Method in class TsugiDOM
TsugiDOM ::delete_children () — Method in class TsugiDOM
TsugiDOM ::delete_children_ns () — Method in class TsugiDOM
TsugiDOM ::dump_dom_list () — Method in class TsugiDOM
TsugiDOM ::dump_dom_node () — Method in class TsugiDOM
TsugiDOM ::dump_dom_levels () — Method in class TsugiDOM
U ::die_with_error_log () — Method in class U
U ::displaySize () — Method in class U
E
BlobUtil ::emptyPostSessionLost () — Method in class BlobUtil
Check to see if the $_POST is completely broken in file upload
Sometimes, if the maxUpload_SIZE is exceeded, it deletes all of $_POST
and we lose our session. BlobUtil ::emptyPost () — Method in class BlobUtil
Check to see if the $_POST is completely broken in file upload
Sometimes, if the maxUpload_SIZE is exceeded, it deletes all of $_POST $ConfigInfo #extensions — Property in class ConfigInfo
Extensions $ConfigInfo #eventcheck — Property in class ConfigInfo
$ConfigInfo #eventtime — Property in class ConfigInfo
$ConfigInfo #eventpushtime — Property in class ConfigInfo
$ConfigInfo #eventpushcount — Property in class ConfigInfo
$ConfigInfo #expire_pii_days — Property in class ConfigInfo
The defaults for data expiration. Data expiration is not done by default, but can
be triggered in the Tsugi Admin UI or via a php CLI program. $ConfigInfo #expire_user_days — Property in class ConfigInfo
$ConfigInfo #expire_context_days — Property in class ConfigInfo
$ConfigInfo #expire_tenant_days — Property in class ConfigInfo
Cache ::expires () — Method in class Cache
Check when value in the cache expires $Context #ENTITY_NAME — Property in class Context
Entity — Class in namespace Tsugi\Core
This is a class holding commmon functionality to be extended by various other classes. $Key #ENTITY_NAME — Property in class Key
$Keyset #expire — Property in class Keyset
LTIX ::encrypt_secret () — Method in class LTIX
Encrypt a secret to put into the session LTIX ::extractPost () — Method in class LTIX
Pull the LTI POST data into our own data structure LTIX ::extractJWT () — Method in class LTIX
Pull the LTI JWT data into our own data structure LTIX ::encode_jwt () — Method in class LTIX
encode and sign a JWT with a bunch of parameters $Launch #error_message — Property in class Launch
Get the error message if something went wrong with the setup (TBD) $Link #ENTITY_NAME — Property in class Link
$User #ENTITY_NAME — Property in class User
$User #email — Property in class User
The user's email WebSocket ::enabled () — Method in class WebSocket
Determine if this server is configured for web sockets. AesCtr ::encrypt () — Method in class AesCtr
Encrypt a text using AES encryption in Counter mode of operation
- see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf AesOpenSSL ::encrypt () — Method in class AesOpenSSL
Unicode multi-byte character safe SecureCookie ::encrypt () — Method in class SecureCookie
Utility code to deal with Secure Cookies. SecureCookie ::extract () — Method in class SecureCookie
Entry — Class in namespace Tsugi\Event
A adaptive, multi-scale compressed time series of event counter buckets JWT ::encode () — Method in class JWT
ExceptionHandler — Class in namespace Tsugi\Lumen
Lessons ::expandLink () — Method in class Lessons
MenuSet ::export () — Method in class MenuSet
Export a menu to JSON Output ::exitButton () — Method in class Output
Emit a properly styled done button for use in the launched frame/window Output ::embeddedMenu () — Method in class Output
The embedded menu - for now just one button. Output ::embedYouTube () — Method in class Output
Embed a YouTube video using the standard pattern SettingsDialog ::end () — Method in class SettingsDialog
Finish the form output SettingsForm ::end () — Method in class SettingsForm
Finish the form output $GitRepo #envopts — Property in class GitRepo
KVS ::extractWhere () — Method in class KVS
KVS ::extractOrder () — Method in class KVS
LTI13 ::extract_issuer_key () — Method in class LTI13
Pull out the issuer_key from a JWT LTI13 ::extract_issuer_key_string () — Method in class LTI13
Pull out the composite issuer_key from issuer and audience LTI13 ::extract_access_token () — Method in class LTI13
Extract an access token from returned data LTI13 ::encode_jwt () — Method in class LTI13
Sign and encode a JWT LTI13 ::extractKeyFromKeySet () — Method in class LTI13
Extract a public key from a string containing a JSON keyset $PDOXStatement #ellapsed_time — Property in class PDOXStatement
$PDOXStatement #errorImplode — Property in class PDOXStatement
$PDOXStatement #errorCodeOverride — Property in class PDOXStatement
$PDOXStatement #errorInfoOverride — Property in class PDOXStatement
PDOXStatement ::errorCode () — Method in class PDOXStatement
PDOXStatement ::errorInfo () — Method in class PDOXStatement
PS ::endsWith () — Method in class PS
U ::echo_log () — Method in class U
U ::error_out () — Method in class U
U ::endsWith () — Method in class U
U ::escapeHtml () — Method in class U
Make an htmlentities() that is more tolerant than the PHP 8.2 version. UrlRouter ::execute () — Method in class UrlRouter
F
BlobUtil ::fixFileName () — Method in class BlobUtil
$ConfigInfo #fontawesome — Property in class ConfigInfo
$Launch #for_user — Property in class Launch
Get the "For User" associated with the launch. $User #firstname — Property in class User
The user's first name OAuthRequest ::from_request () — Method in class OAuthRequest
attempt to build up a request from what was passed to the server OAuthRequest ::from_consumer_and_token () — Method in class OAuthRequest
pretty much a helper function to set up the request OAuthServer ::fetch_request_token () — Method in class OAuthServer
process a request_token request
returns the request token on success OAuthServer ::fetch_access_token () — Method in class OAuthServer
process an access_token request
returns the access token on success OAuthSignatureMethod_RSA_SHA1 ::fetch_public_cert () — Method in class OAuthSignatureMethod_RSA_SHA1
OAuthSignatureMethod_RSA_SHA1 ::fetch_private_cert () — Method in class OAuthSignatureMethod_RSA_SHA1
Annotate ::footer () — Method in class Annotate
Define the function tsugiStartAnnotation(id) to start the annotations on a div CrudForm ::fieldToTitle () — Method in class CrudForm
Maps a field name to a presentable title. Lessons ::footer () — Method in class Lessons
Output ::flashMessages () — Method in class Output
Output ::footerStart () — Method in class Output
Output ::footerEnd () — Method in class Output
Output ::footer () — Method in class Output
Theme ::findLMidPointForHue () — Method in class Theme
Take a color and move it along its luminance until it is halfway between
a given dark color and white Topics ::footer () — Method in class Topics
Color ::fixRgb () — Method in class Color
Allow array pr parameter form for RGB FileRouter — Class in namespace Tsugi\Util
Super Simple File Based Router FileRouter ::fileCheck () — Method in class FileRouter
GitRepo ::fetch () — Method in class GitRepo
Runs a git fetch on the current branch HSLuv ::fromRgb () — Method in class HSLuv
HSLuv ::fromRgbInt () — Method in class HSLuv
HSLuv ::fromHex () — Method in class HSLuv
LinkHeader ::fromString () — Method in class LinkHeader
Builds a LinkHeader instance from a string. Mimeparse ::fitness_and_quality_parsed () — Method in class Mimeparse
Find the best match for a given mime-type against a list of
media_ranges that have already been parsed by Mimeparser::parse_media_range() PS ::find () — Method in class PS
G
BlobUtil ::getFolderName () — Method in class BlobUtil
BlobUtil ::getBlobFolder () — Method in class BlobUtil
BlobUtil ::getAccessUrlForBlob () — Method in class BlobUtil
$ConfigInfo #google_translate — Property in class ConfigInfo
Enable Google Translate on this site $ConfigInfo #git_command — Property in class ConfigInfo
Configure git for auto-installation $ConfigInfo #giftquizzes — Property in class ConfigInfo
Path (on disk) to the gift quiz content. $ConfigInfo #google_client_id — Property in class ConfigInfo
$ConfigInfo #google_client_secret — Property in class ConfigInfo
$ConfigInfo #google_map_api_key — Property in class ConfigInfo
$ConfigInfo #google_login_new — Property in class ConfigInfo
$ConfigInfo #google_classroom_secret — Property in class ConfigInfo
Legacy: Google Classroom support - this was an experiment and is no longer supported
First, Go to https://console.developers.google.com/apis/credentials
And add access to "Google Classroom API" to your google_client_id (above) $ConfigInfo #google_classroom_logo — Property in class ConfigInfo
(legacy) This should be an absolute URL that will be used to populate previews
in Google Classroom ConfigInfo ::getExtension () — Method in class ConfigInfo
ConfigInfo ::getCurrentFile () — Method in class ConfigInfo
ConfigInfo ::getScriptFolder () — Method in class ConfigInfo
ConfigInfo ::getCurrentFileUrl () — Method in class ConfigInfo
ConfigInfo ::getLoginUrl () — Method in class ConfigInfo
ConfigInfo ::getPwd () — Method in class ConfigInfo
Get the current working directory of a file ConfigInfo ::getUrlFull () — Method in class ConfigInfo
ConfigInfo ::getScriptPath () — Method in class ConfigInfo
ConfigInfo ::getScriptPathFull () — Method in class ConfigInfo
ConfigInfo ::getScriptName () — Method in class ConfigInfo
Get the name of the script relative to the server document root ConfigInfo ::getCurrentUrl () — Method in class ConfigInfo
Get the current URL we are executing - no query parameters ConfigInfo ::getCurrentUrlFolder () — Method in class ConfigInfo
Get the current folder of the URL we are executing - no trailing slash Analytics ::getAnalytics () — Method in class Analytics
Login ::get () — Method in class Login
Map ::getMap () — Method in class Map
Map ::getjson () — Method in class Map
Profile ::getProfile () — Method in class Profile
ContentItem ::getContentItemSelection () — Method in class ContentItem
Return the parameters to send back to the LMS Context ::getLineItemsToken () — Method in class Context
Wrapper to get line items token so we can add caching Context ::getGradeToken () — Method in class Context
Wrapper to get grade token JsonTrait ::getJson () — Method in class JsonTrait
Load the json field for this entity JsonTrait ::getJsonKeyLegacy () — Method in class JsonTrait
JsonTrait ::getJsonKey () — Method in class JsonTrait
Get a JSON key for this entity Keyset ::getSigning () — Method in class Keyset
Keyset ::getCurrentKeys () — Method in class Keyset
LTIX ::getConnection () — Method in class LTIX
Get a singleton global connection or set it up if not already set up. LTIX ::getBrowserMark () — Method in class LTIX
LTIX ::getPlatformPublicKey () — Method in class LTIX
getPlatformPublicKey - Get the platform public key for the various sources LTIX ::getCompositeKey () — Method in class LTIX
LTIX ::gradeGet () — Method in class LTIX
Load the grade for a particular row and update our local copy (Deprecated - moved to Result) LTIX ::gradeSend () — Method in class LTIX
Send a grade and update our local copy (Deprecated - moved to Result) LTIX ::gradeSendDueDate () — Method in class LTIX
Send a grade applying the due date logic and only increasing grades (Deprecated - moved to Result) LTIX ::getKeySecretForLaunch () — Method in class LTIX
getKeySecretForLaunch - Retrieve a Key/Secret for a Launch LTIX ::getCoreLaunchData () — Method in class LTIX
getCoreLaunchData - Get the launch data common across launch types LTIX ::getLaunchData () — Method in class LTIX
getLaunchData - Get the launch data for a normal LTI 1.x launch LTIX ::getContentItem () — Method in class LTIX
getLaunchData - Get the launch data for am LTI ContentItem launch LTIX ::getLaunchUrl () — Method in class LTIX
getLaunchData - Get the launch data for am LTI ContentItem launch LTIX ::getLaunchContent () — Method in class LTIX
getLaunchContent - Get the launch data for am LTI ContentItem launch LTIX ::getBrowserSignature () — Method in class LTIX
LTIX ::getBrowserSignatureRaw () — Method in class LTIX
LTIX ::getTsugiStateCookieName () — Method in class LTIX
LTIX ::getKidForKey () — Method in class LTIX
Compute the kid has value from a public key LTIX ::getLatestHistoryIds () — Method in class LTIX
Retrieve the context and link ids for a previous installation of the tool, such as
if it were imported from another site during a site import. Returns false, if not. $Link #grade — Property in class Link
The current grade for the user Link ::getPlacementSecret () — Method in class Link
Get the placement secret for this Link $Result #grade — Property in class Result
The current grade for the user Result ::gradeGet () — Method in class Result
Load the grade for a particular row and update our local copy Result ::gradeSendStatic () — Method in class Result
Send a grade and update our local copy Result ::gradeSend () — Method in class Result
Send a grade and update our local copy Result ::gradeSendDueDate () — Method in class Result
Send a grade applying the due date logic and only increasing grades Result ::getJsonForUser () — Method in class Result
Get a JSON for a different user Result ::getJsonKeyForUser () — Method in class Result
Get a JSON key for a result for a different user Result ::getNote () — Method in class Result
Get a Note Settings ::getDebugArray () — Method in class Settings
Retrieve the debug array for the last operation. User ::getNameAndEmail () — Method in class User
Construct the user's name / email combination User ::getFirstName () — Method in class User
Get the user's first name, falling back to email WebSocket ::getPort () — Method in class WebSocket
Returns the port that the configured web socket server WebSocket ::getProxyPort () — Method in class WebSocket
Returns the proxyport if set in config WebSocket ::getHost () — Method in class WebSocket
Returns the host that the configured web socket server WebSocket ::getToken () — Method in class WebSocket
Build and sign a token for a particular link_id WebSocket ::getSpaceFromToken () — Method in class WebSocket
Pull out the host and link_id so as to create the "space" GoogleClassroom — Class in namespace Tsugi\Google
GoogleClassroom ::getClient () — Method in class GoogleClassroom
Returns an authorized Clasroom API client. GoogleClassroom ::gradeSend () — Method in class GoogleClassroom
GoogleLogin — Class in namespace Tsugi\Google
A very simple Google Login GoogleLogin ::getLoginUrl () — Method in class GoogleLogin
Get the login url GoogleLogin ::getAccessToken () — Method in class GoogleLogin
Get the access token GoogleLogin ::getUserInfo () — Method in class GoogleLogin
GradeUtil — Class in namespace Tsugi\Grades
GradeUtil ::gradeLoadAll () — Method in class GradeUtil
GradeUtil ::gradeShowAll () — Method in class GradeUtil
GradeUtil ::gradeLoad () — Method in class GradeUtil
GradeUtil ::gradeShowInfo () — Method in class GradeUtil
GradeUtil ::gradeUpdateJson () — Method in class GradeUtil
UI ::gradeTable () — Method in class UI
OAuthRequest ::get_parameter () — Method in class OAuthRequest
OAuthRequest ::get_parameters () — Method in class OAuthRequest
OAuthRequest ::get_signable_parameters () — Method in class OAuthRequest
The request parameters, sorted and concatenated into a normalized string. OAuthRequest ::get_signature_base_string () — Method in class OAuthRequest
Returns the base string of this request OAuthRequest ::get_normalized_http_method () — Method in class OAuthRequest
just uppercases the http method OAuthRequest ::get_normalized_http_url () — Method in class OAuthRequest
parses the url and rebuilds it to be
scheme://host/path OAuthSignatureMethod_HMAC_SHA1 ::get_name () — Method in class OAuthSignatureMethod_HMAC_SHA1
OAuthSignatureMethod_HMAC_SHA256 ::get_name () — Method in class OAuthSignatureMethod_HMAC_SHA256
OAuthSignatureMethod_PLAINTEXT ::get_name () — Method in class OAuthSignatureMethod_PLAINTEXT
OAuthSignatureMethod_RSA_SHA1 ::get_name () — Method in class OAuthSignatureMethod_RSA_SHA1
OAuthUtil ::get_headers_internal () — Method in class OAuthUtil
OAuthUtil ::get_headers () — Method in class OAuthUtil
Analytics ::graphBody () — Method in class Analytics
Output a Graph Analytics ::graphScript () — Method in class Analytics
Output a Graph Lessons ::getSetting () — Method in class Lessons
get a setting for the lesson Lessons ::getModuleByAnchor () — Method in class Lessons
Get a module associated with an anchor Lessons ::getLtiByRlid () — Method in class Lessons
Get an LTI or Discussion associated with a resource link ID Lessons ::getModuleByRlid () — Method in class Lessons
Get a module associated with a resource link ID Lessons ::getUrlResources () — Method in class Lessons
Lessons ::getCustomWithInherit () — Method in class Lessons
Check if a setting value is in a resource in a Lesson Output ::getUtilUrl () — Method in class Output
getUtilUrl - Get a URL in the utility script space - does not add session Output ::getSpinnerUrl () — Method in class Output
Get a fully-qualified URL for the spinner. Output ::getDefaultIcon () — Method in class Output
Get a fully-qualified URL for the default icon image. Output ::getScreenOverlay () — Method in class Output
Return the text for a full-screen loader Output ::getLocalStatic () — Method in class Output
Gets an absolute static path to the specified file Output ::get_theme () — Method in class Output
Retrieves or generates a theme based on optional specs (base color, dark mode flag). SettingsDialog ::getDueDate () — Method in class SettingsDialog
Get the due data data in an object SettingsDialog ::getDueDateDelta () — Method in class SettingsDialog
Show a due date delta in reasonable units SettingsForm ::getDueDate () — Method in class SettingsForm
Get the due data data in an object SettingsForm ::getDueDateDelta () — Method in class SettingsForm
Show a due date delta in reasonable units Theme ::getLegacyTheme () — Method in class Theme
Topics ::getUrlResources () — Method in class Topics
Topics ::getTopicByAnchor () — Method in class Topics
Get a topic associated with an anchor Topics ::getTopicByRlid () — Method in class Topics
Get a topic associated with a resource link ID Topics ::getLtiByRlid () — Method in class Topics
Get an LTI associated with a resource link ID Topics ::getCustomWithInherit () — Method in class Topics
Check if a setting value is in a resource in a Topic Caliper ::getISO8601 () — Method in class Caliper
Get Caliper-style ISO8601 Datetime from unix timestamp ContentItem ::getContentItemSelection () — Method in class ContentItem
Return the parameters to send back to the LMS DeepLinkRequest ::getClaim () — Method in class DeepLinkRequest
getClaim - get a extension claim DeepLinkResponse ::getContentItemSelection () — Method in class DeepLinkResponse
Return the claims array to send back to the LMS Git — Class in namespace Tsugi\Util
Git Interface Class Git ::get_bin () — Method in class Git
Gets git executable path GitRepo — Class in namespace Tsugi\Util
Git Repository Interface Class GitRepo ::git_directory_path () — Method in class GitRepo
Get the path to the git repo directory (eg. the ".git" directory) GitRepo ::get_description () — Method in class GitRepo
Gets the project description. LTI ::get_string () — Method in class LTI
LTI ::getLastOAuthBodyBaseString () — Method in class LTI
LTI ::getLastOAuthBodyHashInfo () — Method in class LTI
LTI ::getAuthorizationHeader () — Method in class LTI
LTI ::getContentTypeHeader () — Method in class LTI
LTI ::getOAuthKeyFromHeaders () — Method in class LTI
LTI ::getPOXGrade () — Method in class LTI
Retrieve a grade using the LTI 1.1 protocol (POX) LTI ::getPOXGradeRequest () — Method in class LTI
LTI ::getPOXRequest () — Method in class LTI
LTI ::getPOXResponse () — Method in class LTI
LTI ::getContextMemberships () — Method in class LTI
LTI ::getResultJSON () — Method in class LTI
Return an array suitable for sending to the LTI 2.x result_url LTI ::getLtiLinkJSON () — Method in class LTI
getLtiLinkJson - Get a JSON object for an LTI Link Content Item Return LTI13 ::getGradeToken () — Method in class LTI13
Retrieve a grade token LTI13 ::getNRPSToken () — Method in class LTI13
Retrieve a Names and Roles Provisioning Service (NRPS) token LTI13 ::getNRPSWithSourceDidsToken () — Method in class LTI13
Retrieve a Names and Roles Provisioning Service (NRPS) token with source_dids LTI13 ::getLineItemsToken () — Method in class LTI13
Retrieve a LineItems token LTI13 ::get_access_token () — Method in class LTI13
Retrieve an access token LTI13 ::generatePKCS8Pair () — Method in class LTI13
LTI13 ::getLTI11TransitionBase () — Method in class LTI13
Compute the base string for a Launch JWT LinkHeader ::getRel () — Method in class LinkHeader
gets an item for a certain rel LinkHeaderItem ::getUri () — Method in class LinkHeaderItem
Get URI. LinkHeaderItem ::getRel () — Method in class LinkHeaderItem
Get rel attribute LinkHeaderItem ::getAttribute () — Method in class LinkHeaderItem
Get an attribute. Mersenne_Twister ::getNext () — Method in class Mersenne_Twister
Get the next pseudo-random number in the sequence Mersenne_Twister ::gaussian () — Method in class Mersenne_Twister
Net ::getLastGETURL () — Method in class Net
Net ::getLastGETImpl () — Method in class Net
Net ::getLastHeadersSent () — Method in class Net
Net ::getLastHttpResponse () — Method in class Net
Net ::getLastCurlError () — Method in class Net
Net ::getLastHeadersReceived () — Method in class Net
Net ::getLastBODYURL () — Method in class Net
Net ::getLastBODYMethod () — Method in class Net
Net ::getLastBODYImpl () — Method in class Net
Net ::getLastBODYContent () — Method in class Net
Net ::getLastBODYDebug () — Method in class Net
Net ::getStream () — Method in class Net
Net ::getCurl () — Method in class Net
Net ::getBodySentDebug () — Method in class Net
Net ::getBodyReceivedDebug () — Method in class Net
Net ::getGetSentDebug () — Method in class Net
Net ::getGetReceivedDebug () — Method in class Net
Net ::getIP () — Method in class Net
Get the actual IP address of the incoming request. PS ::get () — Method in class PS
TsugiDOM ::get_element () — Method in class TsugiDOM
TsugiDOM ::get_tag () — Method in class TsugiDOM
TsugiDOM ::get_tag_ns () — Method in class TsugiDOM
U ::get () — Method in class U
Produce a Python-style get() to avoid use of ternary operator U ::get_request_document () — Method in class U
Get the last bit of the path U ::get_base_url () — Method in class U
Get the protocol, host, and port from an absolute URL U ::get_rest_path () — Method in class U
Get the path to the current request, w/o trailing slash U ::get_rest_parent () — Method in class U
Get the path to one above the current request, w/o trailing slash U ::goodFolder () — Method in class U
U ::getCaller () — Method in class U
U ::getServerBase () — Method in class U
H
Tool ::handleConfig () — Method in class Tool
Annotate ::header () — Method in class Annotate
Provide the header material to support annotations CrudForm ::handleInsert () — Method in class CrudForm
Insert data from a $_POST of one of our generated forms insert form into the database. CrudForm ::handleUpdate () — Method in class CrudForm
Apply the results of an update form to the database HandleBars — Class in namespace Tsugi\UI
This is a class that suports the HandleBars use cases in Tsugi Lessons ::header () — Method in class Lessons
emit the header material $MenuEntry #href — Property in class MenuEntry
The place to go for a link $MenuSet #home — Property in class MenuSet
The Home Menu Output ::headerJson () — Method in class Output
Set the JSON header Output ::header () — Method in class Output
Start the header material of a normal Tsugi Page Output ::headerData () — Method in class Output
Set the header variables for a Tsugi Page Output ::helpModal () — Method in class Output
Output ::helpButton () — Method in class Output
Output ::handleHeartBeat () — Method in class Output
Handle the heartbeat calls. This is UI code basically. Output ::htmlError () — Method in class Output
SettingsDialog ::handleSettingsPost () — Method in class SettingsDialog
Handle incoming settings post data SettingsForm ::handleSettingsPost () — Method in class SettingsForm
Handle incoming settings post data Theme ::hslToRgb () — Method in class Theme
Topics ::header () — Method in class Topics
emit the header material Color ::hex () — Method in class Color
Convert a RGB to hex HSLuv — Class in namespace Tsugi\Util
Port of HSLuv Color library to PHP by Carlos Cabo. V.2.0.0
Original by Alexei Boronine. https://github.com/hsluv HSLuv ::hsluvToLch () — Method in class HSLuv
HSLuv ::hpluvToLch () — Method in class HSLuv
HSLuv ::hexToRgb () — Method in class HSLuv
HSLuv ::hsluvToRgb () — Method in class HSLuv
HSLuv ::hpluvToRgb () — Method in class HSLuv
LTI ::handleOAuthBodyPOST () — Method in class LTI
LTI13 ::handle_curl_error () — Method in class LTI13
Handle a curl that fails Net ::httpSuccess () — Method in class Net
Return true if the http code is 2xx (success) U ::htmlpre_utf8 () — Method in class U
U ::htmlspec_utf8 () — Method in class U
U ::htmlent_utf8 () — Method in class U
U ::http_response_code () — Method in class U
I
BlobUtil ::isPngOrJpeg () — Method in class BlobUtil
Make sure the contents of this file are a PNG or JPEG BlobUtil ::isTestKey () — Method in class BlobUtil
isTestKey - Indicate if this is a key that is supposed to stay in blob_file $ConfigInfo #install_folder — Property in class ConfigInfo
Indicate which folder to install new modules into. $Context #id — Property in class Context
The integer primary key for this context in the 'lti_context' table. I18N — Class in namespace Tsugi\Core
Some really small, simple, and self-contained utility public static functions $Key #id — Property in class Key
The integer primary key for this context in the 'lti_key' table. Launch ::isLTI13 () — Method in class Launch
Return whether this is an LTI13 launch or not Launch ::isSakai () — Method in class Launch
Indicate if this launch came from Sakai Launch ::isCanvas () — Method in class Launch
Indicate if this launch came from Canvas Launch ::isMoodle () — Method in class Launch
Indicate if this launch came from Moodle Launch ::isCoursera () — Method in class Launch
Indicate if this launch came from Coursera Launch ::isLTIAdvantage () — Method in class Launch
Return a boolean is this is an LTI Advantage launch $Link #id — Property in class Link
The integer primary key for this link in the 'lti_link' table. $Result #id — Property in class Result
The integer primary key for this link in the 'lti_result' table. $Roster #id — Property in class Roster
$User #id — Property in class User
The integer primary key for this user in the 'lti_user' table. $User #image — Property in class User
The User's Image / Avatar $User #instructor — Property in class User
Is the user an instructor? CrudForm ::insertForm () — Method in class CrudForm
Generate the HTML for an insert form. Lessons ::isSingle () — Method in class Lessons
Indicate we are in a single lesson MenuSet ::import () — Method in class MenuSet
Import a menu from JSON $SettingsDialog #instructor_override — Property in class SettingsDialog
SettingsDialog ::instructor () — Method in class SettingsDialog
Check if the current user is an instructor SettingsDialog ::isSettingsPost () — Method in class SettingsDialog
Check for incoming settings post data SettingsForm ::isSettingsPost () — Method in class SettingsForm
Check for incoming settings post data Theme ::isActive () — Method in class Theme
Topics ::isSingle () — Method in class Topics
Indicate we are in a single topic $DeepLinkResponse #items — Property in class DeepLinkResponse
Git ::is_repo () — Method in class Git
Checks if a variable is an instance of GitRepo KVS ::insert () — Method in class KVS
KVS ::insertOrUpdate () — Method in class KVS
LTI ::isRequestCheck () — Method in class LTI
Determines if this is a valid Basic LTI message LTI ::isRequest () — Method in class LTI
Determines if this is a valid Basic LTI message LTI ::isValidMessageType () — Method in class LTI
LTI ::isValidVersion () — Method in class LTI
LTI13 ::isRequestDetail () — Method in class LTI13
Returns true if this is an LTI 1.3 message with minimum values to meet the protocol LTI13 ::isRequest () — Method in class LTI13
Returns true if this is an LTI 1.3 message with minimum values to meet the protocol LTI13 ::isValidMessageType () — Method in class LTI13
Check the incoming message type LTI13 ::isValidVersion () — Method in class LTI13
Check the incoming message version Net ::isRoutable () — Method in class Net
$PS #internal — Property in class PS
U ::isCli () — Method in class U
U ::iso8601 () — Method in class U
U ::isGUIDValid () — Method in class U
U ::isValidCSSColor () — Method in class U
Validate a CSS color value U ::isEmpty () — Method in class U
Determine if a variable is empty U ::isNotEmpty () — Method in class U
Imitate StringUtils.isNotEmpty() U ::isKeyNotEmpty () — Method in class U
Check if a key in an array is not empty J
JsonTrait — Class in namespace Tsugi\Core
This is a class holding convienence methods to access the json column for the core objects. LTIX ::jsonSend () — Method in class LTIX
Send a JSON Body to a URL after looking up the key and secret JWT — Class in namespace Tsugi\Google
JSON Web Token implementation JWT ::jsonDecode () — Method in class JWT
JWT ::jsonEncode () — Method in class JWT
Output ::jsonError () — Method in class Output
Output ::jsonAuthError () — Method in class Output
Output ::jsonOutput () — Method in class Output
Output ::json_encode_string_value () — Method in class Output
$ContentItem #json — Property in class ContentItem
$DeepLinkResponse #json — Property in class DeepLinkResponse
LTI ::jsonIndent () — Method in class LTI
LTI13 ::jonPostel () — Method in class LTI13
Apply Jon Postel's Law as appropriate U ::json_decode () — Method in class U
Build an "always works" json_decode() K
$Context #key — Property in class Context
Key — Class in namespace Tsugi\Core
This is a class to provide access to the resource key level data. $Key #key — Property in class Key
Keyset — Class in namespace Tsugi\Core
$Launch #key — Property in class Launch
Get the User associated with the launch. $User #key — Property in class User
The logical key for this user in the 'lti_user' table. Aes ::keyExpansion () — Method in class Aes
Key expansion for Rijndael cipher(): performs key expansion on cipher key
to generate a key schedule $OAuthConsumer #key — Property in class OAuthConsumer
$OAuthToken #key — Property in class OAuthToken
KVS — Class in namespace Tsugi\Util
$KVS #KVS_TABLE — Property in class KVS
$KVS #KVS_FK_NAME — Property in class KVS
$KVS #KVS_SK_NAME — Property in class KVS
L
$ConfigInfo #lang — Property in class ConfigInfo
$ConfigInfo #launcherror — Property in class ConfigInfo
The path to an LTI-launch error handling page $ConfigInfo #lessons — Property in class ConfigInfo
$ConfigInfo #lumen_storage — Property in class ConfigInfo
Storage location for Lumen Application. $ConfigInfo #launchactivity — Property in class ConfigInfo
$ConfigInfo #login_return_url — Property in class ConfigInfo
$ConfigInfo #logout_return_url — Property in class ConfigInfo
Defaults to $CFG->apphome if defined and $CFG->wwwroot if that is not defined or false $ConfigInfo #loader — Property in class ConfigInfo
The autoloader to be used when loading classes. ConfigInfo ::localhost () — Method in class ConfigInfo
Are we on localhost? Login — Class in namespace Tsugi\Controllers
Logout — Class in namespace Tsugi\Controllers
Annotate ::loadAnnotations () — Method in class Annotate
Load the Annotations Context ::loadNamesAndRoles () — Method in class Context
Load the roster if we can get it from the LMS Context ::loadLineItems () — Method in class Context
Load our lineitems from the LMS Context ::loadLineItem () — Method in class Context
Load the detiail for a lineitem from the LMS Context ::loadResults () — Method in class Context
Load the results for a line item Debug ::log () — Method in class Debug
$Entity #launch — Property in class Entity
A reference to our containing launch LTIX — Class in namespace Tsugi\Core
This an opinionated LTI class that defines how Tsugi tools interact with LTI LTIX ::launchCheck () — Method in class LTIX
Silently check if this is a launch and if so, handle it and redirect
back to ourselves LTIX ::ltiParameter () — Method in class LTIX
Pull a keyed variable from the LTI data in the current session with default LTIX ::ltiRawPostArray () — Method in class LTIX
Return the original $_POST array LTIX ::ltiRawParameter () — Method in class LTIX
Pull a keyed variable from the original LTI post data in the current session with default LTIX ::ltiCustomGet () — Method in class LTIX
Pull out a custom variable from the LTIX session. Do not
include the "custom_" prefix - this is automatic. LTIX ::loadAllData () — Method in class LTIX
Load the data from our lti_ tables using one long LEFT JOIN LTIX ::launchAuthorizationFlow () — Method in class LTIX
Handle the optional LTI pre 1.3 Launch Authorization flow LTIX ::ltiLinkUrl () — Method in class LTIX
ltiLinkUrl - Returns true if we can return LTI Links for this launch LTIX ::loginSecureCookie () — Method in class LTIX
Launch — Class in namespace Tsugi\Core
This captures all of the data associated with the LTI Launch. $Launch #link — Property in class Launch
Get the Link associated with the launch. Launch ::ltiParameterArray () — Method in class Launch
Pull a keyed variable from the LTI data in the current session with default Launch ::ltiParameter () — Method in class Launch
Pull a keyed variable from the LTI data in the current session with default Launch ::ltiParameterUpdate () — Method in class Launch
Update a keyed variable from the LTI data in the current session with default Launch ::ltiRawPostArray () — Method in class Launch
Return the original $_POST array Launch ::ltiRawJWT () — Method in class Launch
Return the original JWT Launch ::ltiRawParameter () — Method in class Launch
Pull a keyed variable from the original LTI post data in the current session with default Launch ::ltiJWTClaim () — Method in class Launch
Pull a claim from the body of the Launch JWT Launch ::ltiMessageType () — Method in class Launch
Return the LTI 1.3 Message Type with Reasonable Fall Backs Launch ::ltiCustomGet () — Method in class Launch
Pull out a custom variable from the LTIX session. Link — Class in namespace Tsugi\Core
This is a class to provide access to the resource link level data. Link ::loadLinkInfo () — Method in class Link
Load link information for a different link than current $Result #lastSendTransport — Property in class Result
The transport used to send the most recent grade. Result ::lookupResultBypass () — Method in class Result
SessionTrait ::ltiRawPostArray () — Method in class SessionTrait
Return the original $_POST array SessionTrait ::ltiParameter () — Method in class SessionTrait
Pull a keyed variable from the original LTI post data in the current session with default SessionTrait ::ltiParameterUpdate () — Method in class SessionTrait
Update a keyed variable from the original LTI post data in the current session with default SessionTrait ::ltiRawParameter () — Method in class SessionTrait
Pull a keyed variable from the original LTI post data in the current session with default SessionTrait ::ltiCustomGet () — Method in class SessionTrait
Pull out a custom variable from the LTIX session. Do not
include the "custom_" prefix - this is automatic. Settings ::linkSetAll () — Method in class Settings
Set all of the the link-level settings. Settings ::linkGetAll () — Method in class Settings
Retrieve an array of all of the link level settings Settings ::linkGet () — Method in class Settings
Retrieve a particular key from the link settings. Settings ::linkSet () — Method in class Settings
Set or update a key to a new value in link settings. Settings ::linkUpdate () — Method in class Settings
Set or update a number of keys to new values in link settings. Tool ::loadRegistration () — Method in class Tool
$User #launch — Property in class User
$User #lastname — Property in class User
The user's last name $User #locale — Property in class User
The User's Locale User ::loadUserInfoBypass () — Method in class User
Load a user's info from the user_id User ::loadUserInfoBypassBySubject () — Method in class User
Load a user's info from the user's subbect AesCtr ::legacyEncrypt () — Method in class AesCtr
$GoogleLogin #last_response — Property in class GoogleLogin
GradeUtil ::loadGradesForCourse () — Method in class GradeUtil
Load all the grades for the current user / course including resource_link_id SimpleGradeDetail ::link () — Method in class SimpleGradeDetail
LTIX — Class in namespace Tsugi\Laravel
This is a class to enable building Laravel Apps using Tsugi LTIX ::laravelSetup () — Method in class LTIX
OAuthDataStore ::lookup_consumer () — Method in class OAuthDataStore
OAuthDataStore ::lookup_token () — Method in class OAuthDataStore
OAuthDataStore ::lookup_nonce () — Method in class OAuthDataStore
TrivialOAuthDataStore ::lookup_consumer () — Method in class TrivialOAuthDataStore
TrivialOAuthDataStore ::lookup_token () — Method in class TrivialOAuthDataStore
TrivialOAuthDataStore ::lookup_nonce () — Method in class TrivialOAuthDataStore
Lessons — Class in namespace Tsugi\UI
$Lessons #lessons — Property in class Lessons
All the lessons $MenuEntry #link — Property in class MenuEntry
The link data $MenuSet #left — Property in class MenuSet
The Left Menu $Output #launch — Property in class Output
A reference to our containing launch SettingsDialog ::link () — Method in class SettingsDialog
Emit a properly styled "settings" link SettingsForm ::link () — Method in class SettingsForm
Emit a properly styled "settings" link Theme ::luminosityPair () — Method in class Theme
Take a color, move a pair of colors outwards towards white and black
until the colors are at least as far apart as $difference $CC #last_type — Property in class CC
$CC #last_file — Property in class CC
$CC #last_identifier — Property in class CC
$CC #last_identifierref — Property in class CC
Color ::luminance () — Method in class Color
Calculate the relative luminance of an RGB color. GitRepo ::list_branches () — Method in class GitRepo
Runs a git branch
call GitRepo ::list_remote_branches () — Method in class GitRepo
Lists remote branches (using git branch -r
). GitRepo ::list_tags () — Method in class GitRepo
List all the available repository tags. GitRepo ::log () — Method in class GitRepo
List log entries. HSLuv ::luvToXyz () — Method in class HSLuv
HSLuv ::luvToLch () — Method in class HSLuv
HSLuv ::lchToLuv () — Method in class HSLuv
HSLuv ::lchToHsluv () — Method in class HSLuv
HSLuv ::lchToHpluv () — Method in class HSLuv
HSLuv ::lchToRgb () — Method in class HSLuv
LTI — Class in namespace Tsugi\Util
This is a general purpose LTI class with no Tsugi-specific dependencies. LTI ::ltiLinkUrl () — Method in class LTI
ltiLinkUrl - Returns true if we can return LTI Links for this launch LTI13 — Class in namespace Tsugi\Util
This is a general purpose LTI 1.3 class with no Tsugi-specific dependencies. LTI13 ::loadNRPS () — Method in class LTI13
Load the memberships and roles if we can get it from the LMS LTI13 ::loadLineItems () — Method in class LTI13
Load our lineitems from the LMS LTI13 ::loadLineItem () — Method in class LTI13
Load the detiail for a lineitem from the LMS LTI13 ::loadResults () — Method in class LTI13
Load the results for a line item LTIConstants — Class in namespace Tsugi\Util
LinkHeader — Class in namespace Tsugi\Util
LinkHeaderItem — Class in namespace Tsugi\Util
PS ::len () — Method in class PS
PS ::lower () — Method in class PS
U ::lti_sha256 () — Method in class U
U ::lmsDie () — Method in class U
U ::line_out () — Method in class U
M
BlobUtil ::mkdirSha256 () — Method in class BlobUtil
BlobUtil ::maxUpload () — Method in class BlobUtil
BlobUtil ::maxUploadBytes () — Method in class BlobUtil
BlobUtil ::migrate () — Method in class BlobUtil
Check and migrate a blob from an old place to the right new place $ConfigInfo #migrateblobs — Property in class ConfigInfo
This turns on auto-migration of blobs from the database to dataroot, as
blobs are accessed $ConfigInfo #maildomain — Property in class ConfigInfo
Configure mail sending. $ConfigInfo #mailsecret — Property in class ConfigInfo
$ConfigInfo #maileol — Property in class ConfigInfo
Map — Class in namespace Tsugi\Controllers
Keyset ::maintain () — Method in class Keyset
Mail — Class in namespace Tsugi\Core
Mail utilities $SQLDialect #marker — Property in class SQLDialect
WebSocket ::makeToken () — Method in class WebSocket
Build a plaintext token for a particular link_id $Entry #maxlen — Property in class Entry
The default maximum length of a serialized set of buckets $Lessons #module — Property in class Lessons
The individual module Lessons ::makeUrlResource () — Method in class Lessons
Menu — Class in namespace Tsugi\UI
Our class to generate menus $Menu #menu — Property in class Menu
The entries - an array of MenuEntry objects MenuEntry — Class in namespace Tsugi\UI
Our class to generate menus MenuSet — Class in namespace Tsugi\UI
Our class to capture a set of top menus Output ::modalString () — Method in class Output
Output ::menuNav () — Method in class Output
Output ::maxCacheHeader () — Method in class Output
Table ::makeUrl () — Method in class Table
Table ::matchColumns () — Method in class Table
Topics ::makeUrlResource () — Method in class Topics
Caliper ::miniCaliper () — Method in class Caliper
Minimal Caliper Event GitRepo ::merge () — Method in class GitRepo
Runs a git merge
call LTI ::mapCustomName () — Method in class LTI
Lower case and turn non letters / numbers into underscores per LTI 1.1 Mersenne_Twister — Class in namespace Tsugi\Util
This provides a deterministic pseudo-random sequence that is seedable Mimeparse — Class in namespace Tsugi\Util
Mimeparser class. This class provides basic functions for handling mime-types. It can
handle matching mime-types against a list of media-ranges. See section
14.1 of the HTTP specification [RFC 2616] for a complete explanation. N
$ConfigInfo #noncecheck — Property in class ConfigInfo
Set the nonce clearing factor $ConfigInfo #noncetime — Property in class ConfigInfo
Set the expiration time for nonces in seconds LTIX ::noteLoggedIn () — Method in class LTIX
Update the login_at fields as appropriate Launch ::newLaunch () — Method in class Launch
set up parameters for an outbound launch from this launch OAuthDataStore ::new_request_token () — Method in class OAuthDataStore
OAuthDataStore ::new_access_token () — Method in class OAuthDataStore
TrivialOAuthDataStore ::new_request_token () — Method in class TrivialOAuthDataStore
TrivialOAuthDataStore ::new_access_token () — Method in class TrivialOAuthDataStore
Lessons ::nostyleUrl () — Method in class Lessons
Lessons ::nostyleLink () — Method in class Lessons
Output ::noCacheHeader () — Method in class Output
Output ::noBuffer () — Method in class Output
SettingsDialog ::number () — Method in class SettingsDialog
Handle a settings number box SettingsForm ::number () — Method in class SettingsForm
Handle a settings number box Topics ::nostyleUrl () — Method in class Topics
Net — Class in namespace Tsugi\Util
This general purpose library for HTTP communications. O
Access ::openContent () — Method in class Access
$ConfigInfo #ownername — Property in class ConfigInfo
Information on the owner of this system $ConfigInfo #owneremail — Property in class ConfigInfo
$ConfigInfo #OFFLINE — Property in class ConfigInfo
Effectively an "airplane mode" for the appliction. Profile ::option () — Method in class Profile
LTIX ::oauth_parameters () — Method in class LTIX
The LTI parameter data $Launch #output — Property in class Launch
Return the output helper class. $GoogleLogin #openid_realm — Property in class GoogleLogin
OAuthConsumer — Class in namespace Tsugi\OAuth
OAuthDataStore — Class in namespace Tsugi\OAuth
OAuthException — Class in namespace Tsugi\OAuth
OAuthRequest — Class in namespace Tsugi\OAuth
OAuthServer — Class in namespace Tsugi\OAuth
OAuthSignatureMethod — Class in namespace Tsugi\OAuth
OAuthSignatureMethod_HMAC_SHA1 — Class in namespace Tsugi\OAuth
OAuthSignatureMethod_HMAC_SHA256 — Class in namespace Tsugi\OAuth
OAuthSignatureMethod_PLAINTEXT — Class in namespace Tsugi\OAuth
OAuthSignatureMethod_RSA_SHA1 — Class in namespace Tsugi\OAuth
OAuthToken — Class in namespace Tsugi\OAuth
OAuthUtil — Class in namespace Tsugi\OAuth
Output — Class in namespace Tsugi\UI
Output ::output_theme_css () — Method in class Output
Git ::open () — Method in class Git
Open an existing git repository P
$ConfigInfo #providekeys — Property in class ConfigInfo
Whether or not we accept key requests on this system $ConfigInfo #pdo — Property in class ConfigInfo
Database connection information to configure the PDO connection $ConfigInfo #pdo_options — Property in class ConfigInfo
Additional parameter for the PDO constructor with an array of key-value options $ConfigInfo #prefer_lti1_for_grade_send — Property in class ConfigInfo
Profile — Class in namespace Tsugi\Controllers
Profile ::postProfile () — Method in class Profile
Activity ::pushCaliperEvents () — Method in class Activity
Send the backlog of caliper events, but don't overrun Activity ::purgeCaliperEvents () — Method in class Activity
Periodic cleanup of broken Caliper events ContentItem ::prepareResponse () — Method in class ContentItem
Make up a response $Context #PRIMARY_KEY — Property in class Context
DeepLinkResponse ::prepareResponse () — Method in class DeepLinkResponse
Make up a response $Key #PRIMARY_KEY — Property in class Key
LTIX ::populateRoster () — Method in class LTIX
populateRoster $Launch #pdox — Property in class Launch
Return the PDOX connection used by Tsugi. $Link #PRIMARY_KEY — Property in class Link
Rest ::preFlight () — Method in class Rest
Preflight a REST request - handle OPTIONS $Result #PRIMARY_KEY — Property in class Result
SQLDialect ::patchDataTypes () — Method in class SQLDialect
SQLDialect ::patchPostgresQuotes () — Method in class SQLDialect
Tool ::patchRegistration () — Method in class Tool
$User #PRIMARY_KEY — Property in class User
Png — Class in namespace Tsugi\Image
This is a set of PNG related libraries Png ::phpTextChunk () — Method in class Png
ExceptionHandler ::pleaseDontReport () — Method in class ExceptionHandler
Indicate an exception that should not be reported $OAuthRequest #POST_INPUT — Property in class OAuthRequest
OAuthUtil ::parse_parameters () — Method in class OAuthUtil
$Lessons #position — Property in class Lessons
Output ::pageTitle () — Method in class Output
Table ::pagedQuery () — Method in class Table
Table ::pagedHeader () — Method in class Table
Table ::pagedTable () — Method in class Table
Table ::pagedAuto () — Method in class Table
GitRepo ::push () — Method in class GitRepo
Push specific branch to a remote GitRepo ::pull () — Method in class GitRepo
Pull specific branch from remote HSLuv ::p_toRgb () — Method in class HSLuv
HSLuv ::p_toHex () — Method in class HSLuv
HSLuv ::p_fromRgb () — Method in class HSLuv
HSLuv ::p_fromHex () — Method in class HSLuv
LTI ::postLaunchHTML () — Method in class LTI
LTI ::parseContextMembershipsResponse () — Method in class LTI
LTI ::parseResponse () — Method in class LTI
LTI13 ::parse_jwt () — Method in class LTI13
Parse and validate a raw JWT Mimeparse ::parse_mime_type () — Method in class Mimeparse
Carves up a mime-type and returns an Array of the [type, subtype, params]
where "params" is a Hash of all the parameters for the media range. Mimeparse ::parse_media_range () — Method in class Mimeparse
Carves up a media range and returns an Array of the
[type, subtype, params] where "params" is a Hash of all
the parameters for the media range. Net ::parseHeaders () — Method in class Net
Extract a set of header lines into an array PDOXStatement — Class in namespace Tsugi\Util
This is our "improved" version of PDOStatement $PDOXStatement #PDOX — Property in class PDOXStatement
PS — Class in namespace Tsugi\Util
An Approximation of a Python String in PHP U ::print_stack_trace () — Method in class U
U ::parse_rest_path () — Method in class U
Get the controller for the current request Q
Mimeparse ::quality_parsed () — Method in class Mimeparse
Find the best match for a given mime-type against a list of
media_ranges that have already been parsed by Mimeparser::parse_media_range() Mimeparse ::quality () — Method in class Mimeparse
Returns the quality "q" of a mime-type when compared against
the media-ranges in ranges. For example: R
BlobUtil ::return_bytes () — Method in class BlobUtil
$ConfigInfo #redis — Property in class ConfigInfo
Adding in support for using Redis for session caching. $ConfigInfo #resource_type_prefix — Property in class ConfigInfo
Prefix for tool registration codes. $ConfigInfo #require_conformance_parameters — Property in class ConfigInfo
Analytics ::routes () — Method in class Analytics
Login ::routes () — Method in class Login
Logout ::routes () — Method in class Logout
Map ::routes () — Method in class Map
Profile ::routes () — Method in class Profile
Profile ::radio () — Method in class Profile
ContentItem ::returnUrl () — Method in class ContentItem
returnUrl - Returns the content_item_return_url LTIX ::requireData () — Method in class LTIX
Handle launch and/or set up the LTI session and global variables LTIX ::requireDataOverride () — Method in class LTIX
Handle the launch, but with the caller given the chance to override defaults LTIX ::restoreLTISession () — Method in class LTIX
Restore an LTI session and check if it worked LTIX ::requireDataPrivate () — Method in class LTIX
Internal method to handle the data setup LTIX ::removeQueryString () — Method in class LTIX
removeQueryString - Drop a query string from a url $Launch #result — Property in class Launch
Get the Result associated with the launch. $Launch #request_parms — Property in class Launch
Must be an array equivalent to $_REQUEST. If this is present
We do not assume access to $_POST or $_GET and we assume
that we cannot use header() so the caller must $Launch #redirect_url — Property in class Launch
If this is non-null when we return, the caller must redirect to a GET of the same URL. Launch ::returnUrl () — Method in class Launch
Return the return Url $Link #result_id — Property in class Link
The result_id for the link (if set) Rest — Class in namespace Tsugi\Core
Helper class for Tsugi REST end points Result — Class in namespace Tsugi\Core
This is a class to provide access to the user's result data. Roster — Class in namespace Tsugi\Core
This is a class to provide access to roster information from a site. Tool ::run () — Method in class Tool
Entry ::reconstruct () — Method in class Entry
Reconstruct to the actual times Entry ::reScale () — Method in class Entry
Double the Scale - Return copy of new buckets GoogleClassroom ::retrieve_instructor_token () — Method in class GoogleClassroom
$GoogleLogin #redirect — Property in class GoogleLogin
Png ::removeTextChunks () — Method in class Png
Application ::resolveExceptionHandler () — Method in class Application
Override the Exception Handler Application ::registerLogBindings () — Method in class Application
Override the log bindings to use the php error log ExceptionHandler ::render () — Method in class ExceptionHandler
Render an exception into an HTTP response. $Lessons #resource_links — Property in class Lessons
Index by resource_link Lessons ::render () — Method in class Lessons
Lessons ::renderSingle () — Method in class Lessons
Lessons ::renderAll () — Method in class Lessons
Lessons ::renderAssignments () — Method in class Lessons
Lessons ::renderBadges () — Method in class Lessons
Lessons ::renderDiscussions () — Method in class Lessons
$MenuSet #right — Property in class MenuSet
The Right Menu Output ::returnMenuSet () — Method in class Output
$SettingsDialog #ready_override — Property in class SettingsDialog
SettingsDialog ::ready () — Method in class SettingsDialog
Check if we are ready to go Theme ::rgbToHsl () — Method in class Theme
$Topics #resource_links — Property in class Topics
Index by resource_link Topics ::render () — Method in class Topics
Topics ::renderSingle () — Method in class Topics
Topics ::renderAll () — Method in class Topics
$CC #resource_count — Property in class CC
Color ::rgb () — Method in class Color
Convert a hex color to RGB. Color ::relativeLuminance () — Method in class Color
Calculate the relative luminance of two colors. ContentItem ::returnUrl () — Method in class ContentItem
returnUrl - Returns the content_item_return_url DeepLinkRequest ::returnUrl () — Method in class DeepLinkRequest
returnUrl - Returns the deep_link_return_url $GitRepo #repo_path — Property in class GitRepo
GitRepo ::run_command () — Method in class GitRepo
Run a command in the git repository GitRepo ::run () — Method in class GitRepo
Run a git command in the git repository GitRepo ::rm () — Method in class GitRepo
Runs a git rm
call HSLuv ::rgbToXyz () — Method in class HSLuv
HSLuv ::rgbToHex () — Method in class HSLuv
HSLuv ::rgbToLch () — Method in class HSLuv
HSLuv ::rgbToHsluv () — Method in class HSLuv
HSLuv ::rgbToHpluv () — Method in class HSLuv
LTI ::replaceResultRequest () — Method in class LTI
LTI13 ::raw_jwt () — Method in class LTI13
Find the JWT in the request data LinkHeader ::removeRel () — Method in class LinkHeader
removes a certain relation PS ::replace () — Method in class PS
PS ::rfind () — Method in class PS
TsugiDOM ::replace_text () — Method in class TsugiDOM
TsugiDOM ::replace_text_ns () — Method in class TsugiDOM
U ::route_get_local_path () — Method in class U
U ::rest_path () — Method in class U
Return a rest-path U ::reconstruct_query () — Method in class U
U ::remove_relative_path () — Method in class U
Remove any relative elements from a path UrlRouter ::route () — Method in class UrlRouter
S
Access ::serveContent () — Method in class Access
Access ::serveContentOld () — Method in class Access
BlobUtil ::safeFileSuffix () — Method in class BlobUtil
BlobUtil ::setBackref () — Method in class BlobUtil
Set the backref for a file entry $ConfigInfo #servicename — Property in class ConfigInfo
This is how the system will refer to itself. $ConfigInfo #servicedesc — Property in class ConfigInfo
This is how the system will describe itself. $ConfigInfo #slow_query — Property in class ConfigInfo
The slow_query setting indicated when we want PDOX to log a query for being too slow. $ConfigInfo #staticroot — Property in class ConfigInfo
Set the URL prefix for the static content folder (i.e. on a CDN) $ConfigInfo #sessionsalt — Property in class ConfigInfo
Configure the security for constructing LTI Launch session IDs $ConfigInfo #storehide — Property in class ConfigInfo
Tools to hide in the store for non-admin users. Each tool sets their status
in their register.php with a line like:
"tool_phase" => "sample",
If this is null, then all tools are shown. $ConfigInfo #sessionlifetime — Property in class ConfigInfo
Set the session timeout - in seconds ConfigInfo ::serverPrefix () — Method in class ConfigInfo
Return a prefix unique to this server for things like shared cache keys Activity ::sendCaliperEvent () — Method in class Activity
Annotate ::storeAnnotations () — Method in class Annotate
Store the Annotations Cache ::set () — Method in class Cache
Place an entry in the cache. $Context #secret — Property in class Context
Context ::sendLineItemResult () — Method in class Context
Send a lineitem result to the LMS I18N ::setLocale () — Method in class I18N
Set the LOCAL for the current user I18N ::setupTextDomain () — Method in class I18N
Set up the translation entities JsonTrait ::setJson () — Method in class JsonTrait
Set the JSON entry for this entity JsonTrait ::setJsonKey () — Method in class JsonTrait
Set/update a JSON key for this entity JsonTrait ::setJsonKeys () — Method in class JsonTrait
Set/update an array of JSON keys for this entity $Key #secret — Property in class Key
LTIX ::setCookieStrong () — Method in class LTIX
LTIX ::setupSession () — Method in class LTIX
Extract all of the post data, set up data in tables, and set up session. LTIX ::session_start () — Method in class LTIX
Optionally handle launch and/or set up the LTI session and global variables LTIX ::signParameters () — Method in class LTIX
signParameters - Look up the key and secret and call the underlying code in LTI LTIX ::settingsSend () — Method in class LTIX
Send settings to the LMS using the simple JSON approach $Launch #session_object — Property in class Launch
If present, it means all session management is above us. Launch ::session_get () — Method in class Launch
Get a key from the session Launch ::session_put () — Method in class Launch
Set a key in the session Launch ::session_forget () — Method in class Launch
Forget a key in the session Launch ::session_flush () — Method in class Launch
Flush the session Launch ::settingsCascade () — Method in class Launch
Check for a setting starting nearby Link ::settingsDefaultsFromCustom () — Method in class Link
Load defaults from custom parameters once Mail ::send () — Method in class Mail
Result ::setJsonForUser () — Method in class Result
Set JSON for a different user Result ::setJsonKeyForUser () — Method in class Result
Set a JSON key for a result for a different user Result ::setNote () — Method in class Result
Set the Note for this result SQLDialect — Class in namespace Tsugi\Core
This is a helper class to transform MySQL and PgSQL dialects SQLDialect ::sqlPatch () — Method in class SQLDialect
SQLDialect ::sqlCreate2Postgres () — Method in class SQLDialect
SQLDialect ::sqlInsert2Postgres () — Method in class SQLDialect
SQLDialect ::sqlAlter2Postgres () — Method in class SQLDialect
SessionTrait — Class in namespace Tsugi\Core
This is a trait convienence methods to access the session from the launch object SessionTrait ::session_get () — Method in class SessionTrait
Get a key from the session SessionTrait ::session_put () — Method in class SessionTrait
Set a key in the session SessionTrait ::session_forget () — Method in class SessionTrait
Forget a key in the session SessionTrait ::session_flush () — Method in class SessionTrait
Flush the session Settings — Class in namespace Tsugi\Core
This is a class to provide access to the setting service. SettingsTrait — Class in namespace Tsugi\Core
This is a class holding convienence methods to access settings from core objects. $SettingsTrait #settingsDebugArray — Property in class SettingsTrait
SettingsTrait ::settingsGetAll () — Method in class SettingsTrait
Retrieve an array of all of the settings SettingsTrait ::settingsGet () — Method in class SettingsTrait
Retrieve a particular key from the settings. SettingsTrait ::settingsSet () — Method in class SettingsTrait
Update a single key in settings SettingsTrait ::settingsUpdate () — Method in class SettingsTrait
Set or update a number of keys to new values in link settings. SettingsTrait ::settingsSetAll () — Method in class SettingsTrait
Replace all the settings (Dangerous) SettingsTrait ::settingsDebug () — Method in class SettingsTrait
Retrieve the debug array for the last operation. Tool ::sendTemplates () — Method in class Tool
SecureCookie — Class in namespace Tsugi\Crypt
SecureCookie ::set () — Method in class SecureCookie
$Entry #scale — Property in class Entry
The scale in seconds Entry ::serialize () — Method in class Entry
Serialize to a key=value pair JWT ::sign () — Method in class JWT
SimpleGradeDetail — Class in namespace Tsugi\Grades
$OAuthConsumer #secret — Property in class OAuthConsumer
OAuthRequest ::set_parameter () — Method in class OAuthRequest
OAuthRequest ::sign_request () — Method in class OAuthRequest
$OAuthServer #signature_methods — Property in class OAuthServer
$OAuthToken #secret — Property in class OAuthToken
OAuthUtil ::split_header () — Method in class OAuthUtil
CrudForm ::selectSql () — Method in class CrudForm
Produce the SELECT statement for a table, set of fields and where clause. $MenuEntry #SEPARATOR — Property in class MenuEntry
The constant for a separator MenuEntry ::separator () — Method in class MenuEntry
Construct a menu entry separator MenuSet ::setHome () — Method in class MenuSet
Set the Home Menu Output ::splashPage () — Method in class Output
Outputs a splash page used if the tool is not configured or instructor has never been there before. Output ::setAppHeader () — Method in class Output
Set header Content for any Tsugi-generated pages. Output ::setAppFooter () — Method in class Output
Set footer Content for any Tsugi-generated pages. Output ::safe_var_cleanup () — Method in class Output
Output ::safe_var_dump () — Method in class Output
Output ::safe_print_r () — Method in class Output
SettingsDialog — Class in namespace Tsugi\UI
SettingsDialog ::start () — Method in class SettingsDialog
SettingsDialog ::select () — Method in class SettingsDialog
Handle a settings selector box SettingsForm — Class in namespace Tsugi\UI
SettingsForm ::start () — Method in class SettingsForm
SettingsForm ::select () — Method in class SettingsForm
Handle a settings selector box CC ::set_title () — Method in class CC
CC ::set_description () — Method in class CC
CC_Topic ::set_title () — Method in class CC_Topic
CC_Topic ::set_text () — Method in class CC_Topic
CC_WebLink ::set_title () — Method in class CC_WebLink
CC_WebLink ::set_url () — Method in class CC_WebLink
Caliper ::smallCaliper () — Method in class Caliper
Required:
$json->data[0]->actor->id = $user;
$json->data[0]->object->{'@id'} = $path;
$json->eventTime = Caliper::getISO8601($timestamp); Caliper ::sensorCanvasPageView () — Method in class Caliper
This is just a test method to return properly formatted JSON for the Canvas prototype Caliper Git ::set_bin () — Method in class Git
Sets git executable path GitRepo ::set_repo_path () — Method in class GitRepo
Set the repository's path GitRepo ::status () — Method in class GitRepo
Runs a 'git status' call GitRepo ::set_description () — Method in class GitRepo
Sets the project description. GitRepo ::setenv () — Method in class GitRepo
Sets custom environment options for calling Git KVS ::selectOne () — Method in class KVS
KVS ::selectAll () — Method in class KVS
LTI ::signParameters () — Method in class LTI
LTI ::sendOAuthGET () — Method in class LTI
LTI ::sendOAuthBody () — Method in class LTI
LTI ::sendPOXGrade () — Method in class LTI
Send a grade using the LTI 1.1 protocol (POX) LTI ::sendJSONGrade () — Method in class LTI
Send a grade using the JSON protocol from IMS LTI 2.x LTI ::sendJSONSettings () — Method in class LTI
Send setings data using the JSON protocol from IMS LTI 2.x LTI ::sendJSONBody () — Method in class LTI
Send a JSON body LTI 2.x Style LTI13 ::sendLineItemResult () — Method in class LTI13
Send a line item result LTI13 ::signLTI11Transition () — Method in class LTI13
Compute the OAuth signature for an LTI 1.3 Launch JWT LinkHeaderItem ::setUri () — Method in class LinkHeaderItem
Set a new URI. LinkHeaderItem ::setAttribute () — Method in class LinkHeaderItem
Set attribute Mersenne_Twister ::setSeed () — Method in class Mersenne_Twister
Mersenne_Twister ::shuffle () — Method in class Mersenne_Twister
Net ::send403 () — Method in class Net
Send a 403 header Net ::send400 () — Method in class Net
Send a 400 (Malformed request) header Net ::serverIP () — Method in class Net
Net ::setCookieStrong () — Method in class Net
Put as much oomph into setting a cookie as we can $PDOXStatement #success — Property in class PDOXStatement
$PDOXStatement #sqlQuery — Property in class PDOXStatement
$PDOXStatement #sqlOriginalQuery — Property in class PDOXStatement
PS ::set () — Method in class PS
PS ::s () — Method in class PS
PS ::startsWith () — Method in class PS
PS ::slice () — Method in class PS
PS ::strip () — Method in class PS
emulate python strip() PS ::split () — Method in class PS
emulate the Python split() TsugiDOM ::set_namespace () — Method in class TsugiDOM
U ::session_safe_id () — Method in class U
U ::safe_href () — Method in class U
U ::success_out () — Method in class U
U ::startsWith () — Method in class U
U ::safe_var_dump () — Method in class U
U ::safe_array () — Method in class U
U ::strlen () — Method in class U
Build a PHP 7 strlen for PHP 8.2 and later T
$ConfigInfo #timezone — Property in class ConfigInfo
Default time zone - see http://www.php.net/. $ConfigInfo #testblobs — Property in class ConfigInfo
Configure lti keys that go into blob_blob regardless of $dataroot $ConfigInfo #tool_folders — Property in class ConfigInfo
Indicate which directories to scan for tools. $ConfigInfo #theme — Property in class ConfigInfo
An array of css styles to apply to css variables used to skin Tsugi. $ConfigInfo #theme_base — Property in class ConfigInfo
The color to be used as the theme base
This could optionally be overridden by a launch parameter $ConfigInfo #theme_dark_mode — Property in class ConfigInfo
A boolean indicator as to whether dark mode should be used
This could optionally be overridden by a launch parameter $ConfigInfo #tdiscus — Property in class ConfigInfo
The url of the installed instance of the tdiscus tool. $ConfigInfo #topics — Property in class ConfigInfo
$Context #TABLE_NAME — Property in class Context
$Context #title — Property in class Context
The context title $Key #TABLE_NAME — Property in class Key
$Key #title — Property in class Key
The key title $Keyset #ttl — Property in class Keyset
$Link #TABLE_NAME — Property in class Link
$Link #title — Property in class Link
The link title $Result #TABLE_NAME — Property in class Result
Tool — Class in namespace Tsugi\Core
Provide support for a Tsugi Tool $User #TABLE_NAME — Property in class User
$Entry #timestart — Property in class Entry
The earliest time for the first bucket - default first entry $Entry #total — Property in class Entry
The total number of clicks Application ::tsugiReroute () — Method in class Application
tsugiReroute - Send the browser to a new location with session Application ::tsugiRedirectHome () — Method in class Application
Application ::tsugiRedirect () — Method in class Application
Application ::tsugiFlashSuccess () — Method in class Application
tsugiFlashSuccess - Add a success message to the old and new flash session. Application ::tsugiFlashError () — Method in class Application
tsugiFlashError - Add an error message to the old and new flash session. OAuthRequest ::to_url () — Method in class OAuthRequest
builds a url usable for a GET request OAuthRequest ::to_postdata () — Method in class OAuthRequest
builds the data one would send in a POST request OAuthRequest ::to_header_internal () — Method in class OAuthRequest
builds the Authorization: header OAuthRequest ::to_header () — Method in class OAuthRequest
OAuthRequest ::to_alternate_header () — Method in class OAuthRequest
$OAuthServer #timestamp_threshold — Property in class OAuthServer
OAuthToken ::to_string () — Method in class OAuthToken
generates the basic string serialization of a token that a server
would respond to request_token and access_token calls with TrivialOAuthDataStore — Class in namespace Tsugi\OAuth
A Trivial memory-based store - no support for tokens HandleBars ::templateInclude () — Method in class HandleBars
templateInclude - Include a handlebars template, dealing with i18n HandleBars ::templateProcess () — Method in class HandleBars
templateProcess - Process a handlebars template, dealing with i18n Output ::templateInclude () — Method in class Output
templateInclude - Include a handlebars template, dealing with i18n Output ::templateProcess () — Method in class Output
templateProcess - Process a handlebars template, dealing with i18n Output ::togglePre () — Method in class Output
Output ::togglePreScript () — Method in class Output
Output ::topNavSession () — Method in class Output
Store the top navigation in the session Output ::topNav () — Method in class Output
Emit the top navigation block and optionally the tool navigation SettingsDialog ::text () — Method in class SettingsDialog
Handle a settings text box SettingsDialog ::textarea () — Method in class SettingsDialog
Handle a settings textarea box SettingsForm ::text () — Method in class SettingsForm
Handle a settings text box SettingsForm ::textarea () — Method in class SettingsForm
Handle a settings textarea box Table — Class in namespace Tsugi\UI
Our class to generate pageable tables. Theme — Class in namespace Tsugi\UI
$Theme #theme_base — Property in class Theme
Topics — Class in namespace Tsugi\UI
$Topics #topics — Property in class Topics
All the topics $Topics #topic — Property in class Topics
The individual topic $Topics #topicposition — Property in class Topics
FileRouter ::trimQuery () — Method in class FileRouter
GitRepo ::test_git () — Method in class GitRepo
Tests if git is installed HSLuv ::toRgb () — Method in class HSLuv
HSLuv ::toRgbInt () — Method in class HSLuv
HSLuv ::toHex () — Method in class HSLuv
TsugiDOM — Class in namespace Tsugi\Util
Wrap the DOMDocument class with some convienence methods UrlRouter ::trimQuery () — Method in class UrlRouter
U
BlobUtil ::uploadTooLarge () — Method in class BlobUtil
BlobUtil ::uploadToBlob () — Method in class BlobUtil
uploadToBlob - returns blob_id or false BlobUtil ::uploadFileToBlob () — Method in class BlobUtil
Legacy code - returns array [id, sha256] BlobUtil ::uploadPathToBlob () — Method in class BlobUtil
Read a file off local disk and put it into a blob BlobUtil ::uploadFileToString () — Method in class BlobUtil
$ConfigInfo #upgrading — Property in class ConfigInfo
Set to true to redirect all requests to the upgrading.php script $ConfigInfo #universal_analytics — Property in class ConfigInfo
Configure universal analytics for this Tsugi instance. $ConfigInfo #unify — Property in class ConfigInfo
Context ::updateLineItem () — Method in class Context
Update a lineitem in the LMS $Launch #user — Property in class Launch
Get the User associated with the launch. $Link #user_activity — Property in class Link
The count of the user's activity on this link at the moment of launch $Roster #url — Property in class Roster
User — Class in namespace Tsugi\Core
This is a class to provide access to the resource context level data. AesCtr ::urs () — Method in class AesCtr
Entry ::uncompressEntry () — Method in class Entry
Optionally uncompress a serialized entry if it is compressed JWT ::urlsafeB64Decode () — Method in class JWT
JWT ::urlsafeB64Encode () — Method in class JWT
UI — Class in namespace Tsugi\Grades
OAuthRequest ::unset_parameter () — Method in class OAuthRequest
OAuthUtil ::urlencode_rfc3986 () — Method in class OAuthUtil
OAuthUtil ::urldecode_rfc3986 () — Method in class OAuthUtil
CrudForm ::updateForm () — Method in class CrudForm
Generate the HTML for an update form. KVS ::update () — Method in class KVS
LTI13 ::updateLineItem () — Method in class LTI13
Update a lineitem in the LMS PS ::upper () — Method in class PS
U — Class in namespace Tsugi\Util
Some really small, simple, and self-contained utility public static functions UrlRouter — Class in namespace Tsugi\Util
Simple URL Routing for "Old school" PHP apps V
BlobUtil ::validateUpload () — Method in class BlobUtil
Returns true if this is a good upload, an error string if not $ConfigInfo #verifypeer — Property in class ConfigInfo
Indicate whether the PHP on this server wants to verify SSL or not $ConfigInfo #vendorroot — Property in class ConfigInfo
$ConfigInfo #vendorinclude — Property in class ConfigInfo
$ConfigInfo #vendorstatic — Property in class ConfigInfo
Login ::viewLogin () — Method in class Login
Map ::viewMap () — Method in class Map
Map ::viewError () — Method in class Map
LTIX ::var_dump () — Method in class LTIX
Dump out the internal data structures adssociated with the
current launch. Best if used within a pre tag. Launch ::var_dump () — Method in class Launch
Dump out the internal data structures associated with the
current launch. Best if used within a pre tag. Entry ::viewModel () — Method in class Entry
Produce an view model of the entire object $OAuthRequest #version — Property in class OAuthRequest
$OAuthServer #version — Property in class OAuthServer
OAuthServer ::verify_request () — Method in class OAuthServer
verify an api call, checks all the parameters CrudForm ::valueToField () — Method in class CrudForm
Maps a default value to a field. KVS ::validate () — Method in class KVS
Validate a kvs record LTI ::verifyKeyAndSecret () — Method in class LTI
Verify the message signature for this request LTI13 ::verifyPublicKey () — Method in class LTI13
Verify the Public Key for this request $Net #VERIFY_PEER — Property in class Net
W
$ConfigInfo #wwwroot — Property in class ConfigInfo
The URL where tsugi is located $ConfigInfo #websocket_secret — Property in class ConfigInfo
If we have a web socket server, put its URL here
Do not add a path here - just the host and port
Make sure the port is open on your server $ConfigInfo #websocket_url — Property in class ConfigInfo
$ConfigInfo #websocket_proxyport — Property in class ConfigInfo
LTIX ::wrapped_session_get () — Method in class LTIX
Wrap getting a key from the session LTIX ::wrapped_session_all () — Method in class LTIX
Get all session values LTIX ::wrapped_session_put () — Method in class LTIX
Wrap setting a key from the session LTIX ::wrapped_session_forget () — Method in class LTIX
Wrap forgetting a key from the session LTIX ::wrapped_session_flush () — Method in class LTIX
Wrap flushing the session WebSocket — Class in namespace Tsugi\Core
This class contains the server side of Tsugi notification web sockets Output ::welcomeUserCourse () — Method in class Output
Welcome the user to the course $Topics #warpwire_baseurl — Property in class Topics
Git ::windows_mode () — Method in class Git
Sets up library for use in a default Windows environment X
Output ::xmlError () — Method in class Output
Output ::xmlAuthError () — Method in class Output
Output ::xmlOutput () — Method in class Output
HSLuv ::xyzToRgb () — Method in class HSLuv
HSLuv ::xyzToLuv () — Method in class HSLuv
Y
$ConfigInfo #youtube_url — Property in class ConfigInfo
The url of the installed YouTube tool Z
CC ::zip_add_url_to_module () — Method in class CC
CC ::zip_add_lti_to_module () — Method in class CC
CC ::zip_add_lti_outcome_to_module () — Method in class CC
CC ::zip_add_topic_to_module () — Method in class CC
_
ConfigInfo ::__construct () — Method in class ConfigInfo
Create the configuration object. DeepLinkResponse ::__construct () — Method in class DeepLinkResponse
I18N ::_m () — Method in class I18N
Translate a messege from the master domain I18N ::_me () — Method in class I18N
Echo translated a message from the master domain I18N ::_e () — Method in class I18N
Echo a translated message from a textdomain I18N ::__ () — Method in class I18N
Translate a messege from the master domain Tool ::__construct () — Method in class Tool
Entry ::__construct () — Method in class Entry
GoogleLogin ::__construct () — Method in class GoogleLogin
Application ::__construct () — Method in class Application
Requires a Tsugi Launch object for initializing. OAuthConsumer ::__construct () — Method in class OAuthConsumer
OAuthConsumer ::__toString () — Method in class OAuthConsumer
OAuthRequest ::__construct () — Method in class OAuthRequest
OAuthRequest ::__toString () — Method in class OAuthRequest
OAuthServer ::__construct () — Method in class OAuthServer
OAuthToken ::__construct () — Method in class OAuthToken
key = the token
secret = the token secret OAuthToken ::__toString () — Method in class OAuthToken
Lessons ::__construct () — Method in class Lessons
MenuEntry ::__construct () — Method in class MenuEntry
Construct a menu entry from a link and href SettingsDialog ::__construct () — Method in class SettingsDialog
Construct us with with a container that has a settings trait and launch Topics ::__construct () — Method in class Topics
CC ::__construct () — Method in class CC
CC_LTI_Outcome ::__construct () — Method in class CC_LTI_Outcome
CC_Topic ::__construct () — Method in class CC_Topic
CC_WebLink ::__construct () — Method in class CC_WebLink
ContentItem ::__construct () — Method in class ContentItem
DeepLinkRequest ::__construct () — Method in class DeepLinkRequest
DeepLinkResponse ::__construct () — Method in class DeepLinkResponse
GitRepo ::__construct () — Method in class GitRepo
Constructor KVS ::__construct () — Method in class KVS
LinkHeader ::__construct () — Method in class LinkHeader
Constructor LinkHeader ::__toString () — Method in class LinkHeader
Cast contents to string. LinkHeaderItem ::__construct () — Method in class LinkHeaderItem
Constructor. LinkHeaderItem ::__toString () — Method in class LinkHeaderItem
cast item to string Mersenne_Twister ::__construct () — Method in class Mersenne_Twister
PDOXStatement ::__construct () — Method in class PDOXStatement
PS ::__construct () — Method in class PS
PS ::__toString () — Method in class PS
TsugiDOM ::__construct () — Method in class TsugiDOM