FileAccess Orion

AppContext
in

Define a system app state context

Tags
category

Interface function

author

Tobias Teichner webmaster@teichner.biz

since

File available since v4.70

Table of Contents

Cached()  : bool
Get no cache context
ContextType()  : string
Get a context type information
Get()  : mixed
Get a superglobal
GetUser()  : User|null
Get current user
LogLine()  : bool
Log line write a line to the local system logfile
Repository()  : Git
The repository instance
Set()  : mixed
Set a super global

Methods

Cached()

Get no cache context

public Cached() : bool
Return values
bool

ContextType()

Get a context type information

public ContextType() : string
Return values
string

Get()

Get a superglobal

public Get(string $sg, string|null $key[,  $default = null ]) : mixed
Parameters
$sg : string
$key : string|null
$default : = null
Return values
mixed

LogLine()

Log line write a line to the local system logfile

public LogLine(mixed $value[, string $level = FAA_LOG_LEVEL_INFO ]) : bool
Parameters
$value : mixed

The log message or any kind of object

$level : string = FAA_LOG_LEVEL_INFO

The log level

Return values
bool

Write success or false on error

Repository()

The repository instance

public Repository() : Git

It should open a git instance on demand

Return values
Git

Set()

Set a super global

public Set(string $sg, string $key,  $data) : mixed
Parameters
$sg : string
$key : string
$data :
Return values
mixed

Search results