Skip to content

class Manager

Oliver edited this page Apr 25, 2020 · 1 revision

www/php-ircbot/Classes/Library/IRC/Command/Manager.php


Manager

The execution of commands, and dependencies.

Package

IRCBot\Library

author

Overview

Public Properties

No public properties found

Constants

No constants found

Public Methods

activateCommand() | activatePackage() | executeCommand() |

Properties

activeCommands

protected $activeCommands

activePackages

protected $activePackages

availableCommands

protected $availableCommands

availablePackages

protected $availablePackages

directoryOfCommands

Replace this by configuration in version

protected $directoryOfCommands : string

Array

Methods

activateCommand()

public activateCommand(mixed $commandName, mixed $packageName) : mixed

activatePackage()

public activatePackage(mixed $packageName) : mixed

checkDependencies()

private checkDependencies(mixed $commandName, mixed $packageName) : mixed

executeCommand()

public executeCommand(mixed $commandName, mixed $packageName) : mixed

getAvailablePackagesAndCommands()

Read the directory recursive and get all available packages (folders) and commands (files).

Saves them in the properties and a cache file. If the cache file already exists, use this instad.

private getAvailablePackagesAndCommands() : bool

Tags

laodPackages()

private laodPackages() : mixed

loadCommands()

private loadCommands() : mixed

readCache()

private readCache() : mixed

readEntireDirectory()

private readEntireDirectory() : mixed


\ » Classes » Manager

Clone this wiki locally