PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

The SlideShow object

All slide shows in the Zend_Service_SlideShare component are represented using the Zend_Service_SlideShare_SlideShow object (both when retrieving and uploading new slide shows). For your reference a pseudo-code version of this class is provided below.

<?php
class Zend_Service_SlideShare_SlideShow {

    
/**
     * Retrieves the location of the slide show
     */
    
public function getLocation() {
        return 
$this->_location;
    }

    
/**
     * Gets the transcript for this slide show
     */
    
public function getTranscript() {
        return 
$this->_transcript;
    }

    
/**
     * Adds a tag to the slide show
     */
    
public function addTag($tag) {
        
$this->_tags[] = (string)$tag;
        return 
$this;
    }

    
/**
     * Sets the tags for the slide show
     */
    
public function setTags(Array $tags) {
        
$this->_tags $tags;
        return 
$this;
    }

    
/**
     * Gets all of the tags associated with the slide show
     */
    
public function getTags() {
        return 
$this->_tags;
    }

    
/**
     * Sets the filename on the local filesystem of the slide show
     * (for uploading a new slide show)
     */
    
public function setFilename($file) {
        
$this->_slideShowFilename = (string)$file;
        return 
$this;
    }

    
/**
     * Retrieves the filename on the local filesystem of the slide show
     * which will be uploaded
     */
    
public function getFilename() {
        return 
$this->_slideShowFilename;
    }

    
/**
     * Gets the ID for the slide show
     */
    
public function getId() {
        return 
$this->_slideShowId;
    }

    
/**
     * Retrieves the HTML embed code for the slide show
     */
    
public function getEmbedCode() {
        return 
$this->_embedCode;
    }

    
/**
     * Retrieves the Thumbnail URi for the slide show
     */
    
public function getThumbnailUrl() {
        return 
$this->_thumbnailUrl;
    }

    
/**
     * Sets the title for the Slide show
     */
    
public function setTitle($title) {
        
$this->_title = (string)$title;
        return 
$this;
    }

    
/**
     * Retrieves the Slide show title
     */
    
public function getTitle() {
        return 
$this->_title;
    }

    
/**
     * Sets the description for the Slide show
     */
    
public function setDescription($desc) {
        
$this->_description = (string)$desc;
        return 
$this;
    }

    
/**
     * Gets the description of the slide show
     */
    
public function getDescription() {
        return 
$this->_description;
    }

    
/**
     * Gets the numeric status of the slide show on the server
     */
    
public function getStatus() {
        return 
$this->_status;
    }

    
/**
     * Gets the textual description of the status of the slide show on
     * the server
     */
    
public function getStatusDescription() {
        return 
$this->_statusDescription;
    }

    
/**
     * Gets the permanent link of the slide show
     */
    
public function getPermaLink() {
        return 
$this->_permalink;
    }

    
/**
     * Gets the number of views the slide show has received
     */
    
public function getNumViews() {
        return 
$this->_numViews;
    }
}

Note

The above pseudo-class only shows those methods which should be used by end-user developers. Other available methods are internal to the component.

When using the Zend_Service_SlideShare component, this data class will be used frequently to browse or add new slide shows to or from the web service.

Zend Framework