FML Improvements
This commit is contained in:
		| @@ -40,6 +40,17 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta | ||||
| 	protected $style = ''; | ||||
| 	protected $subStyle = ''; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new Quad Control | ||||
| 	 * | ||||
| 	 * @param string $id (optional) Control Id | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'quad'; | ||||
| 		$this->setZ(-1); | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Create a new Quad Control | ||||
| 	 * | ||||
| @@ -52,14 +63,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new Quad Control | ||||
| 	 * | ||||
| 	 * @param string $id (optional) Control Id | ||||
| 	 * @see \FML\Controls\Control::getManiaScriptClass() | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'quad'; | ||||
| 		$this->setZ(-1); | ||||
| 	public function getManiaScriptClass() { | ||||
| 		return 'CMlQuad'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| @@ -139,6 +146,13 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\Actionable::getAction() | ||||
| 	 */ | ||||
| 	public function getAction() { | ||||
| 		return $this->action; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\Actionable::setAction() | ||||
| 	 */ | ||||
| @@ -147,13 +161,6 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\Actionable::getAction() | ||||
| 	 */ | ||||
| 	public function getAction() { | ||||
| 		return $this->action; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\Actionable::setActionKey() | ||||
| 	 */ | ||||
| @@ -210,6 +217,15 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\SubStyleable::setStyles() | ||||
| 	 */ | ||||
| 	public function setStyles($style, $subStyle) { | ||||
| 		$this->setStyle($style); | ||||
| 		$this->setSubStyle($subStyle); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\Styleable::setStyle() | ||||
| 	 */ | ||||
| @@ -226,15 +242,6 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Types\SubStyleable::setStyles() | ||||
| 	 */ | ||||
| 	public function setStyles($style, $subStyle) { | ||||
| 		$this->setStyle($style); | ||||
| 		$this->setSubStyle($subStyle); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Apply the given CheckBox Design | ||||
| 	 * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user