Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 60... Línea 60...
60
     * @param string    $description    localised long description
60
     * @param string    $description    localised long description
61
     * @param int|null  $defaultvalue   Value of the settings in bytes
61
     * @param int|null  $defaultvalue   Value of the settings in bytes
62
     * @param int|null  $defaultunit    GB, MB, etc. (in bytes)
62
     * @param int|null  $defaultunit    GB, MB, etc. (in bytes)
63
     */
63
     */
64
    public function __construct(string $name, string $visiblename, string $description,
64
    public function __construct(string $name, string $visiblename, string $description,
65
            int $defaultvalue = null, int $defaultunit = null) {
65
            ?int $defaultvalue = null, ?int $defaultunit = null) {
Línea 66... Línea 66...
66
 
66
 
Línea 67... Línea 67...
67
        $defaultsetting = self::parse_bytes($defaultvalue);
67
        $defaultsetting = self::parse_bytes($defaultvalue);
68
 
68