CMS  Version 3.9
authentication_tokens.inc File Reference

Go to the source code of this file.

Functions

 formatEnabled ($token)
 

Variables

 $tokens = Query::create(AuthenticationToken, "")->execute()
 
 $menu_item = "Authentication Tokens"
 
 $table = new DataListView($tokens, "tokens")
 
$table emptyMessage = "No authentication tokens have been generated."
 
$table pageSize = 10
 
$table filter = true
 
$table excelFile = "authentication_tokens.xls"
 
 $script = $table->writeScript()
 

Function Documentation

◆ formatEnabled()

formatEnabled (   $token)

Definition at line 41 of file authentication_tokens.inc.

42 {
43  $img = $token->enabled ? "on.png" : "off.png";
44  $alt = $token->enabled ? "Enabled" : "Disabled";
45 
46  return "<img src='/fakoli/images/$img' id='enable_{$token->authentication_token_id}' alt='$alt' style='display: inline-block; vertical-align: middle; border: none;'/>";
47 }

Variable Documentation

◆ $menu_item

$menu_item = "Authentication Tokens"

Definition at line 39 of file authentication_tokens.inc.

◆ $script

$script = $table->writeScript()

Definition at line 61 of file authentication_tokens.inc.

◆ $table

$table = new DataListView($tokens, "tokens")

Definition at line 49 of file authentication_tokens.inc.

◆ $tokens

$tokens = Query::create(AuthenticationToken, "")->execute()

Definition at line 37 of file authentication_tokens.inc.

◆ emptyMessage

$table emptyMessage = "No authentication tokens have been generated."

Definition at line 56 of file authentication_tokens.inc.

◆ excelFile

$table excelFile = "authentication_tokens.xls"

Definition at line 59 of file authentication_tokens.inc.

◆ filter

$table filter = true

Definition at line 58 of file authentication_tokens.inc.

◆ pageSize

$table pageSize = 10

Definition at line 57 of file authentication_tokens.inc.