FML Improvements
This commit is contained in:
		| @@ -23,6 +23,16 @@ class Frame extends Control implements Container { | ||||
| 	/** @var Format $format */ | ||||
| 	protected $format = null; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new Frame Control | ||||
| 	 * | ||||
| 	 * @param string $id (optional) Control Id | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'frame'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Create a new Frame Control | ||||
| 	 * | ||||
| @@ -35,13 +45,10 @@ class Frame extends Control implements Container { | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new Frame Control | ||||
| 	 * | ||||
| 	 * @param string $id (optional) Control Id | ||||
| 	 * @see \FML\Controls\Control::getManiaScriptClass() | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'frame'; | ||||
| 	public function getManiaScriptClass() { | ||||
| 		return 'CMlFrame'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| @@ -62,14 +69,6 @@ class Frame extends Control implements Container { | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\Container::setFormat() | ||||
| 	 */ | ||||
| 	public function setFormat(Format $format) { | ||||
| 		$this->format = $format; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\Container::getFormat() | ||||
| 	 */ | ||||
| @@ -80,6 +79,14 @@ class Frame extends Control implements Container { | ||||
| 		return $this->format; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\Container::setFormat() | ||||
| 	 */ | ||||
| 	public function setFormat(Format $format) { | ||||
| 		$this->format = $format; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Controls\Control::getScriptFeatures() | ||||
| 	 */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user