Wipe Action
@param array $get
@param array $post
@param array $data
516528
public function wipeAction($get, $post, $data)
    {
        // Wipe test table and check if was successful
        if ($this->db->query('TRUNCATE TABLE test')) {
            Tools::redir($this->basepath . 'DB?success');
        } else {
            Tools::redir($this->basepath . 'DB?fail');
        }
    }
1218239
function purge_cache( $path, $method = 'GET', $params = array() ) {
			$this->_logger->entrance( "{$method}:{$path}" );

			$cache_key = $this->get_cache_key( $path, $method, $params );

			self::$_cache->purge( $cache_key );
		}
559044
public function clear($args = array(), $assoc_args = array())
    {
        if (defined('WP_CACHE') && WP_CACHE && class_exists('\zencache')) {
            $wiped = zencache::wipe();
            WP_CLI::success("$wiped file(s) were cleared from the cache.");
        } else {
            WP_CLI::warning('ZenCache is not installed or enabled');
        }
    }
1166273
function clear($mailbox = null, $uids = null)
    {
        $this->remove_index($mailbox, true);
        $this->remove_thread($mailbox);
        $this->remove_message($mailbox, $uids);
    }
520039
private function trashCollectFiles($data = null)
    {
        $this->debug->groupCollapsed(__METHOD__);
        $data = isset($data)
            ? $data
            : $this->data;
        foreach ($data['pages'] as $info) {
            foreach ($info['values'] as $a) {
                if (\is_array($a) && !empty($a['tmp_name']) && \file_exists($a['tmp_name'])) {
                    $this->debug->log('deleting '.$a['tmp_name']);
                    \unlink($a['tmp_name']);
                }
            }
        }
        $this->debug->groupEnd();
        return;
    }
1296707
private static function unsetValues(array &$data, array &$removeValues)
    {
        foreach ($removeValues as $value) {
            $position = \array_search($value, $data);
            if ($position !== false) {
                unset($data[$position]);
            }
        }
        return $data;
    }
1009573
public function wipeAll() {
		$this->adapter->exec('SET FOREIGN_KEY_CHECKS=0;');
		foreach($this->getTables() as $t) {
	 		try{
	 			$this->adapter->exec("drop table if exists`$t`");
	 		}
	 		catch(Exception $e){}
	 		try{
	 			$this->adapter->exec("drop view if exists`$t`");
	 		}
	 		catch(Exception $e){}
		}
		$this->adapter->exec('SET FOREIGN_KEY_CHECKS=1;');
	}
194950
function delete(array $where, $returning = null) {
		$query = $this->getQueryWriter()->reset();
		$query->write("DELETE FROM", $this->conn->quoteName($this->name));
		$query->write("WHERE")->criteria($where);
		if (strlen($returning)) {
			$query->write("RETURNING", $returning);
		}
		return $this->execute($query);
	}
402445
public static function RemovePostData ($name) {
		if (static::HasClassVar('data', $name)) {
			static::RemoveClassVar('data', $name);
		}
		if (Arrays::ExistsLowest($_POST, array_merge(['data'], (array) $name))) {
			$_POST = Arrays::RemoveLowest($_POST, array_merge(['data'], (array) $name));
		}
	}
851627
public function delete($url, $data=null)
    {
      $url = $this->join($url);
      return $this->request(API::API_METHOD_DEL, $url, $data);
    }
780039
function destroyManager($force=false)
    {
        if ($this->getManager($force) !== null) {
            $key = $this->getSessionKey();
            $this->session->del($key);
        }
    }
121762
public function indexAction ($get, $post, $data)
    {
        $view = new View();
        
        // Set Page title
        Registry::set('APP.title', 'Home :: ' . Registry::get('APP.title'));
        
        // Set cache
        $view->cache = $this->db->cacheGet();   
        $view->get = $get;
        $view->post = $post;
        $view->data = $data;
        $view->request = Registry::get('Request');        
        
        return $view->render();
    }
151457
function performRemove() {
        UserService.remove(vm.user)
          .then(deleteUserSuccess)
          .catch(deleteUserCatch);

        function deleteUserSuccess() {
          Toast.show({type: 'success', text: 'User ' + vm.displayName + ' deleted'});
          vm.showList();
        }

        function deleteUserCatch(err) {
          Toast.show({
            type: 'warn',
            text: 'Error while deleting user ' + vm.displayName,
            link: {state: $state.$current, params: $stateParams}
          });

          if (form && err) {
            form.setResponseErrors(err, vm.errors);
          }
        }
      }
1171359
function post_deactivate() {
		check_ajax_referer( (string) __CLASS__, 'nonce' );

		$this->post_deactivate_or_cancel();

		if ( empty( $_POST['id'] ) ) {

			wp_send_json( [] );

			return;
		}
		$this->call_api(
			array(
				'type'    => 'deactivate',
				'id'      => $_POST['id'],
				'comment' => isset( $_POST['msg'] ) ? $_POST['msg'] : '',
			)
		);
		wp_send_json( [] );

	}
760588
protected function set_post_data( $data, $post ) {
		$data['post_title'] = $post->post_title;
		$data['post']       = $post;
		if ( $this->user_can( 'read_post' ) ) {
			$data['edit_link'] = get_edit_post_link( $post->ID );
		}

		foreach ( $this->get_data_field_settings() as $k => $v ) {
			$data[ $k ] = $this->sanitize_input( $this->app->utility->array_get( $data, $k ), $v['type'] );
		}

		return $data;
	}
623658
function delete($r, $param)
    {
        $this->setUp($param);

        if (isset($_POST['file'])) {
            $file = _WWW.$this->articlePatch.basename(rawurldecode($_POST['file']));
            $mini = _WWW.$this->articlePatch.'mini_'.basename(rawurldecode($_POST['file']));

            if (file_exists($file)) {
                unlink($file);
            }
            if (file_exists($mini)) {
                unlink($mini);
            }
        }
    }
238174
protected function _cleanupData(array $data = array())
    {
        $clean = array();

        foreach ($data as $key => $value)
        {
            if (!empty($value)) {
                $clean[$key] = $value;
            }
        }

        return $clean;
    }