Opac
class Opac
Methods
Opac constructor
Filter path string
Generate search keywords into array javascript with Json::stringify
Set HTTP header
Get CSRF token
Validate csrf token
Set Content Security Policy
Parse content to template
No description
Handle request based on $_GET['p'];
Parse default content
Output content as JSON with header
Mutatate an existing key in sysconf we don't want to add new key directly
Setter for definedVariable property
Getter for sysconf & definedVariable property
Details
at line 37
__construct(array $definedVariable, array $sysconf, $dbs)
Opac constructor
at line 50
void
hookBeforeContent(Closure $callback)
Hook process before content
at line 62
void
hookAfterContent(Closure $callback)
Hook process after content
at line 74
static void
filterPath(string $path)
Filter path string
at line 92
void
generateKeywords(array $advanceSearch = [])
Generate search keywords into array javascript with Json::stringify
at line 220
void
setHeader(string $headerName, string $headerValue)
Set HTTP header
at line 241
void
getCsrf()
Get CSRF token
at line 251
void
validateCsrf()
Validate csrf token
at line 266
void
setCsp(array $additionalCsp = [])
Set Content Security Policy
at line 277
void
parseToTemplate()
Parse content to template
at line 311
onWeb(Closure $callback)
No description
at line 317
onCli()
No description
at line 328
void
handle(string $path)
Handle request based on $_GET['p'];
at line 357
void
orWelcome()
Parse default content
at line 403
void
toJson(mix $data)
Output content as JSON with header
at line 417
void
mutateConf($key, $value)
Mutatate an existing key in sysconf we don't want to add new key directly
at line 429
__set(string $key, string $value)
Setter for definedVariable property
at line 440
__get(string $key)
Getter for sysconf & definedVariable property