Documentation

Ajax
in package
Uses Singleton

Handle Ajax operations in this class

Table of Contents

$instance  : object
The only instance of using class
$restops  : array<, array<, mixed>>
getinstance()  : object
Checks, instantiates and returns the only instance of the using class.
handle()  : void
Handle AJAX operations
log()  : bool
Return the log requirements array from the child
permissions()  : array<, string>
Return the permission requirements array from the child

Properties

$instance

The only instance of using class

protected static object $instance = NULL

$restops

private static array<, array<, mixed>> $restops = ['bean' => FrameworkAjaxBean::class, 'config' => FrameworkAjaxConfig::class, 'hints' => FrameworkAjaxHints::class, 'paging' => FrameworkAjaxPaging::class, 'pwcheck' => FrameworkAjaxPwCheck::class, 'shared' => FrameworkAjaxShared::class, 'table' => FrameworkAjaxTable::class, 'tablecheck' => FrameworkAjaxTableCheck::class, 'tablesearch' => FrameworkAjaxTableSearch::class, 'toggle' => FrameworkAjaxToggle::class, 'unique' => FrameworkAjaxUnique::class, 'uniquenl' => FrameworkAjaxUniqueNl::class]

Allowed Framework operation codes. Values indicate : [needs login, Roles that user must have]

Methods

getinstance()

Checks, instantiates and returns the only instance of the using class.

public static getinstance() : object
Tags
template

object

psalm-return

object

psalm-suppress

MismatchingDocblockReturnType

psalm-suppress

ReservedWord

Return values
object

handle()

Handle AJAX operations

public handle(Context $context) : void
Parameters
$context : Context

The context object for the site

Return values
void

log()

Return the log requirements array from the child

public final log(string $bean) : bool
Parameters
$bean : string

The name of a bean

Return values
bool

permissions()

Return the permission requirements array from the child

public final permissions(string $which[, array<, mixed> $system = [] ]) : array<, string>
Parameters
$which : string

The permissions required

$system : array<, mixed> = []
Return values
array<, string>

Search results