Welcome to mirror list, hosted at ThFree Co, Russian Federation.

XHtmlButton.php « xhtml « src - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4bc848bebf106f5e2db32794868da941441b75e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

/**
 * PHPPgAdmin v6.0.0-RC4
 */

namespace PHPPgAdmin\XHtml;

/**
 * Class to render button elements.
 */
class XHtmlButton extends XHtmlElement
{
    public function __construct($name, $text = null)
    {
        parent::__construct();

        $this->set_attribute('name', $name);

        if ($text) {
            $this->set_text($text);
        }
    }
}