src/Web/Service.php
public function setDeleteStatus($entryId, $deleteStatus)
    {
        $message = array(
            'entryid' => (int) $entryId,
            'entrydeletestatus' => (int) $deleteStatus,
        );
        // @todo: clean up on receiving P2XFELO12?
        return $this->communicator->callApiFunction('entry/entry_deletestatus_set', $message)->setMainResponseKey('entry');
    }
public function setDeleteStatus($entryId, $deleteStatus)
    {
        $message = array(
            'entryid' => (int) $entryId,
            'entrydeletestatus' => (int) $deleteStatus,
        );
        // @todo: clean up on receiving P2XFELO12?
        return $this->communicator->callApiFunction('entry/entry_deletestatus_set', $message)->setMainResponseKey('entry');
    }
public function setDeleteStatus ( $ entryId , $ deleteStatus ) { $ message = array ( 'entryid' => ( int ) $ entryId , 'entrydeletestatus' => ( int ) $ deleteStatus , ) ; // @todo: clean up on receiving P2XFELO12? return $ this -> communicator -> callApiFunction ( 'entry/entry_deletestatus_set' , $ message ) -> setMainResponseKey ( 'entry' ) ; }
Moves the entry into or out of the trashbin.

@param int $entryId
The id of the entry.
@param int $deleteStatus
The delete action to perform: one of the API::Entry_Delete or
API::Entry_UnDelete constants. API::Entry_UnDelete does not work for
now.

@return \Siel\Acumulus\Web\Result
The result of the webservice call. The structured response will contain
1 "entry" array, being a keyed array with keys:
- entryid
- entryproc: (description new status): 'removed' or '???'
Possible errors:
- "XCM7ELO12: Invalid entrydeletestatus value supplied": $deleteStatus
is not one of the indicated constants.
- "XCM7ELO14: Invalid entrydeletestatus value supplied": $deleteStatus
is not one of the indicated constants.
- "P2XFELO12: Requested for entryid: $entryId not found or forbidden":
$entryId does not exist or already has requested status.

@see https://siel.nl/acumulus/API/Entry/Set_Delete_Status/
Moves the entry into or out of the trashbin .