当前位置: 首页>>代码示例>>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;未经允许,请勿转载。