function execute(&$controller, &$request, &$user)
 {
     // FIXME
     $id = isset($_REQUEST['qid']) ? intval($_REQUEST['qid']) : 0;
     // FIXME
     $handler =& plzXoo::getHandler('question');
     $question =& $handler->get($id);
     if (!is_object($question)) {
         return VIEW_ERROR;
     }
     // 権限の確認
     if (!$question->isEnableDelete($user)) {
         $request->setAttribute('message', _MD_PLZXOO_ERROR_PERMISSION);
         return VIEW_ERROR;
     }
     // FIXME
     $editform = new exConfirmTicketForm();
     $editform->setErrorMessage(_MD_PLZXOO_ERROR_TICKET);
     if ($editform->init(strtolower(get_class($this))) == ACTIONFORM_POST_SUCCESS) {
         $editform->release();
         return $handler->delete($question) ? VIEW_SUCCESS : VIEW_ERROR;
     }
     $handler =& plzXoo::getHandler('category');
     $category =& $handler->get($question->getVar('cid'));
     $request->setAttribute('editform', $editform);
     $request->setAttribute('question', $question);
     $request->setAttribute('category', $category);
     return VIEW_INPUT;
 }
 function execute(&$controller, &$request, &$user)
 {
     // FIXME
     $id = isset($_REQUEST['cid']) ? intval($_REQUEST['cid']) : 0;
     // FIXME
     $handler =& plzXoo::getHandler('category');
     $obj =& $handler->get($id);
     if (!is_object($obj)) {
         return VIEW_ERROR;
     }
     // =======================================================================
     // Permission Check etc...  削除権限のチェックなどが必要ならここにコードを書く
     // =======================================================================
     // FIXME
     $editform = new exConfirmTicketForm();
     $editform->setErrorMessage(_MD_A_PLZXOO_ERROR_TICKET);
     if ($editform->init(strtolower(get_class($this))) == ACTIONFORM_POST_SUCCESS) {
         $editform->release();
         return $handler->delete($obj) ? VIEW_SUCCESS : VIEW_ERROR;
     }
     $request->setAttribute('editform', $editform);
     $request->setAttribute('obj', $obj);
     return VIEW_INPUT;
 }