TrackManiaControl/application/core/Libs/FML/Controls/Quads/Quad_Emblems.php

44 lines
895 B
PHP
Raw Normal View History

<?php
namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
2014-01-12 00:51:46 +01:00
* Quad Class for 'Emblems' Style
*
* @author steeffeen
2014-04-13 18:21:40 +02:00
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Emblems extends Quad {
2014-01-21 20:30:40 +01:00
/*
* Constants
*/
const STYLE = 'Emblems';
const SUBSTYLE_0 = '#0';
const SUBSTYLE_1 = '#1';
const SUBSTYLE_2 = '#2';
/**
2014-01-19 19:30:21 +01:00
* Create a new Quad_Emblems Control
2013-12-31 02:55:19 +01:00
*
2014-01-19 19:30:21 +01:00
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Emblems
*/
public static function create($id = null) {
$quadEmblems = new Quad_Emblems($id);
return $quadEmblems;
}
/**
* Construct a new Quad_Emblems Control
*
* @param string $id (optional) Control Id
*/
2013-12-31 02:55:19 +01:00
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}