Skip to content

Latest commit

 

History

History
379 lines (125 loc) · 2.83 KB

twitterPluginAction.md

File metadata and controls

379 lines (125 loc) · 2.83 KB

twitterPluginAction

Extending the wrapper class, which is a class that is used to create plugins.

Properties

url_pattern

A regular expression that will be used to match the URL.

protected ?string $url_pattern

A method that is called when the request is completed.


Methods

onComplete

Used to execute code when the headers are received.

public onComplete(): void

Inherited methods

subscribe

Subscribing to all the events.

final public subscribe(\yxorP\lib\yP $dispatcher): void
  • This method is final.

Parameters:

Parameter Type Description
$dispatcher \yxorP\lib\yP

route

A method that is used to route the events to the appropriate methods.

private route(string $event_name): void

Parameters:

Parameter Type Description
$event_name string

onCache

A method that is called when the event EVENT_BUILD_CACHE is triggered.

public onCache(): void

onCheck

Used to check if the event should be executed.

public onCheck(): self

onContext

A method that is called when the event EVENT_BUILD_CONTEXT is triggered.

public onContext(): void

onIncludes

A method that is called when the event EVENT_BUILD_INCLUDES is triggered.

public onIncludes(): void

onHeaders

A method that is called when the event EVENT_BUILD_HEADERS is triggered.

public onHeaders(): void

onRequest

A method that is called when the event EVENT_BUILD_REQUEST is triggered.

public onRequest(): void

onBeforeSend

Used to build the result.

public onBeforeSend(): void

onSend

Used to execute code when the request is sent.

public onSend(): void

onSent

Used to execute code before the request is sent.

public onSent(): void

onWrite

Used to execute code when the headers are received.

public onWrite(): void

onComplete

Used to execute code when the headers are received.

public onComplete(): void

onFinal

Used to execute code when the request is completed.

public onFinal(): void

onException

Used to execute code when an exception is thrown.

public onException(\Exception $e): void

Parameters:

Parameter Type Description
$e \Exception