Constants

EDITOR_ATOM

EDITOR_ATOM = 'atom'

EDITOR_EMACS

EDITOR_EMACS = 'emacs'

EDITOR_IDEA

EDITOR_IDEA = 'idea'

EDITOR_MACVIM

EDITOR_MACVIM = 'macvim'

EDITOR_PHPSTORM

EDITOR_PHPSTORM = 'phpstorm'

EDITOR_SUBLIME

EDITOR_SUBLIME = 'sublime'

EDITOR_TEXTMATE

EDITOR_TEXTMATE = 'textmate'

EDITOR_VSCODE

EDITOR_VSCODE = 'vscode'

EDITOR_XDEBUG

EDITOR_XDEBUG = 'xdebug'

Methods

setFactoryClass()

setFactoryClass(string  $subclass) : mixed

Sets the class for the factory.

Parameters

string $subclass

Classname

Throws

\InvalidArgumentException

Returns

mixed —

getFactoryClass()

getFactoryClass() : string

Returns the class for the factory.

Returns

string —

hasFactoryClass()

hasFactoryClass() : bool

Returns if the class has a custom factory class.

Returns

bool —

factory()

factory() : static

Creates a rex_editor instance.

Returns

static —

Returns a rex_editor instance

getUrl()

getUrl(mixed  $filePath, mixed  $line) : mixed

Parameters

mixed $filePath
mixed $line

Returns

mixed —

getSupportedEditors()

getSupportedEditors() : mixed

Returns

mixed —

getName()

getName() : ?string

Returns the editor name, e.g. „atom“.

Returns

?string —

getBasepath()

getBasepath() : ?string

Returns

?string —

callFactoryClass()

callFactoryClass(string  $method, array  $arguments) : mixed

Calls the factory class with the given method and arguments.

Parameters

string $method

Method name

array $arguments

Array of arguments

Returns

mixed —

Result of the callback