glFusion Wiki

Site Tools


glfusion:development:api:sanitize_class:start

sanitize.class.php

This class is responsible for handling data retrieval from the browser. All variables are properly run through stripslashes() if necessary so the programmer should not have to worry about that function.

This class also supports retrieving URL variables when URL Rewrite enabled.

glFusion creates a global handle to this class, $inputHandler.

Data Retrieval Functions

  • getVar - Retrieves a $_POST, $_GET, $_REQUEST, $_ENV, or $_COOKIE variable.
  • buttonCheck - Find which button was pressed on form.

Filtering Functions

  • filterVar - Filters and returns a variable
  • censor - Censors a text string for bad words.
  • prepareForDB - Properly escapes a string for use in a SQL query

URL Rewrite Functions

  • setArgNames - Assigns logical names to query string variables
glfusion/development/api/sanitize_class/start.txt · Last modified: 2017/04/12 21:15 (external edit)

Page Tools