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(); }