public function updateBookmark($bookmarkName, $bookmarkText)
    {
        if ($bookmarkName == '')
            throw new Exception('Bookmark name not specified');
        
        if ($bookmarkText == '')
            throw new Exception('Bookmark text not specified');
        
        //build URI
        $strURI = Product::$baseProductUri . '/words/' . $this->getFileName() . '/bookmarks/' . $bookmarkName;

        //sign URI
        $signedURI = Utils::sign($strURI);
        
        $post_data_arr['Text'] = $bookmarkText;
        $postData = json_encode($post_data_arr);
        $responseStream = Utils::processCommand($signedURI, 'POST', 'JSON', $postData);

        $json = json_decode($responseStream);        
        
        if ($json->Code == 200) {
            return true;
        }
        
        AsposeApp::getLogger()->warning('Error occured, http 200 code was not found.', array(
            'json-code' => $json->Code,
        ));
        return false;
    }
public function updateBookmark($bookmarkName, $bookmarkText)
    {
        if ($bookmarkName == '')
            throw new Exception('Bookmark name not specified');
        
        if ($bookmarkText == '')
            throw new Exception('Bookmark text not specified');
        
        //build URI
        $strURI = Product::$baseProductUri . '/words/' . $this->getFileName() . '/bookmarks/' . $bookmarkName;

        //sign URI
        $signedURI = Utils::sign($strURI);
        
        $post_data_arr['Text'] = $bookmarkText;
        $postData = json_encode($post_data_arr);
        $responseStream = Utils::processCommand($signedURI, 'POST', 'JSON', $postData);

        $json = json_decode($responseStream);        
        
        if ($json->Code == 200) {
            return true;
        }
        
        AsposeApp::getLogger()->warning('Error occured, http 200 code was not found.', array(
            'json-code' => $json->Code,
        ));
        return false;
    }
public function updateBookmark ( $ bookmarkName , $ bookmarkText ) { if ( $ bookmarkName == '' ) throw new Exception ( 'Bookmark name not specified' ) ; if ( $ bookmarkText == '' ) throw new Exception ( 'Bookmark text not specified' ) ; //build URI $ strURI = Product :: $ baseProductUri . '/words/' . $ this -> getFileName ( ) . '/bookmarks/' . $ bookmarkName ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ post_data_arr [ 'Text' ] = $ bookmarkText ; $ postData = json_encode ( $ post_data_arr ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'POST' , 'JSON' , $ postData ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) { return true ; } AsposeApp :: getLogger ( ) -> warning ( 'Error occured, http 200 code was not found.' , array ( 'json-code' => $ json -> Code , ) ) ; return false ; }
Update Bookmark Text of a Word

@return boolean
@throws Exception
Update Bookmark Text of a Word