private static function parseResponseRulesContainerXml(SimpleXMLElement $xml){
        $returnValue = self::parseElementXml($xml);
        $responseRules = array();
        foreach($xml->children() as $child){
            $name = $child->getName();
            $methodName = 'parse'.ucfirst($name).'Xml';

            if(method_exists(__CLASS__, $methodName)){
                $responseRules[] = self::$methodName($child);
            }else{
                $responseRules[] = self::parseResponseRuleXml($child);
            }
        }
        $returnValue['responseRules'] = $responseRules;
        return $returnValue;
    }
private static function parseResponseRulesContainerXml(SimpleXMLElement $xml){
        $returnValue = self::parseElementXml($xml);
        $responseRules = array();
        foreach($xml->children() as $child){
            $name = $child->getName();
            $methodName = 'parse'.ucfirst($name).'Xml';

            if(method_exists(__CLASS__, $methodName)){
                $responseRules[] = self::$methodName($child);
            }else{
                $responseRules[] = self::parseResponseRuleXml($child);
            }
        }
        $returnValue['responseRules'] = $responseRules;
        return $returnValue;
    }
private static function parseResponseRulesContainerXml ( SimpleXMLElement $ xml ) { $ returnValue = self :: parseElementXml ( $ xml ) ; $ responseRules = array ( ) ; foreach ( $ xml -> children ( ) as $ child ) { $ name = $ child -> getName ( ) ; $ methodName = 'parse' . ucfirst ( $ name ) . 'Xml' ; if ( method_exists ( __CLASS__ , $ methodName ) ) { $ responseRules [ ] = self :: $ methodName ( $ child ) ; } else { $ responseRules [ ] = self :: parseResponseRuleXml ( $ child ) ; } } $ returnValue [ 'responseRules' ] = $ responseRules ; return $ returnValue ; }
Parse a generic QTI element node that contains responseRules as children into an array

@param SimpleXMLElement $xml
@return array
Parse a generic QTI element node that contains responseRules as children into an array