LEPTON CMS  5.1.0
feel free to keep it strictly simple...
lepton_secure_database.php File Reference

Go to the source code of this file.

Functions

 cryptString ( $sSource="")
 
 decryptString ( $sSource)
 
 setOpenSSLMethod ($sMethodName)
 
 setOpenSSLIv ( $sNewIV)
 
 secure_get_one ($SQL)
 
 secure_execute_query ( $aQuery="", $bFetch=false, &$aStorage=array(), $bFetchAll=true, $aListOfFields=array())
 
 secure_build_and_execute ( $type, $table_name, $table_values, $condition="", $aListOfFields=array(), $key="")
 

Variables

trait LEPTON_secure_database
 

Function Documentation

◆ cryptString()

cryptString (   $sSource = "")
protected

To encrypt any string.

Parameters
string$sSourceAny string
Returns
string The crypted string.
Examples
C:/Develope/SVN/upload/framework/classes/lepton_secure_database.php.

Definition at line 40 of file lepton_secure_database.php.

◆ decryptString()

decryptString (   $sSource)
protected

To decrypt any string.

Parameters
string$sSourceAny crypted string.
Returns
string The crypted string.
Examples
C:/Develope/SVN/upload/framework/classes/lepton_secure_database.php.

Definition at line 61 of file lepton_secure_database.php.

◆ secure_build_and_execute()

secure_build_and_execute (   $type,
  $table_name,
  $table_values,
  $condition = "",
  $aListOfFields = array(),
  $key = "" 
)

Public function to build and execute a mySQL query direct. Use this function/method for update and insert values only. As for a simple select you can use "prepare_and_execute" above.

Parameters
string$typeA "job"-type: this time only "update" and "insert" are supported.
string$table_nameA valid tablename (incl. table-prefix).
array$table_valuesAn array within the table-field-names and values. Pass by reference!
string$conditionAn optional condition for "update" - this time a simple string.
string$aListOfFieldsA linear array with the fieldnames to crypt.
string$keyAn optional "no update" key field to be excluded on update while "insert_on_duplicate_key_update" - a simple string containing 1 key field.
Returns
bool False if fails, otherwise true.
Examples
C:/Develope/SVN/upload/framework/classes/lepton_secure_database.php.

Definition at line 239 of file lepton_secure_database.php.

◆ secure_execute_query()

secure_execute_query (   $aQuery = "",
  $bFetch = false,
$aStorage = array(),
  $bFetchAll = true,
  $aListOfFields = array() 
)

◆ secure_get_one()

secure_get_one (   $SQL)

[2] New class methods Execute a SQL query and return the first row of the result array

Parameters
stringAny SQL-Query or statement
Returns
mixed Value of the table-field or NULL for error
Examples
C:/Develope/SVN/upload/framework/classes/lepton_secure_database.php.

Definition at line 144 of file lepton_secure_database.php.

◆ setOpenSSLIv()

setOpenSSLIv (   $sNewIV)

Set the iv

Parameters
string$sNewIVA valid iv (16 byptes!)
Returns
nothing
Examples
C:/Develope/SVN/upload/framework/classes/lepton_secure_database.php.

Definition at line 96 of file lepton_secure_database.php.

◆ setOpenSSLMethod()

setOpenSSLMethod (   $sMethodName)

[1] Interface functions Set the method

Parameters
string$sMethodNameA valid Method
Returns
nothing
Examples
C:/Develope/SVN/upload/framework/classes/lepton_secure_database.php.

Definition at line 86 of file lepton_secure_database.php.

Variable Documentation

◆ LEPTON_secure_database

trait LEPTON_secure_database
Initial value:
{
static private $db_key = 0

This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.

NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.

Author
LEPTON Project
Examples
C:/Develope/SVN/upload/framework/classes/lepton_database.php, and C:/Develope/SVN/upload/framework/classes/lepton_secure_database.php.

Definition at line 22 of file lepton_secure_database.php.