ICanBoogie
  • Documentation
  • API Reference
  • Prototype v2.1.0
Namespaces
  • ICanBoogie
    • Prototype
Classes
  • Helpers
  • Hooks
Exceptions
  • MethodNotDefined
  • MethodOutOfScope

Class Helpers

Patchable helpers.

Namespace: ICanBoogie\Prototype
Located at Prototype/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.
Prototype v2.1.0 – Check on GitHub – API documentation generated by ApiGen