Replace @see tags with @inheritDoc tags
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / form / container / MultipleSelectionFormElementContainer.class.php
1 <?php
2 namespace wcf\system\form\container;
3
4 /**
5 * Provides a multiple selection form element container.
6 *
7 * @author Alexander Ebert
8 * @copyright 2001-2016 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package com.woltlab.wcf
11 * @subpackage system.form.container
12 * @category Community Framework
13 */
14 class MultipleSelectionFormElementContainer extends SelectionFormElementContainer {
15 /**
16 * container value
17 * @var array
18 */
19 protected $value = [];
20
21 /**
22 * Sets container value.
23 *
24 * @param array $value
25 */
26 public function setValue(array $value) {
27 $this->value = $value;
28 }
29
30 /**
31 * @inheritDoc
32 */
33 public function getHTML($formName) {
34 $content = '';
35 foreach ($this->getChildren() as $element) {
36 $content .= '<dd>'.$element->getHTML($formName).'</dd>';
37 }
38
39 return <<<HTML
40 <section class="section">
41 <header class="sectionHeader">
42 <h2 class="sectionTitle">{$this->getLabel()}</h2>
43 <p class="sectionDescription">{$this->getDescription()}</p>
44 </header>
45
46 <dl class="wide">
47 {$content}
48 </dl>
49 </section>
50 HTML;
51 }
52 }