Defines the slides property for the receiver.

@param SS_List $slides

@return $this
971782
public function setSlides(SS_List $slides)
    {
        $list = ArrayList::create();
        
        foreach ($slides as $slide) {
            $list->push($slide->setParentInstance($this));
        }
        
        $this->slides = $list;
    }
744858
function moveTo(priv, index) {
  check(priv.started, 'slider.started').is.True();
  check(index, 'index').is.inRange(0, priv.slides.length)();

  var toIndex = index <= priv.slides.length? index % priv.slides.length: index;
  if (priv.toIndex === toIndex) {
    return;
  }

  removeTempClasses(priv);
  removeMarkers(priv);

  priv.fromIndex = priv.toIndex;
  priv.toIndex = toIndex;

  addMarkers(priv);
  addTempClasses(priv);

  priv.phaser.startTransition();
  emitEvent(priv, slidechange(priv.fromIndex, priv.toIndex));
}
1211631
public void setOnSlideClickListener(OnSlideClickListener slideClickListener) {
        this.slideClickListener = slideClickListener;
        if (slideClickListener != null) {
            setClickable(true);
            setOnClickListener(this);
        } else {
            setClickable(false);
            setOnClickListener(null);
        }
    }
1081968
public function set($type, $messages)
    {
        foreach((array) $messages as $message) {
            parent::set($type, $message);
        }

        return $this;
    }
1067860
public function setEventsList(array $events)
    {
        $this->data->events = array_merge($this->data->events, $events);

        return $this;
    }
929109
public function addCustomProperty($propertiesList)
    {

        if ($propertiesList == '')
            throw new Exception('Properties not specified');


        //build URI to merge Docs
        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/documentProperties';

        $put_data = json_encode($propertiesList);

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'PUT', 'json', $put_data);

        $json = json_decode($responseStream);

        return $json;
    }
83443
public function prepareMedia(Media $media)
    {
        if (null === $media->getUuid()) {
            $uuid = uniqid();
            $media->setUuid($uuid);
        }
        $slide = new RemoteSlideHelper($media);
        $code = $slide->getCode();
        // update thumbnail
        switch ($slide->getType()) {
            case 'slideshare':
                try {
                    $json = json_decode(
                        file_get_contents(
                            'https://www.slideshare.net/api/oembed/2?url=https://www.slideshare.net/slideshow/embed_code/key/' . $code . '&format=json'
                        )
                    );
                    $slide->setThumbnailUrl($json->thumbnail);
                } catch (\ErrorException $e) {
                    // Silent exception - should not bubble up since failure to create a thumbnail is not a fatal error
                }

                break;
        }
    }
77676
public function insertStyles($list)
    {
        if (!is_array($list)) {
            $list = [$list];
        }
        $this->styles = $list;
        return $this;
    }
295254
protected function sort(SS_List $list)
    {
        switch ($this->owner->SortItemsBy) {
            
            // Random Sort Order:
            
            case self::SORT_RANDOM:
                
                if ($list instanceof DataList) {
                    return $list->sort(DB::get_conn()->random());
                }
                
                $items = $list->toArray();
                
                shuffle($items);
                
                return ArrayList::create($items);
                
            // Default Sort Order:
                
            default:
                
                return $list;
                
        }
    }
379292
public function setPages($pages)
    {
        foreach ($pages as $key => $dtoData) {
            $this->pages[$key] = new RunePageDto($dtoData);
        }
    
        return $this;
    }
579929
def _add_slide_number(self, slide_no):
        """"""

        if self.builder.config.slide_numbers:
            self.body.append(
                '\n<div class="slide-no">%s</div>\n' % (slide_no,),
            )
834926
public function setMemorySwap(int $memorySwap)
    {
        $this->memorySwap = $memorySwap;

        $this->hostConfig = array_merge($this->hostConfig, ['MemorySwap' => $memorySwap]);

        return $this;
    }
28637
public void setSS(java.util.Collection<String> sS) {
        if (sS == null) {
            this.sS = null;
            return;
        }

        java.util.List<String> sSCopy = new java.util.ArrayList<String>(sS.size());
        sSCopy.addAll(sS);
        this.sS = sSCopy;
    }
1129486
public static function createSlideshow($arguments)
    {
        /** @var News $record */
        if (Controller::curr() instanceof NewsHolderPage_Controller && ($record = Controller::curr()->getNews())) {
            $SiteConfig = SiteConfig::current_site_config();
            if ($SiteConfig->SlideshowInitial) {
                $template = 'NewsSlideShowFirst';
            } else {
                $template = 'NewsSlideShowAll';
            }
            $record->Image = $record->SlideshowImages()->sort('SortOrder ASC');
            $template = new SSViewer($template);

            return $template->process($record);
        }
    }
917199
public function addFailedRecords(SS_List $records, $message)
    {
        foreach ($records as $record) {
            $this->failedRecords[] = array('id' => $record->ID, 'class' => $record->ClassName, 'message' => $message);
        }
        return $this;
    }
108911
public function getCaptionClassNames(Slide $slide)
    {
        $classes = $this->styles('carousel.caption');
        
        if ($this->HideCaptionsOnMobile) {
            $classes[] = $this->style('carousel.hide-mobile');
        }
        
        return $classes;
    }
734920
public function setList($list)
    {
        $this->list = $list;
        $this->failover = $this->list;
        return $this;
    }