API docs     >     Files     >     Filetypes

Filetypes->setReadonly

Description

setReadonly ( $filetypeId, $value = 1 )
Sets/removes the "readonly" flag of a Filetype

Parameters

$filetypeId
int
Filetype Id
$value
int
(optional) "readonly" flag (1 for set, 0 for unset)