22 lines
292 B
PHP
22 lines
292 B
PHP
|
<?php
|
||
|
|
||
|
class InitAPI
|
||
|
{
|
||
|
public function __construct()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public static function handleInitTasks($task, $request)
|
||
|
{
|
||
|
switch ($task) {
|
||
|
case "init":
|
||
|
$result = Setup::init($request);
|
||
|
break;
|
||
|
case "restore":
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
return $result;
|
||
|
}
|
||
|
}
|