src/Entity/XiboWidget.php
public function getById($widgetId)
    {
        $this->getLogger()->info('Getting widget ID ' . $widgetId);
        $response = $this->doGet('/playlist/widget', [
            'widgetId' => $widgetId
        ]);

        $resonse = clone $this->hydrate($response[0]);
        if ($response[0]['type'] != $this->type)
            throw new XiboApiException('Invalid widget type');

        return $this;
    }
public function getById($widgetId)
    {
        $this->getLogger()->info('Getting widget ID ' . $widgetId);
        $response = $this->doGet('/playlist/widget', [
            'widgetId' => $widgetId
        ]);

        $resonse = clone $this->hydrate($response[0]);
        if ($response[0]['type'] != $this->type)
            throw new XiboApiException('Invalid widget type');

        return $this;
    }
public function getById ( $ widgetId ) { $ this -> getLogger ( ) -> info ( 'Getting widget ID ' . $ widgetId ) ; $ response = $ this -> doGet ( '/playlist/widget' , [ 'widgetId' => $ widgetId ] ) ; $ resonse = clone $ this -> hydrate ( $ response [ 0 ] ) ; if ( $ response [ 0 ] [ 'type' ] != $ this -> type ) throw new XiboApiException ( 'Invalid widget type' ) ; return $ this ; }
Get by Id
@param int $widgetId Widget ID
@return $this|XiboWidget
@throws XiboApiException
Get by Id