Controllers\xAPI\DocumentController::destroy PHP Méthode

destroy() public méthode

Deletes a document.
public destroy ( ) : Response
Résultat Response
    public function destroy()
    {
        // Runs filters.
        if ($result = $this->checkVersion()) {
            return $result;
        }
        if (!\LockerRequest::hasParam($this->identifier)) {
            throw new Exceptions\Exception('Multiple document DELETE not permitted');
        }
        return $this->completeDelete();
    }