當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Controller::delete方法代碼示例

本文整理匯總了PHP中Controller::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP Controller::delete方法的具體用法?PHP Controller::delete怎麽用?PHP Controller::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Controller的用法示例。


在下文中一共展示了Controller::delete方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: delete

 public function delete()
 {
     if (!$this->CheckParams($this->_templateobject->idField)) {
         sendBack();
     }
     $flash = Flash::Instance();
     parent::delete($this->modeltype);
     sendTo('modulecomponents', 'view', $this->_modules, array('id' => $this->_data['module_components_id']));
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:9,代碼來源:ModuledefaultsController.php

示例2: delete

 public function delete()
 {
     parent::delete('ProjectNote');
     if (isset($this->_data['project_id'])) {
         sendTo('projects', 'view', array('projects'), array('id' => $this->_data['project_id']));
     } else {
         sendTo('projects', 'index', array('projects'), array('a' => 'b'));
     }
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:9,代碼來源:ProjectnotesController.php

示例3: delete

 public function delete()
 {
     if (!$this->CheckParams($this->_templateobject->idField)) {
         sendBack();
     }
     $flash = Flash::Instance();
     parent::delete($this->modeltype);
     sendTo($this->name, 'index', $this->_modules);
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:9,代碼來源:ModulecomponentsController.php

示例4: delete

 public function delete()
 {
     $flash = Flash::Instance();
     if (!isModuleAdmin()) {
         $flash->addError('Sorry, must be a module admin to delete resource templates.');
         sendBack();
     }
     parent::delete('Resourcetemplate');
     sendTo('resourcetemplate', 'index', 'projects');
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:10,代碼來源:ResourcetemplateController.php

示例5: delete

 public function delete()
 {
     $result = parent::delete($this->modeltype);
     if (isset($this->_data['ajax'])) {
         header('Content-type: application/json');
         if ($result) {
             echo json_encode(array('success' => TRUE));
         } else {
             echo json_encode(array('success' => FALSE));
         }
         exit;
     }
     sendTo($this->name, 'index', $this->_modules);
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:14,代碼來源:SystemobjectpolicysController.php

示例6: delete

 public function delete()
 {
     $flash = Flash::Instance();
     parent::delete('Opportunity');
     sendTo('opportunitys', 'index', array('crm'));
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:6,代碼來源:OpportunitysController.php

示例7: delete

 public function delete()
 {
     parent::delete('ProjectIssueLine');
     sendBack();
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:5,代碼來源:ProjectissuelinesController.php

示例8: delete

 public function delete()
 {
     $flash = Flash::Instance();
     parent::delete('Companycontactmethod');
     sendTo($_SESSION['refererPage']['controller'], $_SESSION['refererPage']['action'], $_SESSION['refererPage']['modules'], isset($_SESSION['refererPage']['other']) ? $_SESSION['refererPage']['other'] : null);
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:6,代碼來源:CompanycontactmethodsController.php

示例9: deleteAttachmentDependences

 public function deleteAttachmentDependences(&$uri, &$params, &$criteria, $original)
 {
     Controller::delete(array('concept' => 'attachment', 'id' => isset($params['attachment']) ? $params['attachment'] : $original['URI']['id']));
 }
開發者ID:cjvaz,項目名稱:expressomail,代碼行數:4,代碼來源:DBMapping.php

示例10: header

if (!isset($_SESSION['user'])) {
    header("Location: index.php");
}
include_once "includes/DB/Controller.php";
include_once "includes/Files/Upload.php";
include_once "includes/layout/header.php";
include_once "includes/layout/nav.php";
?>

<?php 
$controller = new Controller();
// Delete item
if (isset($_GET['delete']) && is_numeric($_GET['delete'])) {
    $item = $controller->getItem($_GET['delete']);
    unlink("uploads/{$item['categoryId']}/{$item['imgName']}");
    $controller->delete($_GET['delete'], "items");
}
// Upload a new item
if (isset($_POST['uploadBtn'])) {
    $uploadErrors = array();
    $category;
    $name;
    // Get input from form
    if (isset($_POST['category']) && $_POST['category'] == "") {
        $uploadErrors[] = "Category";
    } else {
        $category = $_POST['category'];
        echo $category;
    }
    if (isset($_POST['name']) && $_POST['name'] == "") {
        $uploadErrors[] = "name";
開發者ID:fatroshi,項目名稱:FunToLearnSite,代碼行數:31,代碼來源:items.php

示例11: delete

 public function delete()
 {
     $flash = Flash::Instance();
     parent::delete($this->modeltype);
     sendBack();
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:6,代碼來源:ResourcesController.php

示例12: doImapRead

 public function doImapRead(&$uri, &$result, &$criteria, $original)
 {
     /**
      * Se a busca for apenas no banco de dados, pula-se todas as verificações 
      * deste interceptor.
      */
     if ($original['URI']['service'] == 'PostgreSQL') {
         return $result;
     }
     if ($result) {
         $imap_uri = $uri;
         $imap_uri['service'] = 'Imap';
         $imap_result = Controller::find($imap_uri, false, array('filter' => array('=', 'messageId', $result['messageId'])));
     }
     /**
      * Faz a consistência do banco com o imap
      */
     if (count($imap_result) < 1) {
         $r = Controller::delete($uri, null, $criteria);
         return false;
     } else {
         $imap_result = $imap_result[0];
     }
     /**
      * Faz a consistência do banco com o imap
      */
     if ($imap_result['messageId'] !== $result['messageId']) {
         $n = $imap_result;
         $n['followupflagId'] = 1;
         $n['backgroundColor'] = '#FF2016';
         $n['id'] = Controller::create(array('concept' => 'followupflagged'), $n);
         $result = $imap_result + $n;
     }
     $result = $result + $imap_result;
     return $result;
 }
開發者ID:cjvaz,項目名稱:expressomail,代碼行數:36,代碼來源:Helpers.php

示例13: delete

 public function delete()
 {
     // Set some defaults
     parent::delete($this->modeltype);
     sendTo($this->name, 'index', $this->_modules);
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:6,代碼來源:TicketingController.php

示例14: delete

 public function delete()
 {
     $flash = Flash::Instance();
     parent::delete('System');
     sendTo($this->name, 'index', $this->_modules);
 }
開發者ID:uzerpllp,項目名稱:uzerp,代碼行數:6,代碼來源:SystemsController.php

示例15: delete

 function delete()
 {
     SurSuppressionEchange($this->page);
     return parent::delete(true);
 }
開發者ID:bsdroot,項目名稱:speervi,代碼行數:5,代碼來源:index.php


注:本文中的Controller::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。