Swat/SwatCascadeFlydown.php
public function addOptionsByArray(
        array $options,
        $content_type = 'text/plain'
    ) {
        foreach ($options as $parent => $child_options) {
            foreach ($child_options as $value => $title) {
                $this->addOption($parent, $value, $title, $content_type);
            }
        }
    }
public function addOptionsByArray(
        array $options,
        $content_type = 'text/plain'
    ) {
        foreach ($options as $parent => $child_options) {
            foreach ($child_options as $value => $title) {
                $this->addOption($parent, $value, $title, $content_type);
            }
        }
    }
public function addOptionsByArray ( array $ options , $ content_type = 'text/plain' ) { foreach ( $ options as $ parent => $ child_options ) { foreach ( $ child_options as $ value => $ title ) { $ this -> addOption ( $ parent , $ value , $ title , $ content_type ) ; } } }
Adds options to this option control using an associative array

@param array $options an array of options. Keys are option parent values.
Values are a 2-element associative array of
title => value pairs.
@param string $content_type optional. The content type of the option
titles. If not specified, defaults to
'text/plain'.
Adds options to this option control using an associative array