/** * Execute api command * * @param string $command Name of command to execute * @param array $arguments List of arguments for the command */ public function executeCommand($command, $arguments) { $subcommand = null; if (!empty($arguments[0])) { $subcommand = $arguments[0]; } // define frontend language if (!defined('FRONTEND_LANG_ID')) { define('FRONTEND_LANG_ID', 1); } switch ($command) { case 'News': switch ($subcommand) { case 'Cron': $objNews = new NewsManager(); $objNews->createRSS(); break; } break; default: break; } }