function reset() { global $wpdb; $this->last_count = 0; $this->last_access = '0000-00-00 00:00:00'; $wpdb->update($wpdb->prefix . 'redirection_items', array('last_count' => 0, 'last_access' => $this->last_access), array('group_id' => $this->id)); RE_Log::delete_for_group($this->id); }
function reset() { global $wpdb; $this->last_count = 0; $this->last_access = '0000-00-00 00:00:00'; $wpdb->query("UPDATE {$wpdb->prefix}redirection_items SET last_count=0, last_access='{$this->last_access}' WHERE group_id='{$this->id}'"); RE_Log::delete_for_group($this->id); }
static function delete_by_group($group) { global $wpdb; RE_Log::delete_for_group($group); $wpdb->query($wpdb->prepare("DELETE FROM {$wpdb->prefix}redirection_items WHERE group_id=%d", $group)); $group = Red_Group::get($wpdb->insert_id); Red_Module::flush($group->module_id); }
function delete_by_group($group) { global $wpdb; RE_Log::delete_for_group($group); $wpdb->query("DELETE FROM {$wpdb->prefix}redirection_items WHERE group_id='{$group}'"); $group = Red_Group::get($group_id); Red_Module::flush($group->module_id); }