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

        $deleted = $this->getClassService()->deleteInstance($this->getCurrentInstance());

        $this->returnJson(array(
            'deleted' => $deleted
        ));
    }
public function delete()
    {
        if (!$this->isXmlHttpRequest()) {
            throw new \Exception("wrong request mode");
        }

        $deleted = $this->getClassService()->deleteInstance($this->getCurrentInstance());

        $this->returnJson(array(
            'deleted' => $deleted
        ));
    }
public function delete ( ) { if ( ! $ this -> isXmlHttpRequest ( ) ) { throw new \ Exception ( "wrong request mode" ) ; } $ deleted = $ this -> getClassService ( ) -> deleteInstance ( $ this -> getCurrentInstance ( ) ) ; $ this -> returnJson ( array ( 'deleted' => $ deleted ) ) ; }
Delete a delivery template

@access public
@author CRP Henri Tudor - TAO Team - {@link http://www.tao.lu}
@return void
@throws \Exception
Delete a delivery template