Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 88... Línea 88...
88
            return '';
88
            return '';
89
        }
89
        }
Línea 90... Línea 90...
90
 
90
 
91
        $result = '';
91
        $result = '';
92
        $d = $this->docs['shapes'][$shapeName];
92
        $d = $this->docs['shapes'][$shapeName];
93
        if (isset($d['refs']["{$parentName}\$${ref}"])) {
93
        if (isset($d['refs']["{$parentName}\${$ref}"])) {
94
            $result = $d['refs']["{$parentName}\$${ref}"];
94
            $result = $d['refs']["{$parentName}\${$ref}"];
95
        } elseif (isset($d['base'])) {
95
        } elseif (isset($d['base'])) {
96
            $result = $d['base'];
96
            $result = $d['base'];
Línea 97... Línea 97...
97
        }
97
        }
Línea 111... Línea 111...
111
        }
111
        }
Línea 112... Línea 112...
112
 
112
 
113
        return $this->clean($result);
113
        return $this->clean($result);
Línea -... Línea 114...
-
 
114
    }
114
    }
115
 
115
 
116
 
116
    private function clean($content)
117
    private function clean($content)
117
    {
118
    {
118
        if (!$content) {
119
        if (!$content) {
Línea 124... Línea 125...
124
            'indent' => true,
125
            'indent' => true,
125
            'doctype' => 'omit',
126
            'doctype' => 'omit',
126
            'output-html' => true,
127
            'output-html' => true,
127
            'show-body-only' => true,
128
            'show-body-only' => true,
128
            'drop-empty-paras' => true,
129
            'drop-empty-paras' => true,
129
            'drop-font-tags' => true,
130
            'clean' => true,
130
            'drop-proprietary-attributes' => true,
131
            'drop-proprietary-attributes' => true,
131
            'hide-comments' => true,
132
            'hide-comments' => true,
132
            'logical-emphasis' => true
133
            'logical-emphasis' => true
133
        ]);
134
        ]);
134
        $tidy->cleanRepair();
135
        $tidy->cleanRepair();