PHP Class SafeSQL, poMMo

Version: 2.2 with modifications by Philip Kent Date: March 27th, 2007, August 25th, 2013 Copyright: 2001-2005 New Digital Group, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Datei anzeigen Open project: soonick/poMMo

Public Properties

Property Type Description
$_drop_values values that determine dropping bracketed sections

Public Methods

Method Description
SafeSQL ( ) *======================================================================*\ Function: SafeSQL Purpose: constructor \*======================================================================
_convert_var ( $var, $type ) *======================================================================*\ Function: _convert_var Purpose: convert a variable to the given type Input: $var - the variable $type - the type to convert to: %i, %I - cast to integer %f, %F - cast to float %c, %C - comma separate, cast each element to integer %l, %L - comma separate, no quotes, no casting %q, %Q - quote/comma separate \*======================================================================
_error_msg ( $error_msg ) *======================================================================*\ Function: error Purpose: handle error messages \*======================================================================
_sql_escape ( $var ) *======================================================================*\ Function: _sql_escape Purpose: method overridden by subclass \*======================================================================
get_drop_values ( ) *======================================================================*\ Function: GetDropValues Purpose: \*======================================================================
query ( $query_string, $query_vars ) *======================================================================*\ Function: query Purpose: process the query string \*======================================================================
set_drop_values ( $drop_values ) *======================================================================*\ Function: SetDropValues Purpose: \*======================================================================

Method Details

SafeSQL() public method

*======================================================================*\ Function: SafeSQL Purpose: constructor \*======================================================================
public SafeSQL ( )

_convert_var() public method

*======================================================================*\ Function: _convert_var Purpose: convert a variable to the given type Input: $var - the variable $type - the type to convert to: %i, %I - cast to integer %f, %F - cast to float %c, %C - comma separate, cast each element to integer %l, %L - comma separate, no quotes, no casting %q, %Q - quote/comma separate \*======================================================================
public _convert_var ( $var, $type )

_error_msg() public method

*======================================================================*\ Function: error Purpose: handle error messages \*======================================================================
public _error_msg ( $error_msg )

_sql_escape() public method

*======================================================================*\ Function: _sql_escape Purpose: method overridden by subclass \*======================================================================
public _sql_escape ( $var )

get_drop_values() public method

*======================================================================*\ Function: GetDropValues Purpose: \*======================================================================
public get_drop_values ( )

query() public method

*======================================================================*\ Function: query Purpose: process the query string \*======================================================================
public query ( $query_string, $query_vars )

set_drop_values() public method

*======================================================================*\ Function: SetDropValues Purpose: \*======================================================================
public set_drop_values ( $drop_values )

Property Details

$_drop_values public_oe property

values that determine dropping bracketed sections
public $_drop_values