FML 1.2
This commit is contained in:
		| @@ -2,22 +2,37 @@ | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| use FML\Types\Scriptable; | ||||
| use FML\Stylesheet\Style3d; | ||||
| use FML\Types\Scriptable; | ||||
|  | ||||
| /** | ||||
|  * Frame3d Control | ||||
|  * (CMlFrame) | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  * @author    steeffeen | ||||
|  * @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder | ||||
|  * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 | ||||
|  * @license   http://www.gnu.org/licenses/ GNU General Public License, Version 3 | ||||
|  */ | ||||
| class Frame3d extends Frame implements Scriptable { | ||||
| 	/* | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE_BaseStation = 'BaseStation'; | ||||
| 	const STYLE_BaseBoxCase = 'BaseBoxCase'; | ||||
| 	const STYLE_Titlelogo   = 'Titlelogo'; | ||||
| 	const STYLE_ButtonBack  = 'ButtonBack'; | ||||
| 	const STYLE_ButtonNav   = 'ButtonNav'; | ||||
| 	const STYLE_ButtonH     = 'ButtonH'; | ||||
| 	const STYLE_Station3x3  = 'Station3x3'; | ||||
| 	const STYLE_Title       = 'Title'; | ||||
| 	const STYLE_TitleEditor = 'TitleEditor'; | ||||
| 	const STYLE_Window      = 'Window'; | ||||
|  | ||||
| 	/* | ||||
| 	 * Protected Properties | ||||
| 	 */ | ||||
| 	protected $style3dId = ''; | ||||
| 	/** @var Style3d $style3d */ | ||||
| 	protected $style3d = null; | ||||
| 	protected $scriptEvents = 0; | ||||
|  | ||||
| @@ -49,8 +64,8 @@ class Frame3d extends Frame implements Scriptable { | ||||
| 	 * @return \FML\Controls\Frame3d | ||||
| 	 */ | ||||
| 	public function setStyle3dId($style3dId) { | ||||
| 		$this->style3dId = (string) $style3dId; | ||||
| 		$this->style3d = null; | ||||
| 		$this->style3dId = (string)$style3dId; | ||||
| 		$this->style3d   = null; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| @@ -66,7 +81,6 @@ class Frame3d extends Frame implements Scriptable { | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Scriptable::setScriptEvents() | ||||
| 	 */ | ||||
| 	public function setScriptEvents($scriptEvents) { | ||||
| @@ -75,7 +89,6 @@ class Frame3d extends Frame implements Scriptable { | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Controls\Frame::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| @@ -83,8 +96,7 @@ class Frame3d extends Frame implements Scriptable { | ||||
| 		if ($this->style3d) { | ||||
| 			$this->style3d->checkId(); | ||||
| 			$xmlElement->setAttribute('style3d', $this->style3d->getId()); | ||||
| 		} | ||||
| 		else if ($this->style3dId) { | ||||
| 		} else if ($this->style3dId) { | ||||
| 			$xmlElement->setAttribute('style3d', $this->style3dId); | ||||
| 		} | ||||
| 		if ($this->scriptEvents) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user