当前位置: 首页>>代码示例>>PHP>>正文


PHP module_controller::delete方法代码示例

本文整理汇总了PHP中module_controller::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP module_controller::delete方法的具体用法?PHP module_controller::delete怎么用?PHP module_controller::delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在module_controller的用法示例。


在下文中一共展示了module_controller::delete方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ExecuteDeleteForwarder

 static function ExecuteDeleteForwarder($fw_id_pk)
 {
     global $zdbh;
     global $controller;
     runtime_hook::Execute('OnBeforeDeleteForwarer');
     //$rowforwarder = $zdbh->query("SELECT * FROM x_forwarders WHERE fw_id_pk=" . $fw_id_pk . "")->fetch();
     $numrows = $zdbh->prepare("SELECT * FROM x_forwarders WHERE fw_id_pk=:fw_id_pk");
     $numrows->bindParam(':fw_id_pk', $fw_id_pk);
     $numrows->execute();
     $rowforwarder = $numrows->fetch();
     self::$delete = true;
     // Include mail server specific file here.
     $MailServerFile = 'modules/' . $controller->GetControllerRequest('URL', 'module') . '/code/' . ctrl_options::GetSystemOption('mailserver_php');
     if (file_exists($MailServerFile)) {
         include $MailServerFile;
     }
     $sql = "UPDATE x_forwarders SET fw_deleted_ts=:time WHERE fw_id_pk=:fw_id_pk";
     $sql = $zdbh->prepare($sql);
     $sql->bindParam(':fw_id_pk', $fw_id_pk);
     $sql->bindParam(':time', time());
     $sql->execute();
     runtime_hook::Execute('OnAfterDeleteForwarder');
     self::$ok = true;
 }
开发者ID:TGates71,项目名称:Sentora-Windows-Upgrade,代码行数:24,代码来源:controller.ext.php

