| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace XoopsModules\Smartobject\Form\Elements; |
||
| 32 | public function render() |
||
| 33 | { |
||
| 34 | if (is_array($this->getValue())) { |
||
| 35 | $ret = ''; |
||
| 36 | foreach ($this->getValue() as $value) { |
||
| 37 | $ret .= "<input type='hidden' name='" . $this->getName() . "[]' id='" . $this->getName() . "' value='" . $value . "'>\n"; |
||
|
|
|||
| 38 | } |
||
| 39 | } else { |
||
| 40 | $ret = "<input type='hidden' name='" . $this->getName() . "' id='" . $this->getName() . "' value='" . $this->getValue() . "'>"; |
||
| 41 | } |
||
| 42 | |||
| 43 | return $ret; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |