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


PHP module::delete方法代码示例

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


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

示例1: uninstall

 static function uninstall()
 {
     // Delete the password table before uninstalling.
     $db = Database::instance();
     $db->query("DROP TABLE IF EXISTS {items_albumpassword};");
     module::delete("albumpassword");
 }
开发者ID:Retroguy,项目名称:gallery3-contrib,代码行数:7,代码来源:albumpassword_installer.php

示例2: uninstall

 static function uninstall()
 {
     $db = Database::instance();
     $db->query("DROP TABLE `search_records`");
     site_status::clear("search_index_out_of_date");
     module::delete("search");
 }
开发者ID:Juuro,项目名称:Dreamapp-Website,代码行数:7,代码来源:search_installer.php

示例3: uninstall

 static function uninstall()
 {
     graphics::remove_rules("watermark");
     module::delete("watermark");
     Database::instance()->query("DROP TABLE `watermarks`");
     dir::unlink(VARPATH . "modules/watermark");
 }
开发者ID:Juuro,项目名称:Dreamapp-Website,代码行数:7,代码来源:watermark_installer.php

示例4: uninstall

 static function uninstall()
 {
     $db = Database::instance();
     $db->query("DROP TABLE IF EXISTS {videos_files};");
     $db->query("DROP TABLE IF EXISTS {items_videos};");
     module::delete("videos");
 }
开发者ID:Glooper,项目名称:gallery3-contrib,代码行数:7,代码来源:videos_installer.php

示例5: uninstall

 static function uninstall()
 {
     $db = Database::instance();
     $sql = "SELECT `item_id` FROM `comments`";
     module::event("item_related_update_batch", $sql);
     $db->query("DROP TABLE IF EXISTS `comments`;");
     module::delete("comment");
 }
开发者ID:Juuro,项目名称:Dreamapp-Website,代码行数:8,代码来源:comment_installer.php

示例6: uninstall

 public static function uninstall()
 {
     $db = Database::instance();
     $db->query("DROP TABLE IF EXISTS `blog_posts`;");
     $db->query("DROP TABLE IF EXISTS `blog_comments`;");
     module::delete("blog");
     $db->delete('config', array('context' => 'blog'));
 }
开发者ID:googlecode-mirror,项目名称:s7ncms,代码行数:8,代码来源:blog_installer.php

示例7: uninstall

 static function uninstall()
 {
     module::clear_var("content_warning", "title");
     module::clear_var("content_warning", "message");
     module::clear_var("content_warning", "enter_link_text");
     module::clear_var("content_warning", "exit_link_text");
     module::clear_var("content_warning", "exit_link_url");
     module::delete("content_warning");
 }
开发者ID:webmatter,项目名称:gallery3-contrib,代码行数:9,代码来源:content_warning_installer.php

示例8: uninstall

 static function uninstall()
 {
     module::delete("piwik");
     module::clear_var("piwik", "installation_url");
     module::clear_var("piwik", "site_id");
     module::clear_var("piwik", "token_auth");
     module::clear_var("piwik", "enabled_mode");
     module::clear_var("piwik", "tracking_code");
 }
开发者ID:usef,项目名称:gallery3-modules-piwik,代码行数:9,代码来源:piwik_installer.php

示例9: display

 public static function display($table)
 {
     //sprawdzam czy byl wyslany formularz &&
     //czy dotyczy to aktualnie wyswietlanej tabeli
     //aby nie wyskoczyl blad invalid argument supplied to foreach
     if (isset($_REQUEST['submit']) && isset($_REQUEST[$table])) {
         if ($_REQUEST['submit'] == "↵") {
             module::update($table);
         } else {
             if ($_REQUEST['submit'] == "+") {
                 module::add($table);
             } else {
                 if ($_REQUEST['submit'] == "x") {
                     module::delete($table);
                 }
             }
         }
     }
     if ($result = database::getConn()->query("SELECT * FROM {$table}")) {
         //get column names, i will use it for displaying table heading and adding record
         $th = module::getColumns($table);
         echo '<br>' . $table . '<br>';
         echo '<table border="0"><thead><tr>';
         foreach ($th as $t) {
             echo '<th>' . $t . '</th>';
         }
         echo '</tr></thead><tbody>';
         while ($row = $result->fetch_array(MYSQL_ASSOC)) {
             //TODO dodac filtrowanie argumentow php_self
             echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post"><tr>';
             list($key, $value) = each($row);
             echo '<td><input type="text" name="' . $table . '[' . $key . ']" value="' . $value . '" readonly="readonly"></td>';
             while (list($key, $value) = each($row)) {
                 echo '<td><input type="text" name="' . $table . '[' . $key . ']" value="' . $value . '"></td>';
             }
             echo '<td><input type="submit" name="submit" value="&#8629;"></td>';
             echo '<td><input type="submit" name="submit" value="x"></td>';
             echo '</tr></form>';
         }
         echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post"><tr>';
         echo '<td></td>';
         reset($th);
         next($th);
         while (list(, $value) = each($th)) {
             echo '<td><input type="text" name="' . $table . '[' . $value . ']" value=""></td>';
         }
         echo '<td><input type="submit" name="submit" value="+"></td>';
         echo '</tr></form>';
         echo '</tbody></table>';
         $result->free();
     }
 }
开发者ID:rofrol,项目名称:gplafferoshop,代码行数:52,代码来源:module.php

示例10: uninstall

 static function uninstall()
 {
     // Delete all users and groups so that we give other modules an opportunity to clean up
     foreach (ORM::factory("user")->find_all() as $user) {
         $user->delete();
     }
     foreach (ORM::factory("group")->find_all() as $group) {
         $group->delete();
     }
     try {
         Session::instance()->destroy();
     } catch (Exception $e) {
     }
     $db = Database::instance();
     $db->query("DROP TABLE IF EXISTS `users`;");
     $db->query("DROP TABLE IF EXISTS `groups`;");
     $db->query("DROP TABLE IF EXISTS `groups_users`;");
     module::delete("user");
 }
开发者ID:Juuro,项目名称:Dreamapp-Website,代码行数:19,代码来源:user_installer.php

示例11: uninstall

 static function uninstall()
 {
     module::delete("slideshow");
 }
开发者ID:Juuro,项目名称:Dreamapp-Website,代码行数:4,代码来源:slideshow_installer.php

示例12: uninstall

 public static function uninstall()
 {
     module::delete("fancybox");
 }
开发者ID:googlecode-mirror,项目名称:s7ncms,代码行数:4,代码来源:fancybox_installer.php

示例13: uninstall

 static function uninstall()
 {
     site_status::clear("akismet_config");
     module::delete("akismet");
 }
开发者ID:Juuro,项目名称:Dreamapp-Website,代码行数:5,代码来源:akismet_installer.php

示例14: uninstall

 static function uninstall()
 {
     /* @todo Put database table drops here */
     module::delete("themeroller");
 }
开发者ID:Glooper,项目名称:gallery3-contrib,代码行数:5,代码来源:themeroller_installer.php

示例15: uninstall

 static function uninstall()
 {
     Database::instance()->query("DROP TABLE IF EXISTS {digibug_proxies}");
     module::delete("digibug");
 }
开发者ID:Okat,项目名称:gallery3,代码行数:5,代码来源:digibug_installer.php


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