public function mergePresentations($presentationsList = array(), $storageName = '', $folder = '')
    {
        if (!is_array($presentationsList) || empty($presentationsList))
            throw new Exception('Presentation list not speciefied');


        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/merge';
        if ($folder != '') {
            $strURI .= '?folder=' . $folder;
        }

        if ($storageName != '') {
            $strURI .= '&storage=' . $storageName;
        }
        $signedURI = Utils::sign($strURI);

        $json_data = json_encode($presentationsList);

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

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->Document;
        else
            return false;
    }
public function mergePresentations($presentationsList = array(), $storageName = '', $folder = '')
    {
        if (!is_array($presentationsList) || empty($presentationsList))
            throw new Exception('Presentation list not speciefied');


        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/merge';
        if ($folder != '') {
            $strURI .= '?folder=' . $folder;
        }

        if ($storageName != '') {
            $strURI .= '&storage=' . $storageName;
        }
        $signedURI = Utils::sign($strURI);

        $json_data = json_encode($presentationsList);

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

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->Document;
        else
            return false;
    }
public function mergePresentations ( $ presentationsList = array ( ) , $ storageName = '' , $ folder = '' ) { if ( ! is_array ( $ presentationsList ) || empty ( $ presentationsList ) ) throw new Exception ( 'Presentation list not speciefied' ) ; $ strURI = Product :: $ baseProductUri . '/slides/' . $ this -> getFileName ( ) . '/merge' ; if ( $ folder != '' ) { $ strURI .= '?folder=' . $ folder ; } if ( $ storageName != '' ) { $ strURI .= '&storage=' . $ storageName ; } $ signedURI = Utils :: sign ( $ strURI ) ; $ json_data = json_encode ( $ presentationsList ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'PUT' , 'json' , $ json_data ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) return $ json -> Document ; else return false ; }
Merge multiple presentations into single presentation.

@param array $presentationsList The list of presenation.
@param string $storageName The presentation storage name.
@param string $folder The presenation folder name.

@return object|boolean
@throws Exception
Merge multiple presentations into single presentation .