Captioning\Format\TtmlFile::parseAttributes PHP Method

parseAttributes() private method

private parseAttributes ( $_node, $_namespace = 'tts' )
    private function parseAttributes($_node, $_namespace = 'tts')
    {
        $attributes = array();
        foreach ($_node->attributes($_namespace, true) as $property => $value) {
            $attributes[(string) $property] = (string) $value;
        }
        if ($_node->attributes('xml', true)->id) {
            $attributes['id'] = (string) $_node->attributes('xml', true)->id;
        }
        return $attributes;
    }