public function delete()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new common_exception_BadRequest('wrong request mode');
        }

        if ($this->hasRequestParameter('uri')) {
            return $this->forward('deleteResource', null, null, (array('id' => tao_helpers_Uri::decode($this->getRequestParameter('uri')))));
        } elseif ($this->hasRequestParameter('classUri')) {
            return $this->forward('deleteClass', null, null, (array('id' => tao_helpers_Uri::decode($this->getRequestParameter('classUri')))));
        } else {
            throw new common_exception_MissingParameter();
        }
    }
public function delete()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new common_exception_BadRequest('wrong request mode');
        }

        if ($this->hasRequestParameter('uri')) {
            return $this->forward('deleteResource', null, null, (array('id' => tao_helpers_Uri::decode($this->getRequestParameter('uri')))));
        } elseif ($this->hasRequestParameter('classUri')) {
            return $this->forward('deleteClass', null, null, (array('id' => tao_helpers_Uri::decode($this->getRequestParameter('classUri')))));
        } else {
            throw new common_exception_MissingParameter();
        }
    }
public function delete ( ) { if ( ! $ this -> isXmlHttpRequest ( ) ) { throw new common_exception_BadRequest ( 'wrong request mode' ) ; } if ( $ this -> hasRequestParameter ( 'uri' ) ) { return $ this -> forward ( 'deleteResource' , null , null , ( array ( 'id' => tao_helpers_Uri :: decode ( $ this -> getRequestParameter ( 'uri' ) ) ) ) ) ; } elseif ( $ this -> hasRequestParameter ( 'classUri' ) ) { return $ this -> forward ( 'deleteClass' , null , null , ( array ( 'id' => tao_helpers_Uri :: decode ( $ this -> getRequestParameter ( 'classUri' ) ) ) ) ) ; } else { throw new common_exception_MissingParameter ( ) ; } }
delete an instance or a class
called via ajax

@throws common_exception_BadRequest
@throws common_exception_MissingParameter
delete an instance or a class called via ajax