src/SoapRequestsGenerator.php
public static function generateDeleteRequest( Entity $entity ) {
        /* Generate the DeleteRequest message */
        $deleteRequestDOM = new DOMDocument();
        $deleteNode       = $deleteRequestDOM->appendChild( $deleteRequestDOM->createElementNS( 'http://schemas.microsoft.com/xrm/2011/Contracts/Services', 'Delete' ) );
        $deleteNode->appendChild( $deleteRequestDOM->createElement( 'entityName', $entity->logicalName ) );
        $deleteNode->appendChild( $deleteRequestDOM->createElement( 'id', $entity->ID ) );

        /* Return the DOMNode */

        return $deleteNode;
    }
public static function generateDeleteRequest( Entity $entity ) {
        /* Generate the DeleteRequest message */
        $deleteRequestDOM = new DOMDocument();
        $deleteNode       = $deleteRequestDOM->appendChild( $deleteRequestDOM->createElementNS( 'http://schemas.microsoft.com/xrm/2011/Contracts/Services', 'Delete' ) );
        $deleteNode->appendChild( $deleteRequestDOM->createElement( 'entityName', $entity->logicalName ) );
        $deleteNode->appendChild( $deleteRequestDOM->createElement( 'id', $entity->ID ) );

        /* Return the DOMNode */

        return $deleteNode;
    }
public static function generateDeleteRequest ( Entity $ entity ) { /* Generate the DeleteRequest message */ $ deleteRequestDOM = new DOMDocument ( ) ; $ deleteNode = $ deleteRequestDOM -> appendChild ( $ deleteRequestDOM -> createElementNS ( 'http://schemas.microsoft.com/xrm/2011/Contracts/Services' , 'Delete' ) ) ; $ deleteNode -> appendChild ( $ deleteRequestDOM -> createElement ( 'entityName' , $ entity -> logicalName ) ) ; $ deleteNode -> appendChild ( $ deleteRequestDOM -> createElement ( 'id' , $ entity -> ID ) ) ; /* Return the DOMNode */ return $ deleteNode ; }
Generate a Delete Request

@param Entity $entity the Entity to delete

@ignore
Generate a Delete Request