Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 196... Línea 196...
196
            return $this->_prepareValue($cleaned[0], $assoc);
196
            return $this->_prepareValue($cleaned[0], $assoc);
197
        }
197
        }
198
    }
198
    }
Línea 199... Línea 199...
199
 
199
 
-
 
200
    public function export_for_template(renderer_base $output) {
-
 
201
        // For multi-selects, if there is not already a size set, then set a sensible default.
-
 
202
        if ($this->getMultiple()) {
-
 
203
            if (!isset($this->_attributes['size'])) {
-
 
204
                $this->_attributes['size'] = min(count($this->_options), 10);
-
 
205
            }
-
 
206
        }
200
    public function export_for_template(renderer_base $output) {
207
 
Línea 201... Línea 208...
201
        $context = $this->export_for_template_base($output);
208
        $context = $this->export_for_template_base($output);
202
 
209
 
203
        $options = [];
210
        $options = [];