299    {
  303        } else {
  305        }
  307        
  312        } else {
  314        }
  315        if (is_array($value)) {
  318                    $array = $value;
  319                    $value = array();
  320                    foreach ($array as $val => $b) {
  321                        $value[] = $val;
  322                    }
  323                    
  325                    $value = implode(
PHP_EOL, $value);
 
  326                    break;
  328                    $nvalue = '';
  329                    foreach ($value as 
$i => $v) {
 
  330                        if (is_array($v)) {
  331                            
  332                            $v = implode(";", $v);
  333                        }
  335                    }
  336                    $value = $nvalue;
  337                    break;
  338                default:
  339                    $value = '';
  340            }
  341        }
  343            return 'Not supported';
  344            $value = serialize($value);
  345        }
  346        $attr = array(
  347            'name' => "$name" . "[$ns.$directive]",
  348            'id' => "$name:$ns.$directive"
  349        );
  350        if ($value === null) {
  351            $attr['disabled'] = 'disabled';
  352        }
  353        if (isset(
$def->allowed)) {
 
  355            foreach (
$def->allowed as $val => $b) {
 
  356                $attr = array();
  357                if ($value == $val) {
  358                    $attr['selected'] = 'selected';
  359                }
  361            }
  372            $ret .= $this->
end(
'textarea');
 
  373        } else {
  374            $attr['value'] = $value;
  375            $attr['type'] = 'text';
  377        }
  379    }
element($tag, $contents, $attr=array(), $escape=true)
Prints a complete element with content inside.
end($tag)
Returns an end tag.
elementEmpty($tag, $attr=array())
prepareGenerator($config)
Give generator necessary configuration if possible.
start($tag, $attr=array())
Main function that renders object or aspect of that object.