ICanBoogie
  • Documentation
  • API Reference
  • I18n 3.0.x
Namespaces
  • ICanBoogie
    • Binding
      • I18n
    • I18n
      • Translator
Classes
  • FormattedString
  • Helpers
  • Hooks
  • Translator

Class Helpers

Patchable helpers of the ICanBoogie/I18n package.

Namespace: ICanBoogie\I18n
Located at I18n/Helpers.php

Methods summary

public static __callstatic( string $name, array $arguments ) : mixed

Calls the callback of a patchable function.

Calls the callback of a patchable function.

Parameters

$name
Name of the function.
$arguments
Arguments.

Returns

mixed
public static patch( string $name, callable $callback )

Patches a patchable function.

Patches a patchable function.

Parameters

$name
Name of the function.
$callback
Callback.

Throws

RuntimeException
is attempt to patch an undefined function.
I18n 3.0.x – Check on GitHub – API documentation generated by ApiGen