PHP Класс ManagerAPI, Halite

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $request ) Init database, sanitize parameters, and check if worker is valid

Защищенные методы

Метод Описание
botFile ( ) Allow workers to download and post bot files
botHash ( ) Allow workers to get the hash of a bot file so that they know that they downloaded the file correctly
compile ( ) Allow worker to post the result of their compilation
game ( ) Allow workers to post the result of their game
task ( ) Delegate a task to a workers

Приватные методы

Метод Описание
getAPIKey ( )
getTrueskillMatchQuality ( $rankingValues )
isValidWorker ( ) Checks HTTP parameters and request IP to make sure that the client provided a valid API key

Описание методов

__construct() публичный Метод

Init database, sanitize parameters, and check if worker is valid
public __construct ( $request )

botFile() защищенный Метод

Allow workers to download and post bot files
protected botFile ( )

botHash() защищенный Метод

Allow workers to get the hash of a bot file so that they know that they downloaded the file correctly
protected botHash ( )

compile() защищенный Метод

Allow worker to post the result of their compilation
protected compile ( )

game() защищенный Метод

Allow workers to post the result of their game
protected game ( )

task() защищенный Метод

Delegate a task to a workers
protected task ( )