FML 1.1
This commit is contained in:
		| @@ -3,9 +3,10 @@ | ||||
| namespace FML\Controls; | ||||
|  | ||||
| use FML\Types\Container; | ||||
| use FML\Types\Renderable; | ||||
|  | ||||
| use FML\Elements\Format; | ||||
| use FML\Elements\FrameModel; | ||||
|  | ||||
| use FML\Types\ScriptFeatureable; | ||||
|  | ||||
| /** | ||||
|  * Frame Control | ||||
| @@ -46,7 +47,6 @@ class Frame extends Control implements Container { | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Container::add() | ||||
| 	 * @return \FML\Controls\Frame | ||||
| 	 */ | ||||
| 	public function add(Control $child) { | ||||
| 		if (!in_array($child, $this->children, true)) { | ||||
| @@ -58,7 +58,6 @@ class Frame extends Control implements Container { | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Container::removeChildren() | ||||
| 	 * @return \FML\Controls\Frame | ||||
| 	 */ | ||||
| 	public function removeChildren() { | ||||
| 		$this->children = array(); | ||||
| @@ -68,7 +67,6 @@ class Frame extends Control implements Container { | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Container::setFormat() | ||||
| 	 * @return \FML\Controls\Frame | ||||
| 	 */ | ||||
| 	public function setFormat(Format $format) { | ||||
| 		$this->format = $format; | ||||
| @@ -86,6 +84,20 @@ class Frame extends Control implements Container { | ||||
| 		return $this->format; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Controls\Control::getScriptFeatures() | ||||
| 	 */ | ||||
| 	public function getScriptFeatures() { | ||||
| 		$scriptFeatures = $this->scriptFeatures; | ||||
| 		foreach ($this->children as $child) { | ||||
| 			if ($child instanceof ScriptFeatureable) { | ||||
| 				$scriptFeatures = array_merge($scriptFeatures, $child->getScriptFeatures()); | ||||
| 			} | ||||
| 		} | ||||
| 		return $scriptFeatures; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Renderable::render() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user