public function deletePhotoEntry($photo, $catch)
    {
        if ($catch) {
            try {
                $this->delete($photo);
            } catch (Zend_Gdata_App_HttpException $e) {
                if ($e->getResponse()->getStatus() === 409) {
                    $entry = new Zend_Gdata_Photos_PhotoEntry($e->getResponse()->getBody());
                    $this->delete($entry->getLink('edit')->href);
                } else {
                    throw $e;
                }
            }
        } else {
            $this->delete($photo);
        }
    }
public function deletePhotoEntry($photo, $catch)
    {
        if ($catch) {
            try {
                $this->delete($photo);
            } catch (Zend_Gdata_App_HttpException $e) {
                if ($e->getResponse()->getStatus() === 409) {
                    $entry = new Zend_Gdata_Photos_PhotoEntry($e->getResponse()->getBody());
                    $this->delete($entry->getLink('edit')->href);
                } else {
                    throw $e;
                }
            }
        } else {
            $this->delete($photo);
        }
    }
public function deletePhotoEntry ( $ photo , $ catch ) { if ( $ catch ) { try { $ this -> delete ( $ photo ) ; } catch ( Zend_Gdata_App_HttpException $ e ) { if ( $ e -> getResponse ( ) -> getStatus ( ) === 409 ) { $ entry = new Zend_Gdata_Photos_PhotoEntry ( $ e -> getResponse ( ) -> getBody ( ) ) ; $ this -> delete ( $ entry -> getLink ( 'edit' ) -> href ) ; } else { throw $ e ; } } } else { $ this -> delete ( $ photo ) ; } }
Delete a PhotoEntry.

@param Zend_Gdata_Photos_PhotoEntry $photo The photo entry to
delete.
@param boolean $catch Whether to catch an exception when
modified and re-delete or throw
@return void.
@throws Zend_Gdata_App_Exception
@throws Zend_Gdata_App_HttpException
Delete a PhotoEntry .