Constants

ACTION_SHOW

ACTION_SHOW

ACTION_NAVIGATE_UP

ACTION_NAVIGATE_UP

ACTION_NAVIGATE_ROOT

ACTION_NAVIGATE_ROOT

ACTION_OPEN_FOLDER

ACTION_OPEN_FOLDER

ACTION_INSPECT_FILE

ACTION_INSPECT_FILE

ACTION_ADD_FILE

ACTION_ADD_FILE

ACTION_ERASE_FILE

ACTION_ERASE_FILE

WIDGET_NAME

WIDGET_NAME

CACHE_FOLDER_PATH

CACHE_FOLDER_PATH

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new directory browser instance

Parameters

\ManiaControl\ManiaControl $maniaControl

handleActionShow()

handleActionShow(array  $actionCallback, \ManiaControl\Players\Player  $player) 

Handle 'Show' action

Parameters

array $actionCallback
\ManiaControl\Players\Player $player

showManiaLink()

showManiaLink(\ManiaControl\Players\Player  $player, mixed  $nextFolder = null) 

Build and show the Browser ManiaLink to the given Player

Parameters

\ManiaControl\Players\Player $player
mixed $nextFolder

handleNavigateRoot()

handleNavigateRoot(array  $actionCallback, \ManiaControl\Players\Player  $player) 

Handle 'NavigateRoot' action

Parameters

array $actionCallback
\ManiaControl\Players\Player $player

handleNavigateUp()

handleNavigateUp(array  $actionCallback, \ManiaControl\Players\Player  $player) 

Handle 'NavigateUp' action

Parameters

array $actionCallback
\ManiaControl\Players\Player $player

handleOpenFolder()

handleOpenFolder(array  $actionCallback, \ManiaControl\Players\Player  $player) 

Handle 'OpenFolder' page action

Parameters

array $actionCallback
\ManiaControl\Players\Player $player

handleInspectFile()

handleInspectFile(array  $actionCallback, \ManiaControl\Players\Player  $player) 

Handle 'InspectFile' page action

Parameters

array $actionCallback
\ManiaControl\Players\Player $player

handleAddFile()

handleAddFile(array  $actionCallback, \ManiaControl\Players\Player  $player) 

Handle 'AddFile' page action

Parameters

array $actionCallback
\ManiaControl\Players\Player $player

handleEraseFile()

handleEraseFile(array  $actionCallback, \ManiaControl\Players\Player  $player) 

Handle 'EraseFile' page action

Parameters

array $actionCallback
\ManiaControl\Players\Player $player

scanMapFiles()

scanMapFiles(string  $directory) : array|boolean

Scan the given directory for Map files

Parameters

string $directory

Returns

array|boolean

isMapFileName()

isMapFileName(string  $fileName) : boolean

Check if the given file name represents a Map file

Parameters

string $fileName

Returns

boolean

buildActionRegex()

buildActionRegex(string  $actionName) : string

Build the regex to register for the given action

Parameters

string $actionName

Returns

string