- Fixed the parse type
This commit is contained in:
parent
cd3cb18665
commit
9190987b53
|
@ -17,7 +17,7 @@ class UiMessage extends UiElement implements Extension {
|
|||
'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 "";
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ class UiPopup extends UiElement implements Extension {
|
|||
'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) . '\"' ?>";
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ class UiForm extends UiElement implements Extension {
|
|||
'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) {
|
||||
case 'ui.endform':
|
||||
|
|
|
@ -21,7 +21,7 @@ class UiImage extends UiElement implements Extension {
|
|||
'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) ?>";
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ class UiInput extends UiElement implements Extension {
|
|||
|
||||
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) ?>";
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ class UiSelect extends UiElement implements Extension {
|
|||
'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) ?>";
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ class UiTextarea extends UiInput {
|
|||
|
||||
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') {
|
||||
$this->echoRaw = true;
|
||||
|
|
|
@ -25,7 +25,7 @@ class Form implements Extension {
|
|||
$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
|
||||
{
|
||||
|
|
|
@ -16,13 +16,13 @@ class FormHandler {
|
|||
public /* mixed */ $executionStatus = null;
|
||||
|
||||
public ? bool $validationStatus = null;
|
||||
|
||||
|
||||
public FormInterface $form;
|
||||
|
||||
public FormContext $context;
|
||||
|
||||
protected ServerRequestInterface $request;
|
||||
|
||||
protected FormInterface $form;
|
||||
|
||||
public array $acceptedMethods = self::DEFAULT_METHODS;
|
||||
|
||||
public function __construct(ServerRequestInterface $request, FormInterface $form, ? FormContextInterface $context = null)
|
||||
|
|
|
@ -23,7 +23,7 @@ class Pagination implements Extension {
|
|||
$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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue