本文整理汇总了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");
}
示例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");
}
示例3: uninstall
static function uninstall()
{
graphics::remove_rules("watermark");
module::delete("watermark");
Database::instance()->query("DROP TABLE `watermarks`");
dir::unlink(VARPATH . "modules/watermark");
}
示例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");
}
示例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");
}
示例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'));
}
示例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");
}
示例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");
}
示例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="↵"></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();
}
}
示例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");
}
示例11: uninstall
static function uninstall()
{
module::delete("slideshow");
}
示例12: uninstall
public static function uninstall()
{
module::delete("fancybox");
}
示例13: uninstall
static function uninstall()
{
site_status::clear("akismet_config");
module::delete("akismet");
}
示例14: uninstall
static function uninstall()
{
/* @todo Put database table drops here */
module::delete("themeroller");
}
示例15: uninstall
static function uninstall()
{
Database::instance()->query("DROP TABLE IF EXISTS {digibug_proxies}");
module::delete("digibug");
}