public function changeSlidePosition($old_position = '', $new_position = '', $storageName = '', $folder = '')
    {
        if ($old_position == '' || $new_position == '')
            throw new Exception('Missing Required Params');


        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/slides?OldPosition=' . $old_position . '&NewPosition=' . $new_position;
        if ($folder != '') {
            $strURI .= 'folder=' . $folder;
        }

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

        $responseStream = Utils::processCommand($signedURI, 'POST', '', '');
        $json = json_decode($responseStream);


        if ($json->Code == 200)
            return $json->Slides;
        else
            return false;
    }
public function changeSlidePosition($old_position = '', $new_position = '', $storageName = '', $folder = '')
    {
        if ($old_position == '' || $new_position == '')
            throw new Exception('Missing Required Params');


        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/slides?OldPosition=' . $old_position . '&NewPosition=' . $new_position;
        if ($folder != '') {
            $strURI .= 'folder=' . $folder;
        }

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

        $responseStream = Utils::processCommand($signedURI, 'POST', '', '');
        $json = json_decode($responseStream);


        if ($json->Code == 200)
            return $json->Slides;
        else
            return false;
    }
public function changeSlidePosition ( $ old_position = '' , $ new_position = '' , $ storageName = '' , $ folder = '' ) { if ( $ old_position == '' || $ new_position == '' ) throw new Exception ( 'Missing Required Params' ) ; $ strURI = Product :: $ baseProductUri . '/slides/' . $ this -> getFileName ( ) . '/slides?OldPosition=' . $ old_position . '&NewPosition=' . $ new_position ; if ( $ folder != '' ) { $ strURI .= 'folder=' . $ folder ; } if ( $ storageName != '' ) { $ strURI .= '&storage=' . $ storageName ; } $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'POST' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) return $ json -> Slides ; else return false ; }
Change slide position.

@param integer $old_position The old slide position.
@param integer $new_position The new slid position.
@param string $storageName The presentation storage name.
@param string $folder The presentation folder name.

@return object|boolean
@throws Exception
Change slide position .