Skip to content

Better parameters management

Compare
Choose a tag to compare
@rawsrc rawsrc released this 19 Mar 20:36
· 38 commits to master since this release

New version (5.3.0) with some useful enhancements for parameters management.

  • The method hasGlobalParam(string $name) is now static
  • You can now define the seek order to get the first value either from the local or global context using
    getAnyParam(string $name, string $seek_order = 'local'): mixed
  • It's possible to set a parameter in the local and the global context at once using setAnyParam(string $name, mixed $value)
  • It's possible to unset a parameter from the local and the global context at once using unsetAnyParam(string $name)
  • It's possible to check if a parameter exist in the local or global context using hasAnyParam(string $name): bool

Tests are updated

rawsrc