Abricos |
[ class tree: Abricos ] [ index: Abricos ] [ all elements ]

Class: CMSInputCleaner

Исходное местоположение: /includes/cmsinputcleaner.php

Class CMSInputCleaner

Class Overview

Located in /includes/cmsinputcleaner.php [line 9]

CMSBaseClass
   |
   --CMSInputCleaner
Author(s):
Information Tags:
Version:  $Id: cmsinputcleaner.php 270 2009-12-28 13:24:34Z roosit $
Copyright:  Copyright (C) 2008 Abricos. All rights reserved.
License:  GNU/GPL, see LICENSE.php

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Property Summary
CMSRegistry   $registry   Enter description here...
mixed   $scriptpath  
mixed   $shortvars  
mixed   $superglobal_lookup  

[ Top ]
Method Summary
CMSInputCleaner   CMSInputCleaner()   Enter description here...
void   &clean()  
void   &clean_array()  
array   clean_array_gpc()   Makes GPC variables safe to use
void   &clean_gpc()  
void   convert_shortvars()  
void   &do_clean()  
void   stripslashes_deep()  
void   strip_sessionhash()  

[ Top ]
Properties
CMSRegistry   $registry = null [line 29]

Enter description here...

API Tags:
Access:  public


[ Top ]
mixed   $scriptpath = '' [line 22]
API Tags:
Access:  public


[ Top ]
mixed   $shortvars = array() [line 10]
API Tags:
Access:  public


[ Top ]
mixed   $superglobal_lookup = array(
'g' => '_GET',
'p' => '_POST',
'r' => '_REQUEST',
'c' => '_COOKIE',
's' => '_SERVER',
'e' => '_ENV',
'f' => '_FILES'
)
[line 12]
API Tags:
Access:  public


[ Top ]
Methods
Constructor CMSInputCleaner  [line 37]

  CMSInputCleaner CMSInputCleaner( CMSRegistry $registry  )

Enter description here...

Parameters:
CMSRegistry   $registry: 

API Tags:
Access:  public


[ Top ]
clean  [line 131]

  void &clean( &$var, [ $vartype = TYPE_NOCLEAN], [ $exists = true]  )

Parameters:
   &$var: 
   $vartype: 
   $exists: 


[ Top ]
clean_array  [line 91]

  void &clean_array( &$source, $variables  )

Parameters:
   &$source: 
   $variables: 


[ Top ]
clean_array_gpc  [line 108]

  array clean_array_gpc( string $source, array $variables  )

Makes GPC variables safe to use

Parameters:
string   $source:  Either, g, p, c, r or f (corresponding to get, post, cookie, request and files)
array   $variables:  Array of variable names and types we want to extract from the source array


[ Top ]
clean_gpc  [line 122]

  void &clean_gpc( $source, $varname, [ $vartype = TYPE_NOCLEAN]  )

Parameters:
   $source: 
   $varname: 
   $vartype: 


[ Top ]
convert_shortvars  [line 244]

  void convert_shortvars( &$array  )

Parameters:
   &$array: 


[ Top ]
do_clean  [line 173]

  void &do_clean( &$data, $type  )

Parameters:
   &$data: 
   $type: 


[ Top ]
stripslashes_deep  [line 232]

  void stripslashes_deep( &$value  )

Parameters:
   &$value: 


[ Top ]
strip_sessionhash  [line 254]

  void strip_sessionhash( &$string  )

Parameters:
   &$string: 


[ Top ]

Documentation generated on Thu, 31 Dec 2009 13:47:21 +0300 by phpDocumentor 1.4.3