Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 26... Línea 26...
26
    public function setup($config)
26
    public function setup($config)
27
    {
27
    {
28
        if ($config->get('HTML.SafeIframe')) {
28
        if ($config->get('HTML.SafeIframe')) {
29
            $this->safe = true;
29
            $this->safe = true;
30
        }
30
        }
-
 
31
        $attrs = array(
-
 
32
            'src' => 'URI#embedded',
-
 
33
            'width' => 'Length',
-
 
34
            'height' => 'Length',
-
 
35
            'name' => 'ID',
-
 
36
            'scrolling' => 'Enum#yes,no,auto',
-
 
37
            'frameborder' => 'Enum#0,1',
-
 
38
            'longdesc' => 'URI',
-
 
39
            'marginheight' => 'Pixels',
-
 
40
            'marginwidth' => 'Pixels',
-
 
41
        );
-
 
42
 
-
 
43
        if ($config->get('HTML.Trusted')) {
-
 
44
            $attrs['allowfullscreen'] = 'Bool#allowfullscreen';
-
 
45
        }
-
 
46
 
31
        $this->addElement(
47
        $this->addElement(
32
            'iframe',
48
            'iframe',
33
            'Inline',
49
            'Inline',
34
            'Flow',
50
            'Flow',
35
            'Common',
51
            'Common',
36
            array(
52
            $attrs
37
                'src' => 'URI#embedded',
-
 
38
                'width' => 'Length',
-
 
39
                'height' => 'Length',
-
 
40
                'name' => 'ID',
-
 
41
                'scrolling' => 'Enum#yes,no,auto',
-
 
42
                'frameborder' => 'Enum#0,1',
-
 
43
                'longdesc' => 'URI',
-
 
44
                'marginheight' => 'Pixels',
-
 
45
                'marginwidth' => 'Pixels',
-
 
46
            )
-
 
47
        );
53
        );
48
    }
54
    }
49
}
55
}
Línea 50... Línea 56...
50
 
56