thirdparty/Zend/Feed/Entry/Atom.php
public function delete()
    {
        // Look for link rel="edit" in the entry object.
        $deleteUri = $this->link('edit');
        if (!$deleteUri) {
            /**
             * @see Zend_Feed_Exception
             */
            require_once 'Zend/Feed/Exception.php';
            throw new Zend_Feed_Exception('Cannot delete entry; no link rel="edit" is present.');
        }

        // DELETE
        $client = Zend_Feed::getHttpClient();
        do {
            $client->setUri($deleteUri);
            if (Zend_Feed::getHttpMethodOverride()) {
                $client->setHeader('X-HTTP-Method-Override', 'DELETE');
                $response = $client->request('POST');
            } else {
                $response = $client->request('DELETE');
            }
            $httpStatus = $response->getStatus();
            switch ((int) $httpStatus / 100) {
                // Success
                case 2:
                    return true;
                // Redirect
                case 3:
                    $deleteUri = $response->getHeader('Location');
                    continue;
                // Error
                default:
                    /**
                     * @see Zend_Feed_Exception
                     */
                    require_once 'Zend/Feed/Exception.php';
                    throw new Zend_Feed_Exception("Expected response code 2xx, got $httpStatus");
            }
        } while (true);
    }
public function delete()
    {
        // Look for link rel="edit" in the entry object.
        $deleteUri = $this->link('edit');
        if (!$deleteUri) {
            /**
             * @see Zend_Feed_Exception
             */
            require_once 'Zend/Feed/Exception.php';
            throw new Zend_Feed_Exception('Cannot delete entry; no link rel="edit" is present.');
        }

        // DELETE
        $client = Zend_Feed::getHttpClient();
        do {
            $client->setUri($deleteUri);
            if (Zend_Feed::getHttpMethodOverride()) {
                $client->setHeader('X-HTTP-Method-Override', 'DELETE');
                $response = $client->request('POST');
            } else {
                $response = $client->request('DELETE');
            }
            $httpStatus = $response->getStatus();
            switch ((int) $httpStatus / 100) {
                // Success
                case 2:
                    return true;
                // Redirect
                case 3:
                    $deleteUri = $response->getHeader('Location');
                    continue;
                // Error
                default:
                    /**
                     * @see Zend_Feed_Exception
                     */
                    require_once 'Zend/Feed/Exception.php';
                    throw new Zend_Feed_Exception("Expected response code 2xx, got $httpStatus");
            }
        } while (true);
    }
public function delete ( ) { // Look for link rel="edit" in the entry object. $ deleteUri = $ this -> link ( 'edit' ) ; if ( ! $ deleteUri ) { /**
             * @see Zend_Feed_Exception
             */ require_once 'Zend/Feed/Exception.php' ; throw new Zend_Feed_Exception ( 'Cannot delete entry; no link rel="edit" is present.' ) ; } // DELETE $ client = Zend_Feed :: getHttpClient ( ) ; do { $ client -> setUri ( $ deleteUri ) ; if ( Zend_Feed :: getHttpMethodOverride ( ) ) { $ client -> setHeader ( 'X-HTTP-Method-Override' , 'DELETE' ) ; $ response = $ client -> request ( 'POST' ) ; } else { $ response = $ client -> request ( 'DELETE' ) ; } $ httpStatus = $ response -> getStatus ( ) ; switch ( ( int ) $ httpStatus / 100 ) { // Success case 2 : return true ; // Redirect case 3 : $ deleteUri = $ response -> getHeader ( 'Location' ) ; continue ; // Error default : /**
                     * @see Zend_Feed_Exception
                     */ require_once 'Zend/Feed/Exception.php' ; throw new Zend_Feed_Exception ( "Expected response code 2xx, got $httpStatus" ) ; } } while ( true ) ; }
Delete an atom entry.

Delete tries to delete this entry from its feed. If the entry
does not contain a link rel="edit", we throw an error (either
the entry does not yet exist or this is not an editable
feed). If we have a link rel="edit", we do the empty-body
HTTP DELETE to that URI and check for a response of 2xx.
Usually the response would be 204 No Content, but the Atom
Publishing Protocol permits it to be 200 OK.

@return void
@throws Zend_Feed_Exception
Delete an atom entry .