\TenonAjax
Synopsis
class TenonAjax
extends Controller
{
- // constants
- const DO_SS_LOG = false;
- // members
- protected $hash_object = NULL;
- private static array $allowed_actions = ;
- // methods
- public void init()
- public string analyse()
- private array buildOptions()
- private string createHash()
- private bool existingPageHash()
- private string jsonResponse()
- private void log()
- private bool requestSend()
- private bool responseSave()
- private int responseSaveCount()
- private void responseSaveDeleteExisting()
- private void responseSaveErrorWarning()
- private bool responseSaveFailure()
- private void responseSaveScript()
- private string responseSaveScriptCollate()
- private bool savePageHash()
Hierarchy
Extends
- Controller
Constants
Name | Value |
---|---|
DO_SS_LOG | false |
Members
private
- $allowed_actions
protected
- $hash_object
Methods
private
- buildOptions() — Called by analyse function
- createHash() — Called by analyse function
- existingPageHash() — Called by analyse function Checks whether there's an existing page in the PageHash table with the same hash
- jsonResponse() — Called by analyse function
- log() — Utility function to log events if DO_SS_LOG is set Ensure this is safe if DO_SS_LOG is incorrectly set to true
- requestSend() — Called by analyse function
- responseSave() — Called by analyse function
- responseSaveCount() — Called by responseSave function
- responseSaveDeleteExisting() — Called by responseSave function Deletes all existing matches for the current path in the TenonResult table
- responseSaveErrorWarning() — Called by responseSave function Saves any Errors and Warnings to the database
- responseSaveFailure() — Called by responseSave function Saves any internal Tenon failure to the database
- responseSaveScript() — Called by responseSave function Saves any client script errors to the database
- responseSaveScriptCollate() — Called by responseSaveScript Concatenates stacktrace elements where there's more than one
- savePageHash() — Called by analyse function