src/Entity/XiboShellCommand.php
public function edit($name, $duration, $useDuration, $windowsCommand, $linuxCommand, $launchThroughCmd, $terminateCommand, $useTaskkill, $commandCode, $widgetId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->windowsCommand = $windowsCommand;
        $this->linuxCommand = $linuxCommand;
        $this->launchThroughCmd = $launchThroughCmd;
        $this->terminateCommand = $terminateCommand;
        $this->useTaskkill = $useTaskkill;
        $this->commandCode = $commandCode;
        $this->widgetId = $widgetId;
        $this->getLogger()->info('Editing a widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);
    }
public function edit($name, $duration, $useDuration, $windowsCommand, $linuxCommand, $launchThroughCmd, $terminateCommand, $useTaskkill, $commandCode, $widgetId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->windowsCommand = $windowsCommand;
        $this->linuxCommand = $linuxCommand;
        $this->launchThroughCmd = $launchThroughCmd;
        $this->terminateCommand = $terminateCommand;
        $this->useTaskkill = $useTaskkill;
        $this->commandCode = $commandCode;
        $this->widgetId = $widgetId;
        $this->getLogger()->info('Editing a widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);
    }
public function edit ( $ name , $ duration , $ useDuration , $ windowsCommand , $ linuxCommand , $ launchThroughCmd , $ terminateCommand , $ useTaskkill , $ commandCode , $ widgetId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> windowsCommand = $ windowsCommand ; $ this -> linuxCommand = $ linuxCommand ; $ this -> launchThroughCmd = $ launchThroughCmd ; $ this -> terminateCommand = $ terminateCommand ; $ this -> useTaskkill = $ useTaskkill ; $ this -> commandCode = $ commandCode ; $ this -> widgetId = $ widgetId ; $ this -> getLogger ( ) -> info ( 'Editing a widget ID ' . $ widgetId ) ; $ response = $ this -> doPut ( '/playlist/widget/' . $ widgetId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Edit existing Shell Command Widget.

@param string $name Optional widget name
@param int $duration Widget duration
@param int $useDuration Flag indicating whether to use custom duration
@param string $windowsCommand Enter a Windows command line compatible command
@param string $linuxCommand Enter a Android / Linux command line compatible command
@param int $launchThroughCmd Flag  Windows only, Should the player launch this command through the windows command line (cmd.exe)? This is useful for batch files, if you try to terminate this command only the command line will be terminated
@param int $terminateCommand Flag Should the player forcefully terminate the command after the duration specified, 0 to let the command terminate naturally
@param int $useTaskkill Flag Windows only, should the player use taskkill to terminate commands
@param string $commandCode Enter a reference code for exiting command in CMS
@param int $widgetId the Widget ID
@return XiboShellCommand
Edit existing Shell Command Widget .