function create() { $this->addProperty('font', null, lpf::string()); $this->addProperty('size', 1, lpf::int(1, 200)); $this->addProperty('color', '#FFFFFF', lpf::string()); $this->addProperty('background', '#000000', lpf::color()); $this->addProperty('text', '', lpf::string()); }
public function __construct($id = null) { $this->id = $id; // Add basic properties $this->addProperty('visible', false, lpf::bool()); $this->addProperty('id', $id, lpf::string()); $this->addProperty('zindex', 0, lpf::int(0, 65535)); $this->addProperty('left', 0, lpf::int(-32000, 32000)); $this->addProperty('top', 0, lpf::int(-32000, 32000)); $this->addProperty('width', 0, lpf::int(-32000, 32000)); $this->addProperty('height', 0, lpf::int(-32000, 32000)); $this->create(); }