[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/Items/ -> ProgrammableCallback.php (summary)

(no description)

File Size: 248 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ProgrammableCallback:: (13 methods):
  __construct()
  addParameterByValue()
  addParameterByName()
  getCallback()
  getJS()
  getVars()
  resetParameters()
  setJS()
  setVar()
  setVars()
  asConfig()
  autoloadJS()
  normalizeCallback()


Class: ProgrammableCallback  - X-Ref


__construct($callback)   X-Ref

param: callable $callback

addParameterByValue($paramValue)   X-Ref
Add a parameter by value

return: self
param: mixed $paramValue

addParameterByName($paramName)   X-Ref
Add a parameter by name

The value will be dynamically generated by the caller

return: self
param: string $paramName

getCallback()   X-Ref
Get this object's callback

return: callback

getJS()   X-Ref
Get this callback's JavaScript

return: string

getVars()   X-Ref
Get this object's variables

return: array

resetParameters()   X-Ref
Remove all the parameters

return: self

setJS($js)   X-Ref
Set this callback's JavaScript

return: self
param: string $js JavaScript source code for this callback

setVar($name, $value)   X-Ref
Set or overwrite one of this callback's variable

return: self
param: string $name  Variable name
param: string $value Variable value

setVars(array $vars)   X-Ref
Set all of this callback's variables at once

return: self
param: array $vars Associative array of values

asConfig()   X-Ref
{@inheritdoc}


autoloadJS()   X-Ref
Try to load the JavaScript source for this callback

return: void

normalizeCallback($callback)   X-Ref
Normalize a callback's representation

return: callable
param: callable $callback



Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1