htdocs/xoops_lib/Xoops/Form/Tab.php 1 location
|
@@ 32-41 (lines=10) @@
|
| 29 |
|
* @param string|array $caption Caption or array of all attributes |
| 30 |
|
* @param string $name unique identifier for this tab |
| 31 |
|
*/ |
| 32 |
|
public function __construct($caption, $name = null) |
| 33 |
|
{ |
| 34 |
|
if (is_array($caption)) { |
| 35 |
|
parent::__construct($caption); |
| 36 |
|
} else { |
| 37 |
|
parent::__construct([]); |
| 38 |
|
$this->setName($name); |
| 39 |
|
$this->setCaption($caption); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
/** |
| 44 |
|
* render |
htdocs/xoops_lib/Xoops/Form/TabTray.php 1 location
|
@@ 32-41 (lines=10) @@
|
| 29 |
|
* @param string|array $caption Caption or array of all attributes |
| 30 |
|
* @param string $name Unique identifier for this tray |
| 31 |
|
*/ |
| 32 |
|
public function __construct($caption, $name = null) |
| 33 |
|
{ |
| 34 |
|
if (is_array($caption)) { |
| 35 |
|
parent::__construct($caption); |
| 36 |
|
} else { |
| 37 |
|
parent::__construct([]); |
| 38 |
|
$this->setName($name); |
| 39 |
|
$this->setCaption($caption); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
/** |
| 44 |
|
* create HTML to output the form as a table |