- Fixed the parse type

This commit is contained in:
Dave M. 2022-12-21 04:24:12 +00:00
parent cd3cb18665
commit 9190987b53
10 changed files with 12 additions and 12 deletions

View File

@ -17,7 +17,7 @@ class UiMessage extends UiElement implements Extension {
'class' => 'ui-message', 'class' => 'ui-message',
]; ];
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
{ {
return ""; return "";
} }

View File

@ -17,7 +17,7 @@ class UiPopup extends UiElement implements Extension {
'class' => 'ui-popup', 'class' => 'ui-popup',
]; ];
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
{ {
return "<?php echo 'ui-popup=\"' . ( new \\" . static::class . "() )->buildAttributes($arguments) . '\"' ?>"; return "<?php echo 'ui-popup=\"' . ( new \\" . static::class . "() )->buildAttributes($arguments) . '\"' ?>";
} }

View File

@ -19,7 +19,7 @@ class UiForm extends UiElement implements Extension {
'class' => 'ui-form', 'class' => 'ui-form',
]; ];
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
{ {
switch($token) { switch($token) {
case 'ui.endform': case 'ui.endform':

View File

@ -21,7 +21,7 @@ class UiImage extends UiElement implements Extension {
'tag-type' => "single", 'tag-type' => "single",
]; ];
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
{ {
return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>"; return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>";
} }

View File

@ -25,7 +25,7 @@ class UiInput extends UiElement implements Extension {
protected string $name; protected string $name;
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
{ {
return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>"; return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>";
} }

View File

@ -17,7 +17,7 @@ class UiSelect extends UiElement implements Extension {
'class' => 'ui-select', 'class' => 'ui-select',
]; ];
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
{ {
return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>"; return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>";
} }

View File

@ -16,7 +16,7 @@ class UiTextarea extends UiInput {
protected bool $echoRaw = false; protected bool $echoRaw = false;
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
{ {
if ($token === 'ui.textarea.raw') { if ($token === 'ui.textarea.raw') {
$this->echoRaw = true; $this->echoRaw = true;

View File

@ -25,7 +25,7 @@ class Form implements Extension {
$this->register($context); $this->register($context);
} }
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string { } public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string { }
public function register(Context $context) : void public function register(Context $context) : void
{ {

View File

@ -17,12 +17,12 @@ class FormHandler {
public ? bool $validationStatus = null; public ? bool $validationStatus = null;
public FormInterface $form;
public FormContext $context; public FormContext $context;
protected ServerRequestInterface $request; protected ServerRequestInterface $request;
protected FormInterface $form;
public array $acceptedMethods = self::DEFAULT_METHODS; public array $acceptedMethods = self::DEFAULT_METHODS;
public function __construct(ServerRequestInterface $request, FormInterface $form, ? FormContextInterface $context = null) public function __construct(ServerRequestInterface $request, FormInterface $form, ? FormContextInterface $context = null)

View File

@ -23,7 +23,7 @@ class Pagination implements Extension {
$this->register($context); $this->register($context);
} }
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string { } public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string { }
public function register(Context $context) : void public function register(Context $context) : void
{ {