Mode
Represents a mode for CodeMirror
Table of Contents
Properties
- $fileExtensions : array<string|int, mixed>
- $formatCode : string
- $identifier : string
- $isDefault : bool
Methods
- __construct() : mixed
- bindToFileExtensions() : self
- getBoundFileExtensions() : array<string|int, mixed>
- getFormatCode() : string
- getIdentifier() : string
- isDefault() : bool
- setAsDefault() : Mode
- setFormatCode() : Mode
Properties
$fileExtensions
protected
array<string|int, mixed>
$fileExtensions
= []
$formatCode
protected
string
$formatCode
= ''
$identifier
protected
string
$identifier
= ''
$isDefault
protected
bool
$isDefault
= false
Methods
__construct()
public
__construct(string $identifier) : mixed
Parameters
- $identifier : string
bindToFileExtensions()
public
bindToFileExtensions(array<string|int, mixed> $fileExtensions) : self
Parameters
- $fileExtensions : array<string|int, mixed>
Return values
selfgetBoundFileExtensions()
public
getBoundFileExtensions() : array<string|int, mixed>
Return values
array<string|int, mixed>getFormatCode()
public
getFormatCode() : string
Return values
stringgetIdentifier()
public
getIdentifier() : string
Return values
stringisDefault()
public
isDefault() : bool
Return values
boolsetAsDefault()
public
setAsDefault() : Mode
Return values
ModesetFormatCode()
public
setFormatCode(string $formatCode) : Mode
Parameters
- $formatCode : string