Welcome, Guest Log In

Class Nakor

Class Overview

Nakor's Input scrubber

This class provides some servicable input scrubbing.

Located in /Krai/Lib/Nakor.php [line 37]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
boolean   $get_magic_quotes   Determines whether magic quotes are on or not

[ Top ]
Method Summary
array   CleanArrayRec()   Recursively clean an array
array   CleanInput()   Clean Input
string   CleanKey()   Clean Key
string   CleanValue()   Clean Value
string   UncleanValue()   Reverse variable cleaning

[ Top ]
Properties
boolean   $get_magic_quotes [line 48]

Determines whether magic quotes are on or not

This variable holds the value of the determination of whether magic_quotes_gpc is enabled for the server.

API Tags:
Access:  private


[ Top ]
Methods
CleanArrayRec  [line 97]

  array CleanArrayRec( $array  )

Recursively clean an array

This function recursively cleans the keys and values of an array.

Parameters:
array   $array:  The array to clean

API Tags:
Return:  The cleaned array
Access:  private


[ Top ]
CleanInput  [line 59]

  array CleanInput( string $type  )

Clean Input

This function sanitizes input in either the $_GET or $_POST arrays based on the $type parameter. It basically just passes off to Nakor::CleanArrayRec().

Parameters:
string   $type:  One of "GET" or "POST" representing which array to clean.

API Tags:
Return:  A sanitized copy of the array
Access:  public


[ Top ]
CleanKey  [line 116]

  string CleanKey( string $key  )

Clean Key

Removes harmful tags from a variable key

Parameters:
string   $key:  The key to clean

API Tags:
Return:  The cleaned key
Access:  private


[ Top ]
CleanValue  [line 141]

  string CleanValue( string $val  )

Clean Value

Removes harmful tags from a variable value

Parameters:
string   $val:  The value to clean

API Tags:
Return:  The cleaned value
Access:  public


[ Top ]
UncleanValue  [line 181]

  string UncleanValue( string $val  )

Reverse variable cleaning

This function can un-scrub a variable value

Parameters:
string   $val:  The value to un-sanitize

API Tags:
Return:  The unsanitized value
Access:  public


[ Top ]

Documentation generated on Fri, 25 Jul 2008 15:19:41 -0400 by phpDocumentor 1.4.2
Krai Framework site admin credits sitemap valid xhtml?