本文整理汇总了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']));
}
示例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'));
}
}
示例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);
}
示例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');
}
示例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);
}
示例6: delete
public function delete()
{
$flash = Flash::Instance();
parent::delete('Opportunity');
sendTo('opportunitys', 'index', array('crm'));
}
示例7: delete
public function delete()
{
parent::delete('ProjectIssueLine');
sendBack();
}
示例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);
}
示例9: deleteAttachmentDependences
public function deleteAttachmentDependences(&$uri, &$params, &$criteria, $original)
{
Controller::delete(array('concept' => 'attachment', 'id' => isset($params['attachment']) ? $params['attachment'] : $original['URI']['id']));
}
示例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";
示例11: delete
public function delete()
{
$flash = Flash::Instance();
parent::delete($this->modeltype);
sendBack();
}
示例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;
}
示例13: delete
public function delete()
{
// Set some defaults
parent::delete($this->modeltype);
sendTo($this->name, 'index', $this->_modules);
}
示例14: delete
public function delete()
{
$flash = Flash::Instance();
parent::delete('System');
sendTo($this->name, 'index', $this->_modules);
}
示例15: delete
function delete()
{
SurSuppressionEchange($this->page);
return parent::delete(true);
}