本文整理汇总了PHP中app::uninstall方法的典型用法代码示例。如果您正苦于以下问题:PHP app::uninstall方法的具体用法?PHP app::uninstall怎么用?PHP app::uninstall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app
的用法示例。
在下文中一共展示了app::uninstall方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: uninstall
function uninstall()
{
$obj = $this->system->loadModel("plugins/openid_taobao/openid_taobao_center_send");
$return = $obj->edit_app_status("close");
if ($return['result'] == 'succ') {
return parent::uninstall();
} else {
echo "卸载失败";
return false;
}
}
示例2: uninstall
function uninstall()
{
if (is_dir(dirname(dirname(dirname(__FILE__))) . '/widgets/scarebuying')) {
if (!$this->deldir(dirname(dirname(dirname(__FILE__))) . '/widgets/scarebuying')) {
echo '卸载失败';
exit;
}
}
parent::uninstall();
return true;
}
示例3: uninstall
function uninstall()
{
$order_id = array();
$orderdata = $this->db->select("SELECT order_id FROM sdb_orders WHERE order_refer ='taobao';");
foreach ($orderdata as $key => $value) {
$order_id[] = $value['order_id'];
}
$this->db->exec("DELETE FROM sdb_orders WHERE order_refer ='taobao';");
if ($order_id) {
$this->db->exec("DELETE FROM sdb_order_items WHERE order_id IN(" . implode(",", $order_id) . ");");
}
$this->db->exec("DELETE FROM sdb_status WHERE status_key ='TB_SESS' or status_key ='LAST_SYNCHRONIZATION';");
return parent::uninstall();
}
示例4: uninstall
function uninstall()
{
$this->db->exec('delete from sdb_payment_cfg where pay_type ="' . $this->type . '"');
return parent::uninstall();
}
示例5: uninstall
function uninstall()
{
parent::uninstall();
return true;
}