protected function compileRulesets(array $rulesets)
    {
        $out = [];

        $elements = $rulesets['data']['sDEF']['lDEF']['ruleset']['el'];
        foreach ($elements as $container) {
            if (isset($container['container']['el'])) {
                $values = [];
                foreach ($container['container']['el'] as $key => $value) {
                    if ($key === 'title') {
                        continue;
                    }
                    $values[$key] = $value['vDEF'];
                }
                $out[] = $this->expandValuesInRuleset($values);
            }
        }

        return $out;
    }
protected function compileRulesets(array $rulesets)
    {
        $out = [];

        $elements = $rulesets['data']['sDEF']['lDEF']['ruleset']['el'];
        foreach ($elements as $container) {
            if (isset($container['container']['el'])) {
                $values = [];
                foreach ($container['container']['el'] as $key => $value) {
                    if ($key === 'title') {
                        continue;
                    }
                    $values[$key] = $value['vDEF'];
                }
                $out[] = $this->expandValuesInRuleset($values);
            }
        }

        return $out;
    }
protected function compileRulesets ( array $ rulesets ) { $ out = [ ] ; $ elements = $ rulesets [ 'data' ] [ 'sDEF' ] [ 'lDEF' ] [ 'ruleset' ] [ 'el' ] ; foreach ( $ elements as $ container ) { if ( isset ( $ container [ 'container' ] [ 'el' ] ) ) { $ values = [ ] ; foreach ( $ container [ 'container' ] [ 'el' ] as $ key => $ value ) { if ( $ key === 'title' ) { continue ; } $ values [ $ key ] = $ value [ 'vDEF' ] ; } $ out [ ] = $ this -> expandValuesInRuleset ( $ values ) ; } } return $ out ; }
Compiles all FlexForm rule sets.

@param array $rulesets
@return array
Compiles all FlexForm rule sets .