src/lib/FormOptions.php
public static function fromArray(array $data) {
		$ret = new FormOptions();
		foreach($data as $value => $text) {
			$ret->add($value, $text);
		}
		return $ret;
	}
public static function fromArray(array $data) {
		$ret = new FormOptions();
		foreach($data as $value => $text) {
			$ret->add($value, $text);
		}
		return $ret;
	}
public static function fromArray ( array $ data ) { $ ret = new FormOptions ( ) ; foreach ( $ data as $ value => $ text ) { $ ret -> add ( $ value , $ text ) ; } return $ ret ; }
Get options from assoc array.
Get options from assoc array .