示例2: ExecuteDeleteFTP

 static function ExecuteDeleteFTP($ft_id_pk, $uid)
 {
     global $zdbh;
     global $controller;
     // Verify if Current user can Edit FTP Account.
     $currentuser = ctrl_users::GetUserDetail($uid);
     $sql = "SELECT * FROM x_ftpaccounts WHERE ft_acc_fk=:userid AND ft_id_pk=:editedUsrID AND ft_deleted_ts IS NULL";
     $numrows = $zdbh->prepare($sql);
     $numrows->bindParam(':userid', $currentuser['userid']);
     $numrows->bindParam(':editedUsrID', $ft_id_pk);
     $numrows->execute();
     if ($numrows->rowCount() == 0) {
         return;
     }
     // Delete User
     runtime_hook::Execute('OnBeforeDeleteFTPAccount');
     $rowftpsql = "SELECT * FROM x_ftpaccounts WHERE ft_id_pk=:ftIdPk";
     $rowftpfind = $zdbh->prepare($rowftpsql);
     $rowftpfind->bindParam(':ftIdPk', $ft_id_pk);
     $rowftpfind->execute();
     $rowftp = $rowftpfind->fetch();
     $sql = $zdbh->prepare("UPDATE x_ftpaccounts SET ft_deleted_ts=:time WHERE ft_id_pk=:ftpid");
     $sql->bindParam(':ftpid', $ft_id_pk);
     $sql->bindParam(':time', $ft_id_pk);
     $sql->execute();
     self::$delete = true;
     // Include FTP server specific file here.
     $FtpModuleFile = 'modules/' . $controller->GetControllerRequest('URL', 'module') . '/code/' . ctrl_options::GetSystemOption('ftp_php');
     if (file_exists($FtpModuleFile)) {
         include $FtpModuleFile;
     }
     $retval = TRUE;
     runtime_hook::Execute('OnAfterDeleteFTPAccount');
     return $retval;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:35,代码来源:controller.ext.php

示例3: ExecuteDeleteFTP

 static function ExecuteDeleteFTP($ft_id_pk)
 {
     global $zdbh;
     global $controller;
     runtime_hook::Execute('OnBeforeDeleteFTPAccount');
     $rowftpsql = "SELECT * FROM x_ftpaccounts WHERE ft_id_pk=:ftIdPk";
     $rowftpfind = $zdbh->prepare($rowftpsql);
     $rowftpfind->bindParam(':ftIdPk', $ft_id_pk);
     $rowftpfind->execute();
     $rowftp = $rowftpfind->fetch();
     $sql = $zdbh->prepare("UPDATE x_ftpaccounts SET ft_deleted_ts=:time WHERE ft_id_pk=:ftpid");
     $sql->bindParam(':ftpid', $ft_id_pk);
     $sql->bindParam(':time', $ft_id_pk);
     $sql->execute();
     self::$delete = true;
     // Include FTP server specific file here.
     $FtpModuleFile = 'modules/' . $controller->GetControllerRequest('URL', 'module') . '/code/' . ctrl_options::GetSystemOption('ftp_php');
     if (file_exists($FtpModuleFile)) {
         include $FtpModuleFile;
     }
     $retval = TRUE;
     runtime_hook::Execute('OnAfterDeleteFTPAccount');
     return $retval;
 }
开发者ID:elaleprieto,项目名称:sentora-core,代码行数:24,代码来源:controller.ext.php

示例4: ExecuteDeleteAlias

 static function ExecuteDeleteAlias($al_id_pk)
 {
     global $zdbh;
     global $controller;
     self::$delete = true;
     runtime_hook::Execute('OnBeforeDeleteAlias');
     //$rowalias = $zdbh->query("SELECT * FROM x_aliases WHERE al_id_pk=" . $al_id_pk . "")->Fetch();
     $bindArray = array(':id' => $al_id_pk);
     $sqlStatment = $zdbh->bindQuery("SELECT * FROM x_aliases WHERE al_id_pk=:id", $bindArray);
     $rowalias = $zdbh->returnRow();
     // Include mail server specific file here.
     if (file_exists("modules/" . $controller->GetControllerRequest('URL', 'module') . "/code/" . ctrl_options::GetSystemOption('mailserver_php') . "")) {
         include "modules/" . $controller->GetControllerRequest('URL', 'module') . "/code/" . ctrl_options::GetSystemOption('mailserver_php') . "";
     }
     $sqlStatmentUpdate = "UPDATE x_aliases SET al_deleted_ts=:time WHERE al_id_pk=:id";
     $sql = $zdbh->prepare($sqlStatmentUpdate);
     $sql->bindParam(':id', $al_id_pk);
     $sql->bindParam(':time', time());
     $sql->execute();
     runtime_hook::Execute('OnAfterDeleteAlias');
     self::$ok = true;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:22,代码来源:controller.ext.php

示例5: ExecuteDeleteDistList

 static function ExecuteDeleteDistList($dl_id_pk)
 {
     global $zdbh;
     global $controller;
     runtime_hook::Execute('OnBeforeDeleteDistList');
     self::$delete = true;
     $numrows = $zdbh->prepare("SELECT * FROM x_distlists WHERE dl_id_pk=:dl_id_pk AND dl_deleted_ts IS NULL");
     $numrows->bindParam(':dl_id_pk', $dl_id_pk);
     $numrows->execute();
     $rowdl = $numrows->fetch();
     // Include mail server specific file here.
     $MailServerFile = 'modules/' . $controller->GetControllerRequest('URL', 'module') . '/code/' . ctrl_options::GetSystemOption('mailserver_php');
     if (file_exists($MailServerFile)) {
         include $MailServerFile;
     }
     $sql = "UPDATE x_distlistusers SET du_deleted_ts=:time WHERE du_distlist_fk=:dl_id_pk";
     $sql = $zdbh->prepare($sql);
     $sql->bindParam(':dl_id_pk', $dl_id_pk);
     $sql->bindParam(':time', time());
     $sql->execute();
     $sql = "UPDATE x_distlists SET dl_deleted_ts=:time WHERE dl_id_pk=:dl_id_pk";
     $sql = $zdbh->prepare($sql);
     $sql->bindParam(':dl_id_pk', $dl_id_pk);
     $sql->bindParam(':time', time());
     $sql->execute();
     runtime_hook::Execute('OnAfterDeleteDistList');
     self::$ok = true;
 }
开发者ID:caglaroflazoglu,项目名称:sentora-core,代码行数:28,代码来源:controller.ext.php

示例6: ExecuteDeleteMailbox

 static function ExecuteDeleteMailbox($mid)
 {
     global $zdbh;
     global $controller;
     runtime_hook::Execute('OnBeforeDeleteMailbox');
     self::$delete = true;
     //$rowmailbox = $zdbh->query("SELECT * FROM x_mailboxes WHERE mb_id_pk=" . $mid . "")->Fetch();
     $numrows = $zdbh->prepare("SELECT * FROM x_mailboxes WHERE mb_id_pk=:mid");
     $numrows->bindParam(':mid', $mid);
     $numrows->execute();
     $rowmailbox = $numrows->fetch();
     // Include mail server specific file here.
     $MailServerFile = 'modules/' . $controller->GetControllerRequest('URL', 'module') . '/code/' . ctrl_options::GetSystemOption('mailserver_php');
     if (file_exists($MailServerFile)) {
         include $MailServerFile;
     }
     $time = time();
     $sql = "UPDATE x_mailboxes SET mb_deleted_ts=:time WHERE mb_id_pk=:mid";
     $sql = $zdbh->prepare($sql);
     $sql->bindParam(':time', $time);
     $sql->bindParam(':mid', $mid);
     $sql->execute();
     runtime_hook::Execute('OnAfterDeleteMailbox');
     self::$ok = true;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:25,代码来源:controller.ext.php

示例7: ExecuteDeleteFaq

 static function ExecuteDeleteFaq($fq_id_pk)
 {
     global $zdbh;
     $sql = "UPDATE x_faqs SET fq_deleted_ts=:time WHERE fq_id_pk=:fq_id_pk";
     $sql = $zdbh->prepare($sql);
     $time = time();
     $sql->bindParam(':time', $time);
     $sql->bindParam(':fq_id_pk', $fq_id_pk);
     $sql->execute();
     self::$delete = true;
     return true;
 }
开发者ID:Boter,项目名称:madmin-core,代码行数:12,代码来源:controller.ext.php


注:本文中的module_controller::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。