src/Entity/XiboText.php
public function create($name, $duration, $useDuration, $effect, $speed, $backgroundColor, $marqueeInlineSelector, $text, $javaScript, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->backgroundColor = $backgroundColor;
        $this->marqueeInlineSelector = $marqueeInlineSelector;
        $this->text = $text;
        $this->javaScript = $javaScript; 
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating a new Text widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/text/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create($name, $duration, $useDuration, $effect, $speed, $backgroundColor, $marqueeInlineSelector, $text, $javaScript, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->backgroundColor = $backgroundColor;
        $this->marqueeInlineSelector = $marqueeInlineSelector;
        $this->text = $text;
        $this->javaScript = $javaScript; 
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating a new Text widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/text/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ name , $ duration , $ useDuration , $ effect , $ speed , $ backgroundColor , $ marqueeInlineSelector , $ text , $ javaScript , $ playlistId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> effect = $ effect ; $ this -> speed = $ speed ; $ this -> backgroundColor = $ backgroundColor ; $ this -> marqueeInlineSelector = $ marqueeInlineSelector ; $ this -> text = $ text ; $ this -> javaScript = $ javaScript ; $ this -> playlistId = $ playlistId ; $ this -> getLogger ( ) -> info ( 'Creating a new Text widget in playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/text/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create new Text Widget.

@param string $name Optional widget name
@param int $duration Widget Duration
@param int $useDuration Flag indicating whether to use custom duration
@param string $effect Effect that will be used to transitions between items, available options: fade, fadeout, scrollVert, scollHorz, flipVert, flipHorz, shuffle, tileSlide, tileBlind, marqueeUp, marqueeDown, marqueeRight, marqueeLeft
@param int $speed The transition speed of the selected effect in milliseconds (1000 = normal) or the Marquee speed in a low to high scale (normal = 1)
@param string $backgroundColor A HEX color to use as the background color of this widget
@param string $marqueeInlineSelector The selector to use for stacking marquee items in a line when scrolling left/right
@param string $text The Text to display in the widget
@param string $javaScript Optional JavaScript
@param int $playlistId Playlist ID
@return XiboText
Create new Text Widget .