- 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', |        '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 ""; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -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) . '\"' ?>"; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -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': | ||||||
|  | |||||||
| @ -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) ?>"; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -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) ?>"; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -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) ?>"; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -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; | ||||||
|  | |||||||
| @ -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 | ||||||
|     { |     { | ||||||
|  | |||||||
| @ -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) | ||||||
|  | |||||||
| @ -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 | ||||||
|     { |     { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user