ajout de la partie slam dans le dossier web
This commit is contained in:
		
							
								
								
									
										29
									
								
								ap23/web/doku/inc/Form/HTMLElement.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								ap23/web/doku/inc/Form/HTMLElement.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| <?php | ||||
| namespace dokuwiki\Form; | ||||
|  | ||||
| /** | ||||
|  * Class HTMLElement | ||||
|  * | ||||
|  * Holds arbitrary HTML that is added as is to the Form | ||||
|  * | ||||
|  * @package dokuwiki\Form | ||||
|  */ | ||||
| class HTMLElement extends ValueElement { | ||||
|  | ||||
|  | ||||
|     /** | ||||
|      * @param string $html | ||||
|      */ | ||||
|     public function __construct($html) { | ||||
|         parent::__construct('html', $html); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * The HTML representation of this element | ||||
|      * | ||||
|      * @return string | ||||
|      */ | ||||
|     public function toHTML() { | ||||
|         return $this->val(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user