- deleted test plugin
- added FML Library
This commit is contained in:
		
							
								
								
									
										37
									
								
								application/FML/Elements/Including.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								application/FML/Elements/Including.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Elements; | ||||
|  | ||||
| /** | ||||
|  * Class representing include | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Including implements Renderable { | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $url = ''; | ||||
| 	protected $tagName = 'include'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Set url | ||||
| 	 * | ||||
| 	 * @param string $url        	 | ||||
| 	 */ | ||||
| 	public function setUrl($url) { | ||||
| 		$this->url = $url; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Renderable::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = $domDocument->createElement($this->tagName); | ||||
| 		$xml->setAttribute('url', $this->url); | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
		Reference in New Issue
	
	Block a user