當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。