29 lines
618 B
PHP
29 lines
618 B
PHP
<?php
|
|
|
|
return new class extends \Lewp\Module {
|
|
|
|
private function header()
|
|
{
|
|
return $this->createElement("h1", "Hello World!");
|
|
}
|
|
|
|
private function description()
|
|
{
|
|
return $this->createElement(
|
|
"p",
|
|
$this->loadTextFile("en_description")
|
|
);
|
|
}
|
|
|
|
public function run(array $options = []) : bool
|
|
{
|
|
$this->appendChild($this->header());
|
|
$this->appendChild($this->description());
|
|
return true;
|
|
}
|
|
|
|
public function onWebsocketRequest(
|
|
\Lewp\Websocket\Message $message
|
|
) : \Lewp\Websocket\Message {
|
|
}
|
|
};
